Home > @csstools/css-color-parser > serializeOKLCH
Convert color data to component values in the OKLCH color space. The return value can be converted to a string by calling toString() on it.
Signature:
export declare function serializeOKLCH(color: ColorData): FunctionNode;|
Parameter |
Type |
Description |
|---|---|---|
|
color |
The color data to be serialized. |
FunctionNode
{FunctionNode} The serialized color data as a FunctionNode object.