Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…udio brands Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olor-docs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
||
| ### Pair a status tint with a status ink | ||
|
|
||
| A status message is a tint behind and an ink on top. An error box uses `surface-error` for the background and `text-error` for the icon and the message; each status ink clears text contrast on its own tint. A floating `Alert` takes the same ink on its border. Show warnings with an icon, not color alone. |
There was a problem hiding this comment.
Updated for design's Alert change (sandbox 15c2195): the status ink now carries the message as well as the icon, and a floating Alert's border. Line 50 also reflects that Original Codecademy no longer pins navy and beige.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s' into cass-gmt-1825-color-docs
- 45 roles: the shadow-* group (key, ambient, scrim) replaces backdrop. - surface-raised is the lighter surface step, not a depth; navs and headers are surface-default, fields surface-raised. - New guidance: raised surfaces take a border-subtle hairline, floating ones add a shadow, Card is default or brand. - Brand role overrides need both attributes on one element. - Elevation: old Core's hard offset for Original Codecademy, soft shadows elsewhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| | `action-*` | `primary`, `danger` and `neutral`, each with `-hover` and `-pressed`; `disabled` | Interactive fills and inks: buttons, links, toggles | | ||
| | `state-*` | `hover`, `pressed`, `selected` | Translucent layers over elements that have no fill of their own | | ||
| | `viz-*` | `1` to `8` (categorical), `seq-1` to `seq-4` (sequential) | Charts | | ||
| | `shadow-*` | `key`, `ambient`, `scrim` | Shadow colors and the dimmed layer behind a modal | |
There was a problem hiding this comment.
Design's sandbox update, 2026-11-03: backdrop becomes shadow-scrim, and shadow-key / shadow-ambient are the two layers every elevation shadow draws.
| ); | ||
| ``` | ||
|
|
||
| ### Give raised surfaces a hairline |
There was a problem hiding this comment.
Design's sandbox update, 2026-11-03: every card and floating surface takes a border-subtle hairline and the shadow does the separating; Card collapses to default and brand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t pairings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s' into cass-gmt-1825-color-docs
… your own brand Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Covers the variance createTheme and gamut-styles ColorMode prefixes, the gamut-brand Style Dictionary prefix, the docs and the regenerated tokens. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…s' into cass-gmt-1825-color-docs # Conflicts: # .changeset/color-system-brands.md # packages/gamut-brand/src/__tests__/system.test.ts # packages/gamut-styles/scripts/build-tokens.ts # packages/gamut-styles/scripts/validate-tokens.ts # packages/gamut-styles/src/colorSystem/README.md # packages/gamut-styles/src/themes/__tests__/__snapshots__/theme.test.ts.snap # packages/gamut-styles/src/themes/__tests__/brandElevation.test.ts # packages/gamut-styles/src/themes/__tests__/theme.test.ts # packages/gamut-styles/src/themes/platform.ts # packages/gamut-styles/src/tokens/generated/tokens.css # packages/gamut-styles/src/tokens/generated/tokensCss.ts
Roboto 500 and 700 share one bold file, so the preload list had two links with the same key (the file URL), and React warned about duplicate keys. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The skill triaged scope-swap only. Add a color-roles section: the dry-run and real-run steps, what the warnings and color-roles: comments mean and what to do for each, the checks before calling it done, and what not to do. The description names the preset so the skill triggers on color-name work. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 6f0e3de)
…on and cover every preset The skill covered scope-swap only. It's now gamut-migration: a presets table, one workflow for all presets, a section per preset (scope-swap, color-roles), and a section on documenting a new preset. Renames the changeset to match. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit f5bf30b)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 15c7699)
…section Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 80522ce)
…ion skill - next-config: removing esmExternals: false is necessary but not always enough. Build each app and fix the routes that still fail at prerender. - CI: the job that runs sync-gamut-deps fails too, so change it with the script. - resolutions: yarn why can list two lock locators after a pin, with one copy installed. Check node_modules. - tsconfig-dom: the codemod warns only where gamut is imported. - Missing peers: @vidstack/react, react-player and stylis, with the range to add by hand. - color-roles: a palette name can map to different roles by slot, so use the context in the comment. Keep each app's theme, since the choice changes the spacing scale. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit a0f18dc)
…gration skill Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit bb684b9)
…igration skill Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit b35dc09)
… skill Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 552d148)
…ser in the gamut-migration skill Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 7d92c95)
…ate-stylis symptom Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 0dc47cf)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 53cce61)
# Conflicts: # .changeset/color-system-brands.md # packages/gamut-brand/README.md # packages/gamut-styles/src/themes/__tests__/__snapshots__/theme.test.ts.snap # packages/gamut-styles/src/themes/__tests__/theme.test.ts
Replaces this branch's tree with the color stack as it now stands: the site branch (#67, which includes #63, #59, #54, #66, #58, #52 and #50, each merged with main through 45586df), plus the codemod branch (#53). Static styles (#69) is still out, as before. The preview's earlier head is the parent. This commit only moves the tree forward, so nothing is rewritten. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
❌ 3 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
A disabled field fills with surface-sunken and draws its outline, label and value in action-disabled (design's update of 2026-12-01). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…date Brings in the stack through #67 (2d73ebf) and #53 (a16e5a3): - Disabled fields fill with surface-sunken and draw their outline, label, value and chevron in action-disabled; enabled chevrons are text-default (#52 map, #54 components, DatePicker included). - border-disabled splits between border-default and action-disabled in the color-roles codemod (#53). - The color system page's role table lists disabled fields (#59), and the docs site loads the Skillsoft theme fonts (#67). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LinKCoding
left a comment
There was a problem hiding this comment.
The docs LGTM! (you might run into a conflict since I've alphabetized the sidebars and the bulleted lists in the overview pages tho)
I do wonder if this warrants updating the gamut-color-mode skill or something equivalent
Resolved the concepts index to main's alphabetized order, with Color system added in its sorted place. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…-1825-color-white-label)
Overview
Adds a gamut-docs concept page on the generated color system: how it works, how to use it, and what's better and worse than the old color names.
Docs
concepts/color-system.md: covers:GamutProviderputstokens.csson the page, and mode and brand attributestext-inverse, status tint plus ink,Background,viz-*and app setupconcepts/index.md: links the page. The Concepts sidebar is generated, soastro.config.mjsdoesn't change.Every role name, CSS variable, prop and import path on the page is checked against the code on this branch. Stacked on #58, so it lists all six brands. It's kept in step with design's changes from 2026-10-29: status alerts carry their ink on the message and on a floating border, and Original Codecademy no longer pins navy and beige. Status separation is described as reported, not enforced, because that's what
probe.tsdoes.Not in this PR
concepts/color-modes.md,foundations/design-tokens.md,foundations/themes.mdandguides/supporting-dark-mode.mdstill describe the old aliases here. #67 moves them, and the rest of the site, onto roles. The codemod (#53) isn't named until it lands.PR Checklist
Testing Instructions
cd packages/gamut-docs && npx astro build: the build completes.npx astro devand open/concepts/color-system/: the page renders, it's in the Concepts sidebar, and its links work.packages/gamut-styles/src/colorSystem/roles.ts.🤖 Generated with Claude Code
Build:
yarn buildfails on this PR:gamut:buildtype-checks components that still use the old color names. The migration to color roles is in #54, and the build passes there (cass-gmt-1825-color-components, af734ec).