Skip to content

Feat(csc-ui): Emit all color tokens as oklch() and export structured … - #265

Merged
razorfever merged 1 commit into
mainfrom
development
Sep 3, 2026
Merged

Feat(csc-ui): Emit all color tokens as oklch() and export structured …#265
razorfever merged 1 commit into
mainfrom
development

Conversation

@villeerikssoncsc

Copy link
Copy Markdown
Contributor

…color data

Emit all --c-* custom properties and runtime ramp values as oklch(L C H) strings (ADR-0041). This standardizes color representation to a perceptual space, enabling consumers to derive tints with oklch(from var(--c-…) …) and aligning with the authored palette. This implies a browser floor to Chrome 111, Safari 15.4, and Firefox 113.

Publish chartSlots, chartAnatomy (as oklch()) and their …Hex twins as importable data (ADR-0040). This allows canvas chart libraries (ECharts, Chart.js) to access validated chart colors directly, removing the need to scrape --c-chart-* variables from the DOM.

Export DEFAULT_SEEDS and FAMILIES for theme UIs, as --c-*-500 tokens are now oklch() and cannot be directly parsed by ``.

The c-csc-logo now renders fully white in dark mode for consistency, aligning the star, wordmark, and kite.

Build tooling, including cssColor() in the ramp core, new generate-chart-data and copy-declarations scripts, and parity lints, ensures consistency and type safety.

…color data

Emit all `--c-*` custom properties and runtime ramp values as `oklch(L C H)` strings (ADR-0041). This standardizes color representation to a perceptual space, enabling consumers to derive tints with `oklch(from var(--c-…) …)` and aligning with the authored palette. This implies a browser floor to Chrome 111, Safari 15.4, and Firefox 113.

Publish `chartSlots`, `chartAnatomy` (as `oklch()`) and their `…Hex` twins as importable data (ADR-0040). This allows canvas chart libraries (ECharts, Chart.js) to access validated chart colors directly, removing the need to scrape `--c-chart-*` variables from the DOM.

Export `DEFAULT_SEEDS` and `FAMILIES` for theme UIs, as `--c-*-500` tokens are now `oklch()` and cannot be directly parsed by ``.

The `c-csc-logo` now renders fully white in dark mode for consistency, aligning the star, wordmark, and kite.

Build tooling, including `cssColor()` in the ramp core, new `generate-chart-data` and `copy-declarations` scripts, and parity lints, ensures consistency and type safety.
@razorfever
razorfever merged commit 9a1c6d7 into main Sep 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants