Skip to content

feat(theme)!: restructure color tokens into primitive + semantic system - #1217

Open
buseselvi wants to merge 2 commits into
nextfrom
figma-color-token-restructure
Open

feat(theme)!: restructure color tokens into primitive + semantic system#1217
buseselvi wants to merge 2 commits into
nextfrom
figma-color-token-restructure

Conversation

@buseselvi

Copy link
Copy Markdown
Collaborator

Replace the flat --bl-color-{role} token set with a two-tier system based on the Figma token library: a theme-agnostic primitive palette (neutral/brand/success/danger/warning/info/accent scales + base white/black) plus semantic tokens (text/border/foreground/background) that are remapped per theme in default.css and dark.css. All ~35 component stylesheets, a handful of .ts files, tests and docs/ADRs are migrated to the new --bl-color-{category}-{role}[-state] naming.

BREAKING CHANGE: old color tokens (--bl-color-primary, -highlight, -contrast, --bl-color-neutral-*, etc.) are removed with no aliases. Consumers overriding these tokens must switch to the new semantic token names (e.g. --bl-color-primary -> --bl-color-foreground-brand or --bl-color-text-brand depending on usage).

buseselvi and others added 2 commits July 31, 2026 13:09
Replace the flat --bl-color-{role} token set with a two-tier system
based on the Figma token library: a theme-agnostic primitive palette
(neutral/brand/success/danger/warning/info/accent scales + base
white/black) plus semantic tokens (text/border/foreground/background)
that are remapped per theme in default.css and dark.css. All ~35
component stylesheets, a handful of .ts files, tests and docs/ADRs
are migrated to the new --bl-color-{category}-{role}[-state] naming.

BREAKING CHANGE: old color tokens (--bl-color-primary, -highlight,
-contrast, --bl-color-neutral-*, etc.) are removed with no aliases.
Consumers overriding these tokens must switch to the new semantic
token names (e.g. --bl-color-primary -> --bl-color-foreground-brand
or --bl-color-text-brand depending on usage).
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.

2 participants