Skip to content

feat(gamut)!: move components onto color roles - #54

Open
dreamwasp wants to merge 63 commits into
cass-gmt-1825-color-white-labelfrom
cass-gmt-1825-color-components
Open

dreamwasp wants to merge 63 commits into
cass-gmt-1825-color-white-labelfrom
cass-gmt-1825-color-components

Conversation

@dreamwasp

@dreamwasp dreamwasp commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Stack 5. Base: #66 (color-white-label). Next: #63, then #67.
The 116 changed files are this PR's diff against #66: the components work itself (components onto color roles), which is large.
Known failing test (pre-existing): Markdown/libs/overrides/Video/MarkdownVideo.test.tsx fails the same way on the untouched components tip.


Overview

Moves every gamut component onto the color system's roles, following design's component map (gamut-sandbox PR #34, Migration → Components, head ef1272a). Stacked on #52.

Screenshots: today's core next to this branch on skillsoft and originalCodecademy, light and dark, 37 stories: https://claude.ai/artifact/QJ836yQVQ6ghKHwawDqE5m (private; ask for access).

How it was made

  • Ran the color-roles preset from feat(gamut-codemods): add a color-roles preset #53 on packages/gamut/src: 60 files, 273 lines. A second run changes nothing.
  • Resolved the ~170 places it leaves for a person (splits, retired names, pending names, old palette colors, runtime-built names) using design's component map.

Buttons (Button/shared/variants.ts)

  • variant values don't change. primary, secondary and danger map to action-primary, action-neutral and action-danger, each with its own hover and pressed step; interface merges into primary (TextButton's interface label is text-default).
  • Labels on fills are text-inverse; every variant gets one action-primary focus ring; disabled fill labels are a knockout.
  • StrokeButton and TextButton hover and press with state-hover / state-pressed veils instead of a gray fill and a full inversion.
  • CTAButton follows primary FillButton; its offset shadow is action-neutral until there's a shadow role.

