Skip to content

feat: add one theme style dictionary#4549

Open
mxschll wants to merge 8 commits into
mainfrom
dev-v3-onetheme-dict
Open

feat: add one theme style dictionary#4549
mxschll wants to merge 8 commits into
mainfrom
dev-v3-onetheme-dict

Conversation

@mxschll
Copy link
Copy Markdown
Member

@mxschll mxschll commented May 22, 2026

Description

Adds One Theme as a overlay on visual-refresh, gated behind INCLUDE_ONE_THEME=true. Set on dev scripts, not on build, so published packages don't include it. Dev page theme switcher has a new toggle for local testing.

Related links, issue #, if available:aQokArCTx9ab

How has this been tested?

  • Verified in local workspace that build output does not include any one theme references.
  • Changes wend through pipeline.
Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mxschll mxschll changed the title build: add one theme style dictionary feat: add one theme style dictionary May 22, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.42%. Comparing base (8053633) to head (20479ca).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4549   +/-   ##
=======================================
  Coverage   97.42%   97.42%           
=======================================
  Files         938      938           
  Lines       29647    29647           
  Branches    10774    10774           
=======================================
  Hits        28884    28884           
  Misses        756      756           
  Partials        7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


// Anything not listed here falls back to the visual-refresh value via ThemeBuilder.addTokens in ./index.ts.
const tokens: StyleDictionary.ColorsDictionary = {
colorBackgroundButtonPrimaryDefault: '{colorBlack}',
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Subsequent PRs will fill this dictionary.

window.location.reload();
};
vrSwitchProps.checked = urlParams.visualRefresh && !urlParams.oneTheme;
vrSwitchProps.onChange = event => activateTheme(event.target.checked ? 'visualRefresh' : 'classic');
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Same behavior as before: un-toggling visual refresh falls back to classic.

id="one-theme-toggle"
type="checkbox"
checked={urlParams.oneTheme}
onChange={event => activateTheme(event.target.checked ? 'oneTheme' : 'classic')}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Similar behavior as with visual refresh: un-toggling falls back to classic.

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