Skip to content

Color stack preview: rebuilt with the --color- prefix (do not merge) - #73

Draft
dreamwasp wants to merge 491 commits into
mainfrom
cass-gmt-1825-color-preview-rebuild
Draft

dreamwasp wants to merge 491 commits into
mainfrom
cass-gmt-1825-color-preview-rebuild

Conversation

@dreamwasp

@dreamwasp dreamwasp commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Full preview of the color stack, rebuilt from the renamed stack and brought up to the current tips. Start here to see the whole stack together. Do not merge.

Merged, in order: cass-gmt-1825-color-system (#50), cass-gmt-1825-color-brands (#52), cass-gmt-1825-color-legacy-brands (#58), cass-gmt-1825-color-white-label (#66), cass-gmt-1825-color-components (#54), cass-gmt-1825-color-docs (#59), cass-gmt-1825-color-behavior (#63), cass-gmt-1825-color-site (#67), cass-gmt-1825-color-codemod (#53).

Since the last update: the review fixes on #50 (duplicate theme import removed, --color-* filtered from dark-mode _variables.mode as well as root, sideEffects set to CSS only, and a drift test that regenerates the checked-in token files), the README on #66 for gamut's own brands, and the tips of #52, #54, #63, #67 and #53.

Also since the last update: gamut-brand's roundTrip.ts rebuilds each role's ref from its var() key again (#66, 187e82ad2). Adding ref to ResolvedValue in #52 left that file without it, which broke the package typecheck and so the gamut build.

Not included:

Notes

Testing

Run from the repo root after yarn install.

🤖 Generated with Claude Code

css: string,
source: ColorSystem
): ColorSystem => {
const blocks = [...css.matchAll(/([^{};]+)\{([^{}]*)\}/g)].map((m) => ({
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]])
@pkg-pr-new

pkg-pr-new Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@skillsoft/eslint-plugin-gamut

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/eslint-plugin-gamut@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/eslint-plugin-gamut@73.tgz

@skillsoft/gamut

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut@73.tgz

@skillsoft/gamut-agent-tools

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-agent-tools@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-agent-tools@73.tgz

@skillsoft/gamut-brand

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-brand@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-brand@73.tgz

@skillsoft/gamut-codemods

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-codemods@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-codemods@73.tgz

@skillsoft/gamut-icons

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-icons@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-icons@73.tgz

@skillsoft/gamut-illustrations

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-illustrations@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-illustrations@73.tgz

@skillsoft/gamut-patterns

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-patterns@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-patterns@73.tgz

@skillsoft/gamut-styles

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-styles@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-styles@73.tgz

@skillsoft/gamut-tests

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-tests@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/gamut-tests@73.tgz

@skillsoft/variance

npm i https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/variance@73
yarn add https://pkg.pr.new/Codecademy/skillsoft-gamut/@skillsoft/variance@73.tgz

commit: c1daa32

@codecov

codecov Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.88350% with 113 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.77%. Comparing base (7f6b1f1) to head (c1daa32).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
packages/gamut-brand/src/emit.ts 65.57% 63 Missing ⚠️
...gamut-codemods/src/migrations/color-roles/index.ts 96.61% 16 Missing ⚠️
packages/gamut-brand/src/migration.ts 98.94% 15 Missing ⚠️
packages/gamut-styles/src/Background.tsx 85.18% 4 Missing ⚠️
packages/gamut-styles/src/ColorMode.tsx 90.47% 4 Missing ⚠️
packages/gamut-brand/src/brand.ts 96.20% 3 Missing ⚠️
packages/gamut-brand/src/system.ts 97.90% 3 Missing ⚠️
...es/gamut-codemods/src/presets/color-roles/index.ts 96.72% 2 Missing ⚠️
...ds/src/migrations/color-roles-stylesheets/index.ts 98.48% 1 Missing ⚠️
...mut-codemods/src/migrations/color-roles/cssVars.ts 98.36% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff            @@
##           main      #73       +/-   ##
=========================================
+ Coverage      0   84.77%   +84.77%     
=========================================
  Files         0      499      +499     
  Lines         0    41488    +41488     
  Branches      0     2195     +2195     
=========================================
+ Hits          0    35173    +35173     
- Misses        0     6315     +6315     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Removed theme exports still have Storybook consumers, and CSS exports remain marked side-effect-free, risking broken Storybook configuration and missing token variables in production builds.

2 open issues
What changed in this PR

This preview brings Gamut’s generated --color-* system, brand themes, component updates and migration tooling together for integration review. It remains marked do not merge; static component styles and the separately identified main-branch changes are excluded.

Changes:

  • Adds per-brand color tokens, white-label tooling and Skillsoft as the default theme.
  • Moves components, examples and documentation onto semantic color roles, with updated selection, elevation and progress-label behavior.
  • Extends migration presets, fixtures, package exports and Storybook support.
File Description
packages/​variance/​src/​createTheme/​createTheme.ts Aligns color-variable types with --color-*.
packages/​styleguide/​src/​lib/​Organisms/​Markdown/​Markdown.stories.tsx Uses action roles in Markdown examples.
packages/​styleguide/​src/​lib/​Organisms/​ListsAndTables/​List/​ListRow/​ListRow.mdx Updates the expansion icon color.
packages/​styleguide/​src/​lib/​Organisms/​ListsAndTables/​examples.tsx Migrates shared table examples to roles.
packages/​styleguide/​src/​lib/​Organisms/​ListsAndTables/​DataTable/​DataTable.stories.tsx Updates the surrounding surface.
packages/​styleguide/​src/​lib/​Organisms/​ListsAndTables/​DataList/​DataList.stories.tsx Uses a subtle expansion border.
packages/​styleguide/​src/​lib/​Organisms/​GridForm/​Layout.stories.tsx Updates form-label color examples.
packages/​styleguide/​src/​lib/​Organisms/​BarChart/​BarChart.stories.tsx Migrates chart customization examples.
packages/​styleguide/​src/​lib/​Organisms/​BarChart/​BarChart.mdx Documents role-based chart defaults.
packages/​styleguide/​src/​lib/​Meta/​Usage guide.mdx Removes Percipio from theme guidance.
packages/​styleguide/​src/​lib/​Meta/​Installation.mdx Updates the installation surface example.
packages/​styleguide/​src/​lib/​Meta/​ESLint rules.mdx Updates styling examples to roles.
packages/​styleguide/​src/​lib/​Foundations/​Utilities/​Utilities.mdx Updates the hover-color example.
packages/​styleguide/​src/​lib/​Foundations/​Utilities/​boxShadow.tsx Uses a raised demonstration surface.
packages/​styleguide/​src/​lib/​Foundations/​Theme/​CreatingThemes.mdx Revises example toolbar configuration.
packages/​styleguide/​src/​lib/​Foundations/​Theme/​CoreTheme.mdx Explains brand shadow roles.
packages/​styleguide/​src/​lib/​Foundations/​Theme/​About.mdx Updates theme listings and examples.
packages/​styleguide/​src/​lib/​Foundations/​System/​Variants.mdx Uses semantic variant colors.
packages/​styleguide/​src/​lib/​Foundations/​System/​ResponsiveProperties/​ResponsiveProperties.stories.tsx Migrates responsive color examples.
packages/​styleguide/​src/​lib/​Foundations/​System/​Props/​Space.stories.tsx Updates spacing-demo colors.
packages/​styleguide/​src/​lib/​Foundations/​System/​Props/​Positioning.stories.tsx Updates positioning-demo colors.
packages/​styleguide/​src/​lib/​Foundations/​System/​Props/​Color.stories.tsx Demonstrates role-based border colors.
packages/​styleguide/​src/​lib/​Foundations/​System/​Props/​Color.mdx Updates the color-props example.
packages/​styleguide/​src/​lib/​Foundations/​shared/​platformElements.tsx Sets explicit modes for token tables.
packages/​styleguide/​src/​lib/​Foundations/​shared/​lxStudioElements.tsx Updates token-table modes and fills.
packages/​styleguide/​src/​lib/​Foundations/​shared/​adminElements.tsx Sets explicit modes for token tables.
packages/​styleguide/​src/​lib/​Foundations/​Layout.mdx Updates layout-demo fills.
packages/​styleguide/​.storybook/​preview.ts Updates source backgrounds and theme options.
packages/​styleguide/​.storybook/​components/​TokenTable/​elements.tsx Migrates inset-table colors.
packages/​styleguide/​.storybook/​components/​Scales/​ColorScale.tsx Uses the default text role.
packages/​styleguide/​.storybook/​components/​Headers/​ComponentHeader.tsx Updates header surface and border.
packages/​styleguide/​.storybook/​components/​Headers/​AboutHeader.tsx Updates header surface and border.
packages/​styleguide/​.storybook/​components/​Elements/​StatusIndicator.tsx Maps status indicators to roles.
packages/​styleguide/​.storybook/​components/​Elements/​Markdown.tsx Updates code colors and scrollbar interpolation.
packages/​styleguide/​.storybook/​components/​Elements/​KeyboardKey.tsx Updates keyboard-key surface and border.
packages/​styleguide/​.storybook/​components/​Elements/​ImageGallery.tsx Uses subtle empty-state text.
packages/​styleguide/​.storybook/​components/​Elements/​DocsContainer.tsx Removes Percipio and updates the theme cast.
packages/​gamut/​src/​Video/​lib/​ReactPlayer.tsx Uses black for the control gradient.
packages/​gamut/​src/​utils/​gradientLayer.ts Adds container-sized gradient layers.
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 Updates the highlight color.
packages/​gamut/​src/​Toggle/​index.tsx Maps toggle tracks and thumbs to roles.
packages/​gamut/​src/​Toggle/​elements.tsx Updates focus and disabled styling.
packages/​gamut/​src/​Toast/​Toast.tsx Applies the shared raised shadow.
packages/​gamut/​src/​Tips/​shared/​styles/​styles.tsx Uses raised tooltip surfaces and subtle edges.
packages/​gamut/​src/​Tips/​shared/​elements.tsx Adds tooltip elevation and role-based focus.
packages/​gamut/​src/​Tips/​PreviewTip/​PreviewTip.stories.tsx Updates avatar example colors.
packages/​gamut/​src/​Tips/​PreviewTip/​elements.tsx Updates roles and brand-specific patterns.
packages/​gamut/​src/​Tips/​InfoTip/​styles.tsx Migrates interactive states to roles.
packages/​gamut/​src/​Tips/​InfoTip/​InfoTip.stories.tsx Updates helper text and surfaces.
packages/​gamut/​src/​Tabs/​Tabs.tsx Removes forced dark mode from block tabs.
packages/​gamut/​src/​Tabs/​Tabs.stories.tsx Updates the controlled example’s surface.
packages/​gamut/​src/​Tabs/​styles.tsx Uses subtle borders and a sunken track.
packages/​gamut/​src/​SkipToContent/​index.tsx Migrates skip-link colors and focus.
packages/​gamut/​src/​ProgressBar/​ProgressBar.test.tsx Tests two-tone labels and clipping.
packages/​gamut/​src/​ProgressBar/​ProgressBar.stories.tsx Checks decorative label copies.
packages/​gamut/​src/​PopoverContainer/​PopoverContainer.stories.tsx Uses raised example surfaces.
packages/​gamut/​src/​Popover/​styles/​variants.ts Updates the large beak fill.
packages/​gamut/​src/​Popover/​styles/​base.ts Adds subtle borders and raised surfaces.
packages/​gamut/​src/​Popover/​elements.tsx Applies shared popover elevation.
packages/​gamut/​src/​PatternBackdrop/​__tests__/​PatternBackdrop.test.tsx Tests brand-specific checker patterns.
packages/​gamut/​src/​Overlay/​index.tsx Uses the scrim role.
packages/​gamut/​src/​Modals/​Dialog.stories.tsx Updates helper-text color.
packages/​gamut/​src/​Menu/​MenuSeparator.tsx Uses a subtle separator color.
packages/​gamut/​src/​Menu/​Menu.stories.tsx Migrates menu example colors.
packages/​gamut/​src/​Markdown/​styles.ts Updates code and quotation colors.
packages/​gamut/​src/​Markdown/​libs/​overrides/​Table/​index.tsx Migrates table borders, text and stripes.
packages/​gamut/​src/​Layout/​LayoutGrid.stories.tsx Updates grid-example contrast colors.
packages/​gamut/​src/​GridForm/​GridFormSections/​GridFormSectionBreak.tsx Uses a subtle section divider.
packages/​gamut/​src/​GridForm/​GridFormInputGroup/​index.tsx Uses error-text color for links.
packages/​gamut/​src/​Form/​inputs/​SelectDropdown/​elements/​options.tsx Updates option text, icons and dividers.
packages/​gamut/​src/​Form/​inputs/​SelectDropdown/​elements/​multi-value.tsx Updates removal-control colors and focus.
packages/​gamut/​src/​Form/​inputs/​SelectDropdown/​elements/​controls.tsx Uses subtle chevron ink.
packages/​gamut/​src/​Form/​inputs/​Select.tsx Updates error and default chevrons.
packages/​gamut/​src/​Form/​inputs/​Input.tsx Maps input-status icons to roles.
packages/​gamut/​src/​Form/​elements/​FormGroupDescription.tsx Uses subtle description text.
packages/​gamut/​src/​Form/​elements/​FormError.tsx Uses the error-text role.
packages/​gamut/​src/​FocusTrap/​FocusTrap.stories.tsx Updates the inactive example border.
packages/​gamut/​src/​Flyout/​index.tsx Adds a raised surface and inner edge.
packages/​gamut/​src/​FeatureShimmer/​index.tsx Migrates shimmer fills and borders.
packages/​gamut/​src/​Drawer/​Drawer.stories.tsx Updates the surrounding demo surface.
packages/​gamut/​src/​Disclosure/​elements.tsx Migrates surfaces, focus and disabled states.
packages/​gamut/​src/​Disclosure/​DisclosureButton.tsx Adjusts disabled overline ink.
packages/​gamut/​src/​Disclosure/​Disclosure.stories.tsx Updates disclosure surface examples.
packages/​gamut/​src/​DatePicker/​DatePickerInput/​Segment/​elements.tsx Updates segment text and focus colors.
packages/​gamut/​src/​DatePicker/​DatePickerInput/​index.tsx Marks disabled input shells.
packages/​gamut/​src/​DatePicker/​DatePickerInput/​elements.tsx Updates error rings and disabled-state guidance.
packages/​gamut/​src/​DatePicker/​DatePickerCalendar/​Calendar/​CalendarWrapper.tsx Adds role-based surfaces and brand patterns.
packages/​gamut/​src/​DataList/​Tables/​Rows/​TableRow.tsx Passes selection state to rows.
packages/​gamut/​src/​DataList/​Controls/​SortControl.tsx Migrates sorting-control colors.
packages/​gamut/​src/​DataList/​Controls/​FilterControl.tsx Uses roles for filter-state ink.
packages/​gamut/​src/​DataList/​Controls/​ExpandControl.tsx Uses neutral action ink.
packages/​gamut/​src/​DataList/​__tests__/​DataGrid.test.tsx Tests selected-row tinting.
packages/​gamut/​src/​ConnectedForm/​ConnectedFormGroup.tsx Uses error-text color for links.
packages/​gamut/​src/​Card/​index.tsx Wires brand surfaces, gradients and interaction.
packages/​gamut/​src/​Card/​elements.tsx Applies interactive states and gradient layers.
packages/​gamut/​src/​ButtonBase/​ButtonBase.tsx Uses default text in button resets.
packages/​gamut/​src/​Button/​CTAButton.tsx Adds theme-based CTA elevation.
packages/​gamut/​src/​Button/​ButtonExamples.stories.tsx Demonstrates buttons in explicit modes.
packages/​gamut/​src/​Breadcrumbs/​index.tsx Uses subtle separator ink.
packages/​gamut/​src/​Box/​Box.stories.tsx Updates positioning-example surfaces.
packages/​gamut/​src/​BarChart/​utils/​hooks.ts Chooses black or white contrast borders.
packages/​gamut/​src/​BarChart/​shared/​types.tsx Documents updated color defaults.
packages/​gamut/​src/​BarChart/​shared/​elements.tsx Uses selection tint for alternating rows.
packages/​gamut/​src/​BarChart/​layout/​GridLines.tsx Migrates grid-line colors.
packages/​gamut/​src/​BarChart/​index.tsx Updates chart dividers and descriptions.
packages/​gamut/​src/​BarChart/​BarRow/​elements.tsx Migrates row hover and focus styling.
packages/​gamut/​src/​BarChart/​BarChartProvider.tsx Sets role-based chart defaults.
packages/​gamut/​src/​BarChart/​__tests__/​BarChart.test.tsx Updates custom-color test inputs.
packages/​gamut/​src/​Badge/​index.tsx Maps badge variants to roles.
packages/​gamut/​src/​Badge/​Badge.stories.tsx Updates role and palette examples.
packages/​gamut/​src/​Anchor/​Anchor.stories.tsx Demonstrates links in explicit modes.
packages/​gamut/​src/​Alert/​elements.tsx Adds gradients and variant-specific ink.
packages/​gamut-styles/​tsdown.config.ts Builds the standalone token entry.
packages/​gamut-styles/​src/​utilities/​__tests__/​useLogicalProperties.test.tsx Tests with the Skillsoft theme.
packages/​gamut-styles/​src/​utilities/​__tests__/​themed.test.ts Updates theme and token lookups.
packages/​gamut-styles/​src/​typings/​theme.d.ts Types Emotion against Skillsoft.
packages/​gamut-styles/​src/​tokens/​index.ts Exports plain token data and brands.
packages/​gamut-styles/​src/​tokens/​generated/​index.ts Exports each generated brand.
packages/​gamut-styles/​src/​tokens/​__tests__/​generated.test.ts Checks freshness and brand isolation.
packages/​gamut-styles/​src/​themes/​skillsoft.ts Defines the new default theme.
packages/​gamut-styles/​src/​themes/​originalCodecademy.ts Defines the rebuilt Codecademy theme.
packages/​gamut-styles/​src/​themes/​index.ts Replaces legacy theme exports.
packages/​gamut-styles/​src/​themes/​admin.ts Rebuilds Admin through the brand factory.
packages/​gamut-styles/​src/​themes/​__tests__/​theme.test.ts Snapshots the Skillsoft theme.
packages/​gamut-styles/​src/​remoteAssets/​fonts.ts Maps new brands to font assets.
packages/​gamut-styles/​src/​index.ts Exports Skillsoft as the default theme.
packages/​gamut-styles/​src/​globals/​Typography.tsx Accepts the shared Emotion theme type.
packages/​gamut-styles/​src/​globals/​Reboot.tsx Uses roles with legacy fallbacks.
packages/​gamut-styles/​src/​AssetProvider.tsx Defaults to Skillsoft and deduplicates preloads.
packages/​gamut-styles/​src/​__tests__/​testUtils.tsx Uses Skillsoft in test helpers.
packages/​gamut-styles/​src/​__tests__/​GamutProvider.csp.test.tsx Updates nonce tests to Skillsoft.
packages/​gamut-styles/​project.json Copies token assets and adjusts package checks.
packages/​gamut-styles/​package.json Exposes token assets and generation commands.
packages/​gamut-docs/​src/​content/​docs/​getting-started/​installation.md Updates provider setup and theme typing.
packages/​gamut-docs/​src/​content/​docs/​foundations/​system-props/​prop-groups.md Documents role-based color props.
packages/​gamut-docs/​src/​content/​docs/​foundations/​system-props/​compose-and-variants.md Updates the variant-color example.
packages/​gamut-docs/​src/​content/​docs/​foundations/​eslint-rules.md Updates theme-access examples.
packages/​gamut-docs/​src/​content/​docs/​concepts/​index.md Links the color-system concept page.
packages/​gamut-docs/​src/​content/​docs/​concepts/​best-practices.md Recommends semantic color roles.
packages/​gamut-docs/​src/​content/​docs/​components/​data-display/​bar-chart.mdx Updates contrast-border terminology.
packages/​gamut-docs/​src/​content/​docs/​components/​actions/​Buttons/​text-button.mdx Generalizes dark-background guidance.
packages/​gamut-docs/​src/​content/​docs/​components/​actions/​Buttons/​stroke-button.mdx Generalizes dark-background guidance.
packages/​gamut-docs/​src/​content/​docs/​components/​actions/​Buttons/​icon-button.mdx Generalizes dark-background guidance.
packages/​gamut-docs/​src/​content/​docs/​components/​actions/​Buttons/​fill-button.mdx Generalizes dark-background guidance.
packages/​gamut-docs/​src/​content/​docs/​components/​actions/​Buttons/​cta-button.mdx Generalizes dark-background guidance.
packages/​gamut-docs/​astro.config.mjs Loads generated tokens and site theme CSS.
packages/​gamut-codemods/​src/​transform.ts Uses preset-specific source filtering.
packages/​gamut-codemods/​src/​presets/​scope-swap/​manifest.ts Declares required runtime peers.
packages/​gamut-codemods/​src/​presets/​scope-swap/​index.ts Adds preset hooks and peer guidance.
packages/​gamut-codemods/​src/​presets/​index.ts Registers the color-role preset.
packages/​gamut-codemods/​src/​migrations/​tsconfig-dom/​index.ts Limits DOM warnings to Gamut users.
packages/​gamut-codemods/​src/​migrations/​package-json/​index.ts Adds missing runtime peers.
packages/​gamut-codemods/​src/​migrations/​package-json/​__testfixtures__/​required-peers.output.json Defines expected peer additions.
packages/​gamut-codemods/​src/​migrations/​package-json/​__testfixtures__/​required-peers.input.json Adds a missing-peers input case.
packages/​gamut-codemods/​src/​migrations/​package-json/​__testfixtures__/​peers.output.json Updates library peer expectations.
packages/​gamut-codemods/​src/​migrations/​package-json/​__testfixtures__/​newer-than-source.output.json Updates peer expectations for newer sources.
packages/​gamut-codemods/​src/​migrations/​package-json/​__testfixtures__/​kit.output.json Updates peers after kit migration.
packages/​gamut-codemods/​src/​migrations/​package-json/​__testfixtures__/​already-renamed.output.json Covers peers in already-renamed packages.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​styles.warnings.json Defines style-migration warnings.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​styles.input.ts Covers style objects and dynamic names.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​strings.warnings.json Defines CSS-variable string warnings.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​strings.output.ts Defines migrated CSS-variable strings.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​strings.input.ts Covers embedded CSS-variable references.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​manual.warnings.json Defines manual-migration warnings.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​manual.output.tsx Defines retained names and guidance comments.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​manual.input.tsx Covers ambiguous and retired aliases.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​jsx.warnings.json Defines old-palette warnings.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​jsx.output.tsx Defines migrated JSX color props.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​jsx.input.tsx Covers JSX and responsive color props.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​card.warnings.json Defines dark-card migration guidance.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​card.output.tsx Defines migrated Card variants.
packages/​gamut-codemods/​src/​migrations/​color-roles/​__testfixtures__/​card.input.tsx Covers Card variants and unrelated components.
packages/​gamut-codemods/​src/​migrations/​color-roles-themes/​__testfixtures__/​themes.warnings.json Defines legacy-theme type guidance.
packages/​gamut-codemods/​src/​migrations/​color-roles-themes/​__testfixtures__/​themes.output.tsx Defines migrated theme references.
packages/​gamut-codemods/​src/​migrations/​color-roles-themes/​__testfixtures__/​themes.input.tsx Covers legacy theme imports and usages.
packages/​gamut-codemods/​src/​migrations/​color-roles-stylesheets/​__testfixtures__/​vars.warnings.json Defines stylesheet migration warnings.
packages/​gamut-codemods/​src/​migrations/​color-roles-stylesheets/​__testfixtures__/​vars.output.scss Defines migrated stylesheet variables.
packages/​gamut-codemods/​src/​migrations/​color-roles-stylesheets/​__testfixtures__/​vars.input.scss Covers legacy variables and fallbacks.
packages/​gamut-codemods/​src/​lib/​manifest.ts Types required-peer metadata.
packages/​gamut-codemods/​src/​lib/​leftovers.ts Skips named generated files.
packages/​gamut-codemods/​src/​lib/​gamut-imports.ts Detects and caches directory-level Gamut usage.
packages/​gamut-codemods/​src/​__tests__/​fixtures.test.ts Adds idempotence and preset fixture handling.
packages/​gamut-codemods/​src/​__tests__/​color-roles-manifest.test.ts Validates alias mappings and role targets.
packages/​gamut-brand/​tsdown.config.ts Configures Node-only API and CLI builds.
packages/​gamut-brand/​tsconfig.spec.json Configures brand-package test compilation.
packages/​gamut-brand/​tsconfig.lib.json Configures declaration output.
packages/​gamut-brand/​tsconfig.json Defines package TypeScript settings.
packages/​gamut-brand/​src/​contentModes.ts Calculates palette content modes at build time.
packages/​gamut-brand/​src/​brands/​skillsoft.ts Defines Skillsoft hue inputs.
packages/​gamut-brand/​src/​brands/​platform.ts Defines Platform overrides and dark start.
packages/​gamut-brand/​src/​brands/​lxStudio.ts Defines LX Studio colors and overrides.
packages/​gamut-brand/​src/​brands/​index.ts Registers built-in brands and the default.
packages/​gamut-brand/​src/​brands/​admin.ts Defines Admin’s rebuilt brand inputs.
packages/​gamut-brand/​project.json Adds build, test and publishing targets.
packages/​gamut-brand/​package.json Declares the public generator package.
packages/​gamut-brand/​jest.config.ts Configures Node-based tests.
packages/​gamut-brand/​babel.config.js Reuses shared Babel configuration.
packages/​gamut-brand/​.gitignore Excludes build output.
packages/​gamut-agent-tools/​README.md Documents the unified migration skill.
packages/​.storybook/​systemProps.ts Sources control tokens from Skillsoft.
packages/​.storybook/​preview.ts Updates the default and available themes.
packages/​.storybook/​main.ts Resolves public token subpaths to source.
.prettierignore Excludes generated token files.
.changeset/​gamut-scope-swap-skill.md Removes the superseded skill release note.
.changeset/​gamut-migration-skill.md Records the unified migration skill.
.changeset/​config.json Adds gamut-brand to fixed releases.
.changeset/​color-system-white-label.md Records per-brand assets and public tooling.
.changeset/​color-system-tokens.md Records the generated color foundation.
.changeset/​color-system-legacy-brands.md Records rebuilt brands and Percipio replacement.
.changeset/​color-system-brands.md Records brand, mode and shadow changes.
.changeset/​color-roles-component-behavior.md Records row tinting and two-tone labels.

Review effort: Balanced

Comment on lines +4 to +5
export * from './skillsoft';
export * from './originalCodecademy';
Comment on lines +27 to +28
"./tokens.css": "./dist/tokens/generated/skillsoft/tokens.css",
"./tokens/*.css": "./dist/tokens/generated/*/tokens.css",
dreamwasp and others added 18 commits November 19, 2026 14:58
…gration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit bb684b9)
…gration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit bb684b9)
…gration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit bb684b9)
…gration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit bb684b9)
…gration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit bb684b9)
…gration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit bb684b9)
…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>
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
…igration skill

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
(cherry picked from commit b35dc09)
Hyper is the old primary, so fills, text and borders take action-primary. Yellow stays a warning, since its role depends on the brand.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
dreamwasp and others added 30 commits December 3, 2026 08:51
…ckground

