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>
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>
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>
The older color pages (color modes, design tokens, themes, supporting dark mode, theming your app, creating a custom theme) described the old aliases and Core theme. They now cover roles, the five brand themes and building a brand with @skillsoft/gamut-brand. Code samples on other pages use roles instead of old color names, Card documents its two variants, and the site's own Starlight colors come from the Skillsoft brand's tokens.css instead of a hand-copied Core palette. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 of 6 tasks
Covers the variance createTheme and gamut-styles ColorMode prefixes, the gamut-brand Style Dictionary prefix, the docs site and the regenerated tokens. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Overview
Moves the rest of the gamut-docs site onto the generated color system. #59 added the Color system page; the older pages still described the old aliases (
text,background,primary), the Core theme and palette names likenavyandbeige. This is the last PR in the color stack.Pages rewritten
concepts/color-modes.md: roles instead of aliases, modes asdata-color-modeattributes, and how a brand and a mode combine.foundations/themes.md: the five brand themes,skillsoftThemeas the default, the sharedSkillsoftThemetype, andcoreThemekept only until the move to roles is done.foundations/design-tokens.md: roles vs palette colors,--color-*custom properties, and elevation drawn inshadow-keyandshadow-ambient.guides/supporting-dark-mode.md: roles, andBackgroundchoosing its content mode from the build-time table.guides/theming-your-app.md: passing a brand theme toGamutProvider, with role-based samples.guides/creating-a-custom-theme.md: replaces the hand-builtcreateThemepalette with building a brand with@skillsoft/gamut-brand. It coversdefineBrand, overrides, the CLI (--watchand--check),createBrandTheme, types and previewing in Storybook. The override example was run throughgenerateBrandand passes.Smaller fixes
SkillsoftThemefor the Emotion theme type), build your first page, prop groups, compose and variants, best practices and the ESLint rule examples.components/containers/card.mdxdocumentsdefaultandbrand, which replace the color variants, and the interactive shadow. Its story embeds pointed atatoms-card--*ids that no longer exist; they now usecontainers-card--*.concepts/color-system.mddrops its note that Color modes still describes the old names.The site's own colors
src/styles/gamut-core-theme.csshand-copied old Core's navy, hyper and beige into Starlight's variables. It's nowgamut-theme.css, and loads@skillsoft/gamut-styles/tokens.cssfirst. Each Starlight variable points at the palette color its Gamut role uses in that mode, so the site follows the Skillsoft brand.Starlight switches modes with
data-theme, notdata-color-mode, so the roles' mode blocks don't apply and the mapping is per mode in the file. Starlight's cascade layers come after Gamut's, so its owncolor-schemeand base styles still win.Not in this PR
percipioas a--themevalue. That's the plugin's own flag, so it changes with the plugin.Stacked on #63, with #59 merged in.
PR Checklist
Testing Instructions
npx nx build gamut-docs: 154 pages build.npx nx dev gamut-docs, then switch the site between light and dark. The chrome uses Skillsoft's paper, navy and blue instead of Core's beige, navy and violet.text,background,primary,navy,beigeorhyperas colors.🤖 Generated with Claude Code