Skip to content

Apply theme-driven token derivation to every CardContainer#5474

Merged
burieberry merged 1 commit into
mainfrom
cs-12055-themed-card-container-default
Jul 13, 2026
Merged

Apply theme-driven token derivation to every CardContainer#5474
burieberry merged 1 commit into
mainfrom
cs-12055-themed-card-container-default

Conversation

@burieberry

Copy link
Copy Markdown
Contributor

theme.css ships the full semantic token contract with defaults that resolve to the legacy --boxel-* values, so the token derivation that was gated behind @isThemed now applies to every CardContainer — the rules move from .boxel-card-container--themed to .boxel-card-container. Themed cards differ only in the knob values their scoped theme stylesheet provides.

  • @isThemed remains as a deprecated, marker-class-only arg (still stamps the --themed class) so existing callers are unaffected.
  • Section-heading and subheading fallbacks (font-weight 500, line-height md/base) are aligned with the legacy defaults in variables.css, so unthemed cards render value-identical to before.

theme.css now ships the full semantic token contract with defaults, so
the --boxel-* derivation that was gated behind @isThemed applies to all
containers; themed cards differ only in the knob values their scoped
stylesheet provides. @isThemed remains as a marker-class-only arg.

Adjust the section-heading and subheading fallbacks (weight 500,
line-height md/base) to match the legacy defaults in variables.css so
unthemed cards render value-identically.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@burieberry burieberry marked this pull request as ready for review July 10, 2026 22:07

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa6e783056

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/boxel-ui/addon/src/components/card-container/index.gts
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

133 tests   132 ✅  5m 34s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit aa6e783.

Realm Server Test Results

    1 files      1 suites   11m 28s ⏱️
1 814 tests 1 814 ✅ 0 💤 0 ❌
1 893 runs  1 893 ✅ 0 💤 0 ❌

Results for commit aa6e783.

@burieberry burieberry requested a review from a team July 13, 2026 15:52
@habdelra habdelra requested a review from Copilot July 13, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes CardContainer always derive the legacy --boxel-* token system from the semantic theme knobs provided by theme.css, instead of gating that derivation behind the @isThemed arg. The @isThemed arg remains, but only as a deprecated marker that stamps the --themed class for compatibility.

Changes:

  • Move the theme-driven token-derivation CSS from .boxel-card-container--themed to .boxel-card-container so it applies to all containers.
  • Align section-heading and subheading fallback line-height/font-weight values to match the legacy defaults from variables.css.
  • Remove a container-level letter-spacing declaration (this introduces a behavior change and is called out in review comments).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 241 to 244
font-family: var(--boxel-body-font-family);
font-size: var(--boxel-body-font-size);
font-weight: var(--boxel-body-font-weight);
letter-spacing: var(--tracking-normal);
line-height: var(--boxel-body-line-height);
@burieberry burieberry merged commit 52222af into main Jul 13, 2026
103 of 113 checks passed
@burieberry burieberry deleted the cs-12055-themed-card-container-default branch July 13, 2026 16:33
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.

4 participants