Plugin Overview
The core library of xcolor covers RGB, HSL, and Hex formats. Additional color spaces and features are loaded on demand via plugins.
Installation
ts
import xcolor from '@xpyjs/color'
import labPlugin from '@xpyjs/color/plugins/lab'
xcolor.use(labPlugin)For detailed instructions, refer to the Plugin System.
Find a plugin by task
Preserve wide coordinates, convert spaces, and map gamuts · colorSpace
Generate palettes and themes · harmony, gradient, scale, palette, theme
Compare, composite, and simulate · a11y, blend, simulate, lab
Find names or work with temperature · name, temperature
Convert and format colors · hsv, hwb, cmyk, oklab, xyz, displayP3, a98Rgb, proPhotoRgb, rec2020, percentageRgb
