Repository navigation
feat(elements): semantic color tokens - #286
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…antic and component layers Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…kens Co-Authored-By: Claude Opus 5.5 <[email protected]>
… semantic tokens Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mantic tokens Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… components background-clr-raised now references background-clr and border-clr-focus references outline-clr, so existing theme overrides still reach dropdowns and focused input borders. Also skip array exports in the css-props generator and document the wider reach of semantic overrides. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stops changesets from releasing a major of @atomicjolt/forms every time @atomicjolt/atomic-elements ships a minor that still satisfies its ^3.x peer range. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The new semantic token `icon-clr` collided with MaterialIcon's optional local hook `var(--icon-clr, inherit)`, so every icon turned neutral600 instead of inheriting its parent's color (e.g. banner icons). Rename the semantic token to `icon-clr-secondary` and make the layering test fail when a semantic token is read with a var() fallback. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Solid fills behind on-accent text will be named *-fill across accent and status colors in the color scheme work; rename before this ships so no deprecated alias is needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The resolved-token baseline, expectedChanges list and "today's shades" test only guarded the migration itself. Keep the layering and override-chain tests, which protect lasting guarantees. Also exclude __tests__ helpers from the type build so they don't ship in dist. Co-Authored-By: Claude Opus 5.5 <[email protected]>
blunckr-aj
approved these changes
Nov 20, 2026
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.
Groundwork for color schemes (dark mode, high contrast). Components now use semantic color tokens (what a color is for) instead of raw palette shades, so a future scheme can remap colors without touching components. Ships as a minor release of
@atomicjolt/atomic-elements(3.12.0).What changed
src/styles/theme/:palette.ts(raw scales),foundations.ts(spacing, type, sizes),semantic.ts(roles likebackground-clr-subtle,text-clr-on-accent,border-clr-focus,error-clr-subtle,shadow-md), andcomponent.ts(btn-bg-clretc.).variables.tsandstyles/theme.tsare gone;@styles/themestill works.background-clr-alt,text-clr-alt,border-clr-primary,outline-clr-primary,accent-clr-alt,{error,warning,success}-clr-alt,info-clr,info-clr-alt.onlyUpdatePeerDependentsWhenOutOfRange, so@atomicjolt/formsno longer gets a major release every time atomic-elements ships a minor that still satisfies its^3.xpeer range.docs/Theme/Intro.mdxexplains the token layers and lists the deprecated names. The design and plan are indocs/superpowers/.Tests that guard this
layering.spec.tsfails if component code:var()fallback, which can never apply.semantic.spec.ts: overrides of palette shades, deprecated names,background-clrandoutline-clrstill reach the components that used them. Color props accept every name, and the types keep deprecated names out ofSemanticColor.Visual changes to review in Storybook
Full list:
docs/superpowers/plans/2026-11-19-semantic-tokens-visual-changes.md.error800).text-clr-disabled. Disabled icons are now opaque, so they no longer tint on colored backgrounds.Danger and success buttons keep their 700/800 shades on purpose. White text on
success600fails WCAG AA (3.2:1).Behavior change for custom themes
Components that used fixed shades now follow semantic tokens. So overriding a semantic token now reaches more components than before. For example:
accent-clr;background-clr.The changeset calls this out.
🤖 Generated with Claude Code