Module colorizer.parser.css_color
CSS color() Parser
This module provides a parser for identifying and converting CSS color() functions to RGB hexadecimal format.
The CSS color() function allows specifying colors in arbitrary color spaces.
Supported color spaces: srgb, srgb-linear, display-p3, a98-rgb, prophoto-rgb, rec2020.
Values can be numbers (0-1) or percentages. Optional alpha transparency is supported.
Functions
| parser (line, i, _) | Parses color() CSS functions and converts them to RGB hexadecimal format. |
Tables
| spec | Parser spec for the registry |