Components, by design's map

  • Alert, Toast, Popover, Menu, Tip, Modals, Flyout, Overlay — floating surfaces are surface-raised with a border-default edge; the scrim is backdrop. Tooltips are no longer black.
  • Form, GridForm, ConnectedForm, Toggle — fields on surface-raised, hover darkens the outline (border-strong) so blue only means focus; a checked Radio is action-primary; Toggle disabled is action-disabled instead of 50% opacity.
  • Card — yellow and hyper become a featured card on the brand gradient (Alert's gradient layer moved to utils/gradientLayer.ts so both use it); navy is a dark-mode scope; every card gets a border-subtle hairline.
  • Badge, Tag — filled badges are text-default / text-subtle behind text-inverse; accent is surface-brand with a border-default edge.
  • Tabs, Disclosure, Pagination, Anchor — block Tabs follow the page's mode instead of forcing dark; Disclosure focus is a ring, not a fill.
  • ProgressBar, DataList, List, BarChart, Markdown, Video, Loading, Typography and the rest — mapped by the closest documented rule; see "Choices" below.

Choices where design has no exact mapping (each has a /* */ comment at the spot)

  • background-current stays in List, Drawer, DataList empty rows, Card's offset shadow, RadialProgress and Text fade. Design describes a surface-current alias that every surface sets; that rename belongs in gamut-styles, as a follow-up.
  • Badge accent gets the flat surface-brand, not the gradient: the gradient is sized in cqw, and a content-sized badge can't be its own container.
  • DatePicker (no map): weekday headers text-subtle, today action-primary, selected day a dark chip with text-inverse, range state-selected, disabled action-disabled.
  • SelectDropdown multi-value chip follows the selection Tag (text-subtle / text-inverse). Design's slot says surface-sunken but its note says "follows the selection Tag", so this needs design to pick.
  • Retired primary-inverse (Text highlight) → action-primary, flagged for design.
  • Video controls are always dark, so they use the mode-independent white and black.
  • BarChart defaults take the plain renames; moving them onto viz-* is a follow-up.

Added 2026-10-29

Known gaps

  • No shadow role yet, so elevation still renders undefined.
  • BarChart onto viz-* is a follow-up.

PR Checklist

  • Related to designs: gamut-sandbox PR #34, Migration → Components
  • Related to JIRA ticket: GMT-1825
  • Version plan added/updated (.changeset/color-roles-components.md)
  • I have run this code to verify it works
  • This PR includes unit tests for the code change
  • This PR includes testing instructions for the code change

Testing Instructions

Stacked on #52 (which is stacked on #50). The full stack is in #73.

  1. yarn nx build gamut → passes.
  2. yarn nx test gamut-styles → 15 suites, 298 tests pass. yarn workspace @skillsoft/gamut-styles validate:tokens → "all checks pass".
  3. yarn nx test gamut → 65 suites, 965 tests pass.
  4. Storybook, theme toolbar → Skillsoft or Original Codecademy, light and dark. Check Actions → Buttons, Molecules → Alert, Atoms → FormInputs, Containers → Card, Overlays → Dialog against the screenshots linked above.
  5. yarn nx test gamut-brand → the white-label tooling from feat(gamut-brand)!: one tokens.css per brand, and white-label tooling #66.

🤖 Generated with Claude Code

dreamwasp and others added 3 commits October 28, 2026 14:13
- Ran the color-roles codemod on gamut, then resolved every leftover
  (splits, retired and pending names, old palette colors, runtime names)
  from design's component map in colorSystem/migration.ts.
- Buttons follow design's button map: action families per variant,
  interface merges into primary, text-inverse labels, one action-primary
  focus ring, state veils for StrokeButton and TextButton, disabled
  knockout, CTAButton's offset shadow on action-neutral.
- Card variants become surfaces, with the brand gradient for yellow and
  hyper; Alert's gradient layer moves to utils/gradientLayer for both.
- Stories that painted old palette colors use roles or mode scopes.
- BREAKING: old themes don't define the roles, so components lose their
  colors on core, admin, platform, percipio and lxStudio until they're
  rebuilt as brands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mponents

Picks up #50's tokensCss injection in GamutProvider and the merge of main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mponents

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dreamwasp and others added 7 commits October 29, 2026 10:52
Design's card map (Interactive) puts a `state-hover` veil over the card's
own fill and darkens the edge to `border-strong` on hover. The veil is a
layer behind the content, so it tints the fill and a brand gradient but
not the text, and it keys off the same wrapper hover as the elevation
lift. The theme's elevation hover stays until elevation tokens exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ran the color-roles codemod over packages/styleguide and resolved every
split, retirement and old palette color it flagged, following design's
migration map and the choices gamut's components already made. Stories
and docs that list color names now show roles, MDX examples included.
The Storybook provider sets the page surface from the selected theme's
`background-current` instead of a white/navy palette pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olor-components

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ption

Every theme in the toolbar is now a brand of the generated color system.
Old core has no roles, so components on roles render without color under
it; Original Codecademy is its rebuild. The core theme docs page shows
Original Codecademy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
packages/.storybook is the config Storybook runs; the theme default change only belongs there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olor-components

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Design feedback on the comparison page (2026-10-29): selection and
navigation tags shouldn't have a fill.

- Navigation and suggestion tags rest on a transparent fill instead of
  surface-raised, so they don't show as a white box on beige or paper
  pages. Hover and press stay veils.
- A disabled tag drops the action-disabled fill. With nothing under it,
  the knockout label becomes the action-disabled ink; a disabled
  selection chip keeps an inset border-default edge so it doesn't resize.
- The selection chip at rest stays a text-subtle chip, per design's map.
- Adds Tag's first unit tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@dreamwasp dreamwasp left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix from design feedback on the components comparison page (2026-10-29).

Comment thread packages/gamut/src/Tag/styles.tsx Resolved
Comment thread packages/gamut/src/Tag/styles.tsx Resolved
dreamwasp and others added 3 commits November 4, 2026 08:53
…-components

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ports design's 2026-11-03 component map (gamut-sandbox df33b47):

- Card: variants are default and brand (old white, beige and navy become
  default; yellow and hyper become brand). Every card keeps a border-subtle
  hairline. An interactive card has the raised shadow at rest and the
  state-hover veil with the raised-hover shadow on hover; the border no
  longer changes. A card that isn't interactive has no shadow. The outline
  offset is drawn in shadow-key.
- Menus, popovers, tooltips, toasts and the SelectDropdown menu take a
  border-subtle hairline backed by the theme's raised shadow (a placeholder
  until design defines an overlay depth).
