Module theme

Source

Structs§

CssPath πŸ”’

Functions§

get_differences πŸ”’
get_inside_paren πŸ”’
get_string πŸ”’
When encountering a " or a ', returns the whole string, including the quote characters.
handle_common_chars πŸ”’
load_css_paths πŸ”’
The entry point to parse the CSS rules. Every time we encounter a {, we then parse the rules inside it.
parse_property_name πŸ”’
Returns a CSS property name. Ends when encountering a : character.
parse_property_value πŸ”’
Try to get the value of a CSS property (the #fff in color: #fff). It’ll stop when it encounters a { or a ; character.
parse_rules πŸ”’
This is used to parse inside a CSS {} block. If we encounter a new { inside it, we consider it as a new block and therefore recurse into parse_rules.
parse_selectors πŸ”’
skip_comment πŸ”’
Skips a /* comment.
skip_line_comment πŸ”’
Skips a line comment (//).
test_theme_against πŸ”’