919 B
919 B
| name | description |
|---|---|
| Theme Palette Generator | Generate accessible OKLCH color palettes for UI theming via the Nexus content job API |
Theme Palette Generator
Generate a complete UI color palette from a seed color. Uses OKLCH color space for perceptually uniform, accessible color scales with WCAG contrast ratios.
Usage
Submit a content job via POST /api/companies/{companyId}/content-jobs:
{
"jobType": "theme-palette",
"input": {
"seedColor": "#6366f1",
"name": "Indigo Theme"
}
}
Fields:
seedColor(required): Hex color used as the primary brand colorname(optional): Human-readable name for the theme
Output
The job returns a ThemePaletteBundle with:
colors: Named color tokens (primary, surface, accent, text, border scales)wcagReport: Contrast ratios for foreground/background pairscssVars: Ready-to-use CSS custom property declarations