- CTAButton's shadow comes from the theme's elevation.
- Overlay's scrim is shadow-scrim; Flyout's panel has a border-subtle
  inner edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@dreamwasp dreamwasp left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Port of design's sandbox update, 2026-11-03 (gamut-sandbox df33b47). Notes on the lines below.

Comment thread packages/gamut/src/Card/styles.tsx Resolved
Comment thread packages/gamut/src/Card/styles.tsx Resolved
Comment thread packages/gamut/src/utils/elevation.ts Resolved
Comment thread packages/gamut/src/Flyout/index.tsx Resolved
Comment thread packages/gamut/src/Overlay/index.tsx Resolved
dreamwasp and others added 3 commits November 4, 2026 11:19
…mponents

# Conflicts:
#	packages/gamut/src/Card/Card.stories.tsx
#	packages/gamut/src/Form/inputs/SelectDropdown/core/styles.ts
…-subtle in a SelectDropdown story

ctaButtonElevation took `{ theme: Theme }`, which createButtonComponent's
`<T extends ThemeProps>` argument rejects, so the gamut build failed.
The SelectDropdown story main added in #47 used `text-secondary`, which
is `text-subtle` now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…om design's map

Design's feedback on the drafts: inputs use surface-raised. The fields
already did; an unchecked Checkbox didn't, and a disabled DatePicker
never looked disabled (its `:disabled` rule is on a div). Its error ring
was the raw string `feedback-error`, so it never drew.