The jsdom setup already registers the Emotion matchers for every test.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The jsdom setup already registers the Emotion matchers for every test.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…s' into HEAD

# Conflicts:
#	packages/gamut-styles/src/__tests__/stylingContract.test.tsx
…and ProgressBar

The jsdom setup already registers the Emotion matchers for every test.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
coreTheme no longer exists, so the gamut-docs build fails on the import.
The examples now use originalCodecademyTheme (what the themes page recommends)
and the role names for the canvas background and text.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
themes/theme.test.ts reads its snapshot from themes/__snapshots__/. The
copy under themes/__tests__/__snapshots__/ had no test and was reported
as obsolete. Delete it; the live snapshot is unchanged.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
validate.ts measures surface roles as flat fills, so a gradient's worst
point never reached a check. worstGradientContrast samples the gradient
on a grid at alert-sized widths, composites the palette circles over the
flat fill as CSS paints them, and reports the lowest ratio against the
ink. The test asserts text-default clears 4.5:1 for every gradient role
in every brand and mode, and that white ink fails on the light gradient,
so the sampler can't pass by accident.

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

Copilot review on the color system PR found five places where the build
read the shared default roles instead of what a brand resolves to:

- Emitted role references use the resolved value, so Original
  Codecademy's dark action-primary points at accent.300, not primary.400.
- Translucent palette entries come from the resolved roles, so a
  bare-reference override keeps its role's alpha and gets an entry. The
  shared defaults stay in the set, so every brand has the same palette
  keys.
- The hover-to-pressed check measures each state role at its resolved
  alpha, so an overridden strength is what gets validated.
- A same-mode ColorMode with no bg inherits the parent's background
  variable instead of being reset by the data-color-mode selector.
- The storybook background effect re-runs when the brand's background
  changes.

Tests cover the resolved reference, the alpha of a bare-reference
override, that every emitted reference resolves, the overridden hover
step, and the same-mode nested background.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The brands commit fixes how role overrides reach the emitted tokens, the
hover-to-pressed check, and the same-mode ColorMode background. In this
branch the color system lives in gamut-brand, so the emit and validate
changes are ported there. The override test moves to gamut-brand's
__tests__ with its imports unchanged.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
ResolvedValue now carries its ref. parseTokensCss rebuilt roles without
one, which broke the gamut-brand typecheck and every round-trip check.
Rebuild the ref from the var() key: palette refs keep their slot, grade
and optional alpha, and black/white keep their boundary alpha.

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.

3 participants