Expand description
Parsing for CSS colors.
EnumsΒ§
- Channel
Keyword  - Represents a channel keyword inside a color.
 - Number
OrAngle Component  - Either an angle or a number.
 - Number
OrPercentage Component  - Either a percentage or a number.
 
FunctionsΒ§
- parse_
color_ πfunction  - Parse one of the color functions: rgba(), lab(), color(), etc.
 - parse_
color_ keyword  - Return the named color with the given name.
 - parse_
color_ with  - Parse a CSS color using the specified [
ColorParser] and return a new color value on success. - parse_
color_ πwith_ color_ space  - 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_
number_ πor_ angle  - Parse an 
<number>or<angle>value. - parse_
number_ πor_ percentage  - 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 π - rcs_
enabled  - Returns true if the relative color syntax pref is enabled.