Expand description
Parsing for CSS colors.
Enums§
- Represents a channel keyword inside a color.
- Either an angle or a number.
- Either a percentage or a number.
Functions§
- parse_color_function πParse one of the color functions: rgba(), lab(), color(), etc.
- Return the named color with the given name.
- Parse a CSS color using the specified [
ColorParser
] and return a new color value on success. - Parse the color() function.
- parse_hsl πParses hsl syntax.
- parse_hwb πParses hwb syntax.
- parse_lab_like π
- parse_lch_like π
- parse_legacy_alpha π
- parse_modern_alpha π
- parse_number πParse a
<number>
value. - Parse an
<number>
or<angle>
value. - Parse a
<number>
or<percentage>
value. - parse_origin_color πParse the relative color syntax βfromβ syntax
from <color>
. - parse_percentage πParse a
<percentage>
value. - parse_rgb π
- Returns true if the relative color syntax pref is enabled.