Feat(csc-ui): Emit all color tokens as oklch() and export structured … - #265
Merged
Conversation
…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
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…color data
Emit all
--c-*custom properties and runtime ramp values asoklch(L C H)strings (ADR-0041). This standardizes color representation to a perceptual space, enabling consumers to derive tints withoklch(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(asoklch()) and their…Hextwins 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_SEEDSandFAMILIESfor theme UIs, as--c-*-500tokens are nowoklch()and cannot be directly parsed by ``.The
c-csc-logonow renders fully white in dark mode for consistency, aligning the star, wordmark, and kite.Build tooling, including
cssColor()in the ramp core, newgenerate-chart-dataandcopy-declarationsscripts, and parity lints, ensures consistency and type safety.