@microsoft/fast-colors > parseColorNamed
parseColorNamed() function
Converts a named color to a ColorRGBA64.
Signature:export declare function parseColorNamed(raw: keyof typeof namedColorsConfigs): ColorRGBA64 | null;
Parameters
Parameter | Type | Description |
---|---|---|
raw | keyof typeof namedColorsConfigs | a CSS color name. |
ColorRGBA64 | null
Example
parseColorNamed("red");