Skip to content

Latest commit

 

History

History
55 lines (27 loc) · 881 Bytes

File metadata and controls

55 lines (27 loc) · 881 Bytes

Home > @csstools/css-color-parser > serializeOKLCH

serializeOKLCH() function

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;

Parameters

Parameter

Type

Description

color

ColorData

The color data to be serialized.

**Returns:**

FunctionNode

{FunctionNode} The serialized color data as a FunctionNode object.