Skip to content

Ship a semantic token layer with dark mode in boxel-ui#5394

Draft
burieberry wants to merge 1 commit into
mainfrom
cs-11769-default-theme-token-layer
Draft

Ship a semantic token layer with dark mode in boxel-ui#5394
burieberry wants to merge 1 commit into
mainfrom
cs-11769-default-theme-token-layer

Conversation

@burieberry

Copy link
Copy Markdown
Contributor

Own the semantic design tokens in the addon instead of leaving them to consumers:

  • theme.css (new): defines the full semantic contract (--primary, --foreground, --muted, --card, --border, --destructive, --sidebar-, shadows, etc.) mapped onto the --boxel- palette as a default light theme, plus a dark theme via .dark / [data-theme="dark"] and an opt-in [data-theme="system"] scope. Also emits an inherited --boxel-color-scheme signal for cards to key off.
  • variables.css: mark the raw --boxel-* palette as an internal implementation detail; component/card styles should consume the semantic tokens.
  • button, multi-select: migrate bare palette border refs onto var(--border, ...).
  • boxel-ui components freestyle-docs improved look

Own the semantic design tokens in the addon instead of leaving them to consumers:

- theme.css (new): defines the full semantic contract (--primary, --foreground,  --muted, --card, --border, --destructive, --sidebar-*, shadows, etc.) mapped onto the --boxel-* palette as a default light theme, plus a dark theme via .dark / [data-theme="dark"] and an opt-in [data-theme="system"] scope. Also emits an inherited --boxel-color-scheme signal for cards to key off.
- variables.css: mark the raw --boxel-* palette as an internal implementation detail; component/card styles should consume the semantic tokens.
- button, multi-select: migrate bare palette border refs onto var(--border, ...).
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

    1 files      1 suites   2h 15m 39s ⏱️
3 372 tests 3 357 ✅ 15 💤 0 ❌
3 391 runs  3 376 ✅ 15 💤 0 ❌

Results for commit 2d333f7.

Realm Server Test Results

    1 files      1 suites   9m 22s ⏱️
1 674 tests 1 674 ✅ 0 💤 0 ❌
1 753 runs  1 753 ✅ 0 💤 0 ❌

Results for commit 2d333f7.

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.

1 participant