The rest comes from an audit against design's component map (sandbox
df33b47) and the elevation proposal (sandbox #50):

- Field placeholder `text-subtle` (the selector was `&:placeholder`),
  error a 2px `text-error` outline at rest, `activated` keeps
  `border-default`; the same in SelectDropdown, whose disabled value is
  `text-subtle` and whose focused selected option keeps its selected veil.
- Checkbox disabled check mark and Disclosure's disabled overline are
  `surface-raised` knockouts. Radio's disabled ring is `border-default`;
  its error hover ring is `action-primary`.
- FormGroupDescription `text-subtle`, Breadcrumbs separator `text-subtle`,
  Anchor hover `action-primary-hover` and focus rings `action-primary`.
- List: hover is a veil over the row's fill, focus a ring with no fill,
  the first row's top rule `border-subtle`, the table header rule
  `border-default`, the scroll shadow `border-subtle`.
- Shimmer: `surface-sunken` with a `surface-raised` sweep, no rgba.
- The checker pattern (Modal, Toast, PreviewTip, DatePicker calendar)
  only on Original Codecademy, in `border-subtle`; the calendar gets a
  `border-subtle` edge.
- The Core Theme page says brand themes draw shadows in shadow-key and
  shadow-ambient.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dreamwasp
dreamwasp requested a review from a team as a code owner November 24, 2026 14:11
@LinKCoding
LinKCoding requested a balanced review from Copilot December 1, 2026 16:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved findings include type-check failures, a docs-rendering crash, broken CSS generation, incorrect themed radii, and a Node engine declaration incompatible with the new dependency.

6 open issues
What changed in this PR

Moves Gamut components onto semantic color roles so their appearance follows the active brand and color mode. The branch also includes the brand-generator extraction and rebuilt legacy themes from the wider color-system stack.

Changes:

  • Migrates component surfaces, text, borders, interaction states, focus rings, and elevation to color roles.
  • Adds @skillsoft/gamut-brand and reorganizes generated tokens into self-contained brand outputs.
  • Updates Storybook examples, theme selection, regression tests, documentation, and release notes.
File Description
yarn.lock Records brand-generator dependencies.
vitest.config.ts Includes brand-package tests.
packages/​variance/​src/​createTheme/​createTheme.ts Aligns color-variable types with --color-*.
packages/​gamut/​src/​Video/​lib/​VidstackPlayer/​variables.ts Migrates player colors and floating surfaces.
packages/​gamut/​src/​Video/​lib/​ReactPlayer.tsx Uses black for fixed-dark controls.
packages/​gamut/​src/​utils/​gradientLayer.ts Shares container-sized gradient rendering.
packages/​gamut/​src/​utils/​focus.ts Uses the primary-action focus color.
packages/​gamut/​src/​utils/​elevation.ts Adds shared shadow and checker-pattern helpers.
packages/​gamut/​src/​Typography/​Text.tsx Migrates the highlight color.
packages/​gamut/​src/​Toggle/​index.tsx Migrates track and handle colors.
packages/​gamut/​src/​Toggle/​elements.tsx Updates focus and disabled styling.
packages/​gamut/​src/​Toast/​Toast.tsx Adds the theme’s raised shadow.
packages/​gamut/​src/​Tips/​shared/​styles/​styles.tsx Migrates tooltip surfaces and borders.
packages/​gamut/​src/​Tips/​shared/​elements.tsx Adds raised shadows and role-based focus.
packages/​gamut/​src/​Tips/​PreviewTip/​elements.tsx Updates colors and brand-specific patterns.
packages/​gamut/​src/​Tips/​InfoTip/​styles.tsx Migrates interaction colors.
packages/​gamut/​src/​Tag/​Tag.stories.tsx Marks pending accessibility checks.
packages/​gamut/​src/​Tag/​__tests__/​Tag.test.tsx Tests resting and disabled tag colors.
packages/​gamut/​src/​Tabs/​Tabs.tsx Removes forced dark mode for block tabs.
packages/​gamut/​src/​Tabs/​TabButton.tsx Migrates tab labels and selection styling.
packages/​gamut/​src/​Tabs/​styles.tsx Uses semantic tab-track surfaces.
packages/​gamut/​src/​SkipToContent/​index.tsx Migrates link surface and focus colors.
packages/​gamut/​src/​ProgressBar/​index.tsx Unifies progress colors and removes the offset border.
packages/​gamut/​src/​PopoverContainer/​PopoverContainer.stories.tsx Migrates example surfaces.
packages/​gamut/​src/​Popover/​styles/​variants.ts Updates the large beak surface.
packages/​gamut/​src/​Popover/​styles/​base.ts Uses raised surfaces and subtle borders.
packages/​gamut/​src/​Popover/​elements.tsx Applies the raised shadow.
packages/​gamut/​src/​PatternBackdrop/​PatternBackdrop.tsx Makes checker patterns brand-specific.
packages/​gamut/​src/​PatternBackdrop/​PatternBackdrop.test.tsx Tests pattern visibility across brands.
packages/​gamut/​src/​Pagination/​styles.tsx Migrates pagination states and focus colors.
packages/​gamut/​src/​Overlay/​index.tsx Uses the scrim role.
packages/​gamut/​src/​Modals/​Modal.stories.tsx Updates example colors and button props.
packages/​gamut/​src/​Modals/​Dialog.stories.tsx Migrates helper-text color.
packages/​gamut/​src/​Menu/​MenuSeparator.tsx Uses a subtle separator color.
packages/​gamut/​src/​Menu/​elements.tsx Migrates menu surfaces, shadows, and states.
packages/​gamut/​src/​Markdown/​styles.ts Migrates inline-code and quote colors.
packages/​gamut/​src/​Markdown/​libs/​overrides/​Table/​index.tsx Migrates table text, borders, and stripes.
packages/​gamut/​src/​Loading/​Shimmer.tsx Uses mode-aware shimmer surfaces.
packages/​gamut/​src/​List/​ListRow.stories.tsx Migrates example text and state colors.
packages/​gamut/​src/​List/​elements.tsx Updates row surfaces, hover overlays, and borders.
packages/​gamut/​src/​Layout/​LayoutGrid.stories.tsx Migrates example fill and text colors.
packages/​gamut/​src/​GridForm/​States.stories.tsx Marks pending accessibility checks.
packages/​gamut/​src/​GridForm/​Layout.stories.tsx Migrates required-field and heading colors.
packages/​gamut/​src/​GridForm/​GridFormSections/​GridFormSectionBreak.tsx Uses a subtle section divider.
packages/​gamut/​src/​GridForm/​GridFormInputGroup/​index.tsx Migrates error-link color.
packages/​gamut/​src/​GridForm/​GridFormInputGroup/​GridFormNestedCheckboxInput/​GridFormNestedCheckboxInput.stories.tsx Marks pending disabled-state accessibility checks.
packages/​gamut/​src/​Form/​styles.ts Migrates shared field states and fixes the placeholder selector.
packages/​gamut/​src/​Form/​inputs/​SelectDropdown/​elements/​options.tsx Migrates option, subtitle, and disabled colors.
packages/​gamut/​src/​Form/​inputs/​SelectDropdown/​elements/​multi-value.tsx Migrates removal-control colors.
packages/​gamut/​src/​Form/​inputs/​SelectDropdown/​elements/​controls.tsx Uses subtle chevron ink.
packages/​gamut/​src/​Form/​inputs/​Select.tsx Migrates select-chevron colors.
packages/​gamut/​src/​Form/​inputs/​Radio/​styles.ts Migrates radio rings, dots, and states.
packages/​gamut/​src/​Form/​inputs/​Input.tsx Migrates validation-icon colors.
packages/​gamut/​src/​Form/​inputs/​Input.stories.tsx Marks pending accessibility checks.
packages/​gamut/​src/​Form/​inputs/​Checkbox/​styles.ts Migrates checkbox fills, marks, and focus.
packages/​gamut/​src/​Form/​elements/​FormGroupLabel.stories.tsx Marks pending disabled-label checks.
packages/​gamut/​src/​Form/​elements/​FormGroupDescription.tsx Uses subtle description text.
packages/​gamut/​src/​Form/​elements/​FormError.tsx Uses error-text ink.
packages/​gamut/​src/​Form/​__tests__/​fieldColors.test.tsx Tests field color-role assignments.
packages/​gamut/​src/​FocusTrap/​FocusTrap.stories.tsx Migrates the inactive example border.
packages/​gamut/​src/​Flyout/​index.tsx Adds a raised surface and inner border.
packages/​gamut/​src/​FeatureShimmer/​index.tsx Migrates shimmer and container colors.
packages/​gamut/​src/​Drawer/​Drawer.stories.tsx Uses a sunken example surface.
packages/​gamut/​src/​Disclosure/​elements.tsx Migrates surfaces, disabled states, and focus rings.
packages/​gamut/​src/​Disclosure/​DisclosureButton.tsx Updates overline colors by disabled state.
packages/​gamut/​src/​Disclosure/​Disclosure.stories.tsx Reworks surface examples.
packages/​gamut/​src/​DatePicker/​DatePickerInput/​Segment/​elements.tsx Migrates segment text and focus colors.
packages/​gamut/​src/​DatePicker/​DatePickerInput/​index.tsx Exposes the shell’s disabled state.
packages/​gamut/​src/​DatePicker/​DatePickerInput/​elements.tsx Corrects error-ring colors.
packages/​gamut/​src/​DatePicker/​DatePickerCalendar/​Calendar/​utils/​elements.tsx Migrates calendar selection and interaction colors.
packages/​gamut/​src/​DatePicker/​DatePickerCalendar/​Calendar/​CalendarWrapper.tsx Migrates the surface and brand-specific pattern.
packages/​gamut/​src/​DataList/​testUtils.tsx Updates shared fixture colors and button props.
packages/​gamut/​src/​DataList/​DataTable.stories.tsx Migrates example borders, text, and button props.
packages/​gamut/​src/​DataList/​DataList.stories.tsx Migrates example borders and helper text.
packages/​gamut/​src/​DataList/​Controls/​SortControl.tsx Migrates sort-label and icon colors.
packages/​gamut/​src/​DataList/​Controls/​FilterControl.tsx Migrates filter-indicator colors.
packages/​gamut/​src/​DataList/​Controls/​ExpandControl.tsx Migrates the expansion icon color.
packages/​gamut/​src/​ConnectedForm/​ConnectedInputs/​ConnectedNestedCheckboxes/​ConnectedNestedCheckboxes.stories.tsx Marks pending disabled-state checks.
packages/​gamut/​src/​ConnectedForm/​ConnectedFormGroup.tsx Migrates error-link color.
packages/​gamut/​src/​ConnectedForm/​ConnectedFormGroup.stories.tsx Marks pending accessibility checks.
packages/​gamut/​src/​ConnectedForm/​ConnectedForm.stories.tsx Updates button props and accessibility parameters.
packages/​gamut/​src/​Card/​index.tsx Connects card surfaces, gradients, and animation radii.
packages/​gamut/​src/​Card/​elements.tsx Adds shared gradient and interactive styling.
packages/​gamut/​src/​ButtonBase/​ButtonBase.tsx Uses default text ink.
packages/​gamut/​src/​Button/​CTAButton.tsx Applies theme-based elevation.
packages/​gamut/​src/​Button/​ButtonExamples.stories.tsx Uses explicit color-mode scopes.
packages/​gamut/​src/​Breadcrumbs/​index.tsx Uses subtle separator ink.
packages/​gamut/​src/​Box/​Box.stories.tsx Migrates positioning-example fills.
packages/​gamut/​src/​BarChart/​utils/​hooks.ts Compares borders against black instead of navy.
packages/​gamut/​src/​BarChart/​shared/​types.tsx Documents role-based color defaults.
packages/​gamut/​src/​BarChart/​shared/​elements.tsx Migrates alternating-row color.
packages/​gamut/​src/​BarChart/​layout/​GridLines.tsx Migrates grid-line colors.
packages/​gamut/​src/​BarChart/​index.tsx Migrates header borders and description text.
packages/​gamut/​src/​BarChart/​BarRow/​elements.tsx Migrates row focus and hover colors.
packages/​gamut/​src/​BarChart/​BarChartProvider.tsx Updates default chart colors.
packages/​gamut/​src/​BarChart/​BarChart.stories.tsx Migrates custom-color examples.
packages/​gamut/​src/​Badge/​index.tsx Migrates badge fills, text, and borders.
packages/​gamut/​src/​Badge/​Badge.stories.tsx Updates semantic and palette-color examples.
packages/​gamut/​src/​Anchor/​index.tsx Migrates link states and focus rings.
packages/​gamut/​src/​Anchor/​Anchor.stories.tsx Uses explicit light and dark scopes.
packages/​gamut/​src/​Alert/​variants.tsx Updates a source-location comment.
packages/​gamut/​src/​Alert/​elements.tsx Reuses the shared gradient helper.
packages/​gamut-styles/​src/​variables/​ResponsiveProperties.stories.tsx Migrates responsive color examples.
packages/​gamut-styles/​src/​variables/​elevation.ts Revises elevation comments only.
packages/​gamut-styles/​src/​tokens/​index.ts Exports per-brand token modules.
packages/​gamut-styles/​src/​tokens/​generated/​originalCodecademy/​light.tokens.json Makes the ambient shadow transparent.
packages/​gamut-styles/​src/​tokens/​generated/​originalCodecademy/​dark.tokens.json Applies primary-action and shadow overrides.
packages/​gamut-styles/​src/​tokens/​generated/​index.ts Exports all generated brands.
packages/​gamut-styles/​src/​tokens/​generated/​brands/​index.ts Removes the former brand barrel.
packages/​gamut-styles/​src/​tokens/​__tests__/​generated.test.ts Checks generated-file drift and brand isolation.
packages/​gamut-styles/​src/​themes/​skillsoft.ts Imports the reorganized generated values.
packages/​gamut-styles/​src/​themes/​originalCodecademy.ts Updates generated imports and comments.
packages/​gamut-styles/​src/​themes/​lxStudio.ts Rebuilds LX Studio as a brand theme.
packages/​gamut-styles/​src/​themes/​index.ts Exports rebuilt themes and the factory.
packages/​gamut-styles/​src/​themes/​admin.ts Rebuilds Admin as a brand theme.
packages/​gamut-styles/​src/​themes/​__tests__/​brandElevation.test.ts Extends elevation coverage across brands.
packages/​gamut-styles/​src/​GamutProvider.tsx Documents per-brand token injection.
packages/​gamut-styles/​src/​colorSystem/​README.md Removes the former generator documentation.
packages/​gamut-styles/​src/​colorSystem/​brands/​originalCodecademy.ts Removes the former brand definition.
packages/​gamut-styles/​src/​colorSystem/​brands/​index.ts Removes the former brand registry.
packages/​gamut-styles/​src/​colorSystem/​__tests__/​sandboxParity.test.ts Removes the former sandbox-parity test.
packages/​gamut-styles/​src/​Background.tsx Updates the generator-location comment.
packages/​gamut-styles/​src/​AssetProvider.test.tsx Tests font selection with LX Studio.
packages/​gamut-styles/​src/​AssetProvider.fontLoading.test.tsx Tests switching between distinct themes.
packages/​gamut-styles/​src/​__tests__/​stylingContract.test.tsx Checks each theme’s own token CSS.
packages/​gamut-styles/​scripts/​dump-sandbox.ts Removes the former sandbox-dump script.
packages/​gamut-styles/​project.json Copies nested generated assets.
packages/​gamut-styles/​package.json Updates token exports and generator dependencies.
packages/​gamut-docs/​src/​content/​docs/​guides/​theming-your-app.md Removes Percipio from the theme list.
packages/​gamut-docs/​src/​content/​docs/​guides/​creating-a-custom-theme.md Updates theme lists and configuration examples.
packages/​gamut-docs/​src/​content/​docs/​foundations/​themes.md Removes the Percipio description.
packages/​gamut-docs/​src/​content/​docs/​foundations/​design-tokens.md Changes the elevation example to Skillsoft.
packages/​gamut-docs/​src/​content/​docs/​concepts/​color-modes.md Updates theme examples in prose.
packages/​gamut-brand/​tsdown.config.ts Configures Node ESM builds.
packages/​gamut-brand/​tsconfig.spec.json Adds test TypeScript configuration.
packages/​gamut-brand/​tsconfig.lib.json Configures declaration output.
packages/​gamut-brand/​tsconfig.json Adds package TypeScript settings.
packages/​gamut-brand/​src/​validate.ts Carries validation logic with revised comments.
packages/​gamut-brand/​src/​system.ts Shares effective role-override resolution.
packages/​gamut-brand/​src/​roundTrip.ts Parses and compares emitted CSS tokens.
packages/​gamut-brand/​src/​roles.ts Adds an explicit role-token union.
packages/​gamut-brand/​src/​ramp.ts Carries palette generation with revised comments.
packages/​gamut-brand/​src/​probe.ts Clarifies tenant-probe coverage.
packages/​gamut-brand/​src/​migration.ts Carries migration mappings with revised comments.
packages/​gamut-brand/​src/​index.ts Exposes the brand-building API.
packages/​gamut-brand/​src/​emit.ts Emits brand overrides and embedded token CSS.
packages/​gamut-brand/​src/​contentModes.ts Computes content modes at build time.
packages/​gamut-brand/​src/​brands/​skillsoft.ts Carries the Skillsoft brand definition.
packages/​gamut-brand/​src/​brands/​platform.ts Adds Platform’s brand and initial mode.
packages/​gamut-brand/​src/​brands/​originalCodecademy.ts Defines shared core-family overrides.
packages/​gamut-brand/​src/​brands/​lxStudio.ts Adds LX Studio’s brand inputs.
packages/​gamut-brand/​src/​brands/​index.ts Registers and exports built-in brands.
packages/​gamut-brand/​src/​brands/​admin.ts Adds Admin’s brand inputs.
packages/​gamut-brand/​src/​brand.ts Types role overrides and initial mode.
packages/​gamut-brand/​project.json Adds build, test, and package-verification targets.
packages/​gamut-brand/​package.json Declares the new package, CLI, and dependencies.
packages/​gamut-brand/​.gitignore Excludes build output.
packages/​.storybook/​theming/​GamutThemeProvider.tsx Loads each selected brand’s tokens.
packages/​.storybook/​preview.ts Adds brand choices and changes story ordering.
packages/​.storybook/​main.ts Resolves per-brand token CSS imports.
packages/​.storybook/​components/​Elements/​DocsContainer.tsx Updates docs theme selection.
.changeset/​config.json Includes the brand package in fixed releases.
.changeset/​color-system-white-label.md Documents the generator and per-brand outputs.
.changeset/​color-system-tokens.md Revises the color-system release introduction.
.changeset/​color-system-legacy-brands.md Documents rebuilt themes and Percipio removal.
.changeset/​color-system-brands.md Documents variable naming and shadow roles.
.changeset/​color-roles-components.md Documents component migration and breaking changes.

Review effort: Balanced

Comment thread packages/gamut-brand/package.json Resolved
Comment thread packages/gamut-brand/src/emit.ts Resolved
Comment thread packages/gamut/src/Card/index.tsx Resolved

@LinKCoding LinKCoding left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests all pass!
And the Alert close button text contrast looks fixed in this PR!

I'm seeing a contrast issue for Input, disabled labels for both SKS and CC themes:
image

image

the disabled input field looks questionable too, but chrome didn't show any obvious violations
image

Card
for CC's theme Card, there's some awkward implementation with shadow and the patternLeft/Right

image

and maybe a question for Stacey to check the shadow for isInteractive on dark mode, the shadow upon hover is just dark (whereas it's currently white when hovered over)

image

--
Dialog

The CC pattern is white, but in the screenshot in the claude sandbox, the pattern is supposed to be black.
image

in SB the SKS theme doesn't have a pattern (but in claude it does, so I'd lean more on the sandbox being wrong, but figured I'd flag just in case

image

dreamwasp and others added 3 commits December 1, 2026 15:39
…ed ink

Design's update of 2026-12-01 to the field card:

- A disabled Input, TextArea, Select or SelectDropdown fills with
  `surface-sunken` and draws its outline, value and chevron in
  `action-disabled`, like its label. The value was `text-subtle` on an
  `action-disabled` fill.
- An enabled chevron is `text-default`, not `text-subtle`.

The hover rule nested in the disabled rule skips the theme scale, so it
wrote the role name as a literal and the declaration was dropped. It now
uses `currentColor`. A test covers the disabled fill, outline and value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread packages/gamut/src/Form/styles.ts Resolved
css: string,
source: ColorSystem
): ColorSystem => {
const blocks = [...css.matchAll(/([^{};]+)\{([^{}]*)\}/g)].map((m) => ({

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed on the base branch, #66 (cass-gmt-1825-color-white-label), in 5419bbcaa. parseTokensCss splits blocks and declarations with string searches instead of these regexes, and strips comments first. The gamut-brand suite passes. Not merged up into this branch, so this PR still shows the old code until #66 is merged in.

const blocks = [...css.matchAll(/([^{};]+)\{([^{}]*)\}/g)].map((m) => ({
selectors: m[1].trim().split('\n').pop()!.trim().split(/,\s*/),
decls: Object.fromEntries(
[...m[2].matchAll(/(--[\w-]+):\s*([^;]+);/g)].map((d) => [d[1], d[2]])

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed on the base branch, #66 (cass-gmt-1825-color-white-label), in 5419bbcaa. parseTokensCss splits blocks and declarations with string searches instead of these regexes, and strips comments first. The gamut-brand suite passes. Not merged up into this branch, so this PR still shows the old code until #66 is merged in.

…on in action-disabled

A browser check of design's 2026-12-01 field card turned up the
DatePicker field as the one gap: its shell was `surface-sunken` with an
`action-disabled` outline, but the label and date segments stayed
`text-default`, the separators `text-subtle`, and the calendar button
stayed enabled.

- The FormGroup gets `disabled`, so the label is `action-disabled`.
- Disabled segments and separators are `action-disabled`.
- The calendar button is disabled with the field, so it takes the
  disabled ink and leaves the tab order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dreamwasp added a commit that referenced this pull request Dec 2, 2026
…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>
Resolved the docs the same way as legacy-brands: Percipio is gone from the theme list, and the elevation example names Skillsoft.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Dec 2, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

dreamwasp and others added 2 commits December 2, 2026 14:28
…me type'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@dreamwasp
dreamwasp removed this pull request from stack #96 December 2, 2026 20:18
@dreamwasp
dreamwasp changed the base branch from cass-gmt-1825-color-brands to cass-gmt-1825-color-white-label December 2, 2026 20:18
dreamwasp and others added 4 commits December 3, 2026 08:31
The jsdom setup already registers the Emotion matchers for every test, so
these four files only repeated the Jest-era import and expect.extend. Nothing
in gamut's source uses Jest globals any more.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@dreamwasp

dreamwasp commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor Author

The gamut-brand build break in packages/gamut-brand/src/roundTrip.ts is fixed in #66, commit 187e82ad2 (fix(gamut-brand): read role refs back from tokens.css as references). That file had lost ref when #52 added it to ResolvedValue, so gamut-brand failed to typecheck and yarn nx build gamut failed on this branch. This branch still has the old file, so it picks up the fix when #66 is merged in. I checked that build with the #66 version of the file copied in locally: nx build gamut passes with zero type errors, and the gamut test suite passes apart from MarkdownVideo.test.tsx, as noted in the description.

dreamwasp and others added 4 commits December 4, 2026 09:06
- DocsContainer uses SkillsoftTheme, and falls back to the skillsoft theme
  instead of the removed core one.
- gamut-brand requires Node 22, to match the tsdown build it runs.
- Card reads borderRadii from the theme at runtime, so LX Studio's radius
  wins over the shared one.
- Stories and test helpers use the variant="secondary" name for the
  neutral action (action-neutral), since the variant key never changed.
- overrides.test.ts covers a bare-reference override that needs its
  translucent entry.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…ing notes

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

5 participants