Saturon LogoSaturon

🚧 This documentation covers a pre-1.0 release. Expect breaking changes.

API

Converters Definitions

Documentation of color converter definitions in Saturon.

The "saturon/converters" module exports various color converter registries used throughout the Saturon library. These registries provide the necessary functions and data to convert between different color formats and models.

Exported Converter Registries

NameTypeDescription
colorTypesRecord<string, ColorConverter>All <color> syntaxes (functional, base, named, etc.)
colorBasesRecord<string, ColorConverter>All <color-base> syntaxes (coloe-mix(), hex-color, etc)
colorFunctionsRecord<string, ColorConverter>Functional <color-function> converters (e.g., rgb(), hsl())
colorModelsRecord<string, ColorModelConverter>Full model definitions with components, bridge, and gamut info
colorSpacesRecord<string, ColorModelConverter>Matrix-based <color()> spaces (e.g., display-p3, rec2020)
namedColorsRecord<string, [number, number, number]>Registered <named-color> → RGB mapping