API reference
Find the Colore function for the job you have. The references show which input each function accepts and what it returns.
Most projects start with generateSystem for a light and dark theme, ensureContrast to fix a color that fails contrast, or applyThemeToCss to change a theme file you already have. To work from the terminal or a coding agent, see Coding agents and CLI.
Jump to a category
Color class
Constructor, static factories, and output and utility methods.
Parsing
Parse any CSS color, detect its format, resolve color-mix().
Validation
Check a string before converting it.
Output
Serialize for CSS and apps.
Manipulation
Perceptual edits in OKLCH.
Harmony
Complement and triadic schemes in the input’s gamut.
Accessibility
WCAG 2 and APCA contrast, repair, and audits.
Distance
Perceptual distance and nearest matches.
Scales & palettes
Gradients, shade ramps, and chart colors.
Design system
Light and dark systems, theme files, and component states.
Reference
Every export and type.
Pick an import
Use colore() or Color when you want to chain several changes before writing the result. Standalone helpers from colore-js/fn handle one operation at a time. Each reference lists the available calls.
Related
- Entry points and exports for the full list of names and imports
- Get started for a first example
- Check color contrast for a complete workflow