Repository navigation
Conversation
…5-color-spike" This reverts commit 8c0fcd9.
6 of 7 tasks
Contributor
Author
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.
Summary
The color generator from #50, split out as a supplementary spike. It is not shipped API, and nothing on the runtime path imports it. Merging this would add build tooling, not runtime code.
Contents (the diff against
cass-gmt-1825-color-systemis this tree):packages/gamut-styles/src/colorSystem/: the generator. Brand hues in, palette (8 slots × 11 grades) and 43 roles × 2 modes out. Includesmigration.ts(design's old → new map),probe.ts(tenant probe),contentModes.ts, andvalidate.ts.packages/gamut-styles/scripts/build-tokens.tsandvalidate-tokens.ts:build:tokensandvalidate:tokens, run withjiti.colorSystem/__fixtures__/sandbox-dffd84b.json: design's sandbox dump the parity check uses.culori,jiti,style-dictionary) that feat(gamut-styles)!: generated color system with tokens.css as the color contract #50 dropped.Why a spike
cass-gmt-1825-color-system(#50) ships the generated output undersrc/tokens/generated/, and that is what the runtime needs. The generator itself is tooling. Per the stack notes, it moves to@skillsoft/gamut-brandin #66, which is the intended home. This PR keeps the working generator in one place for review and for regenerating the output.Testing instructions
git fetch && git checkout cass-gmt-1825-color-spike && yarnyarn workspace @skillsoft/gamut-styles build:tokensregeneratessrc/tokens/generated/. The output should match what feat(gamut-styles)!: generated color system with tokens.css as the color contract #50 has committed.yarn workspace @skillsoft/gamut-styles validate:tokensruns the parity check (88 rungs, every role) and the contrast guarantees.tokens.css.The generated header comments still say
scripts/build-tokens.ts. The script is on this branch, not on #50.🤖 Generated with Claude Code