Repository navigation
feat(theme): update base tokens to use light-dark() defaults - #140
Merged
Merged
Conversation
Co-authored-by: Navi <[email protected]>
Contributor
PR Analysis Report📚 Storybook PreviewNo new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: 43 accessibility violation(s) found. XDSAspectRatio - 1 issue(s)
XDSAvatar - 1 issue(s)
XDSBadge - 1 issue(s)
XDSButton - 1 issue(s)
XDSCalendar - 1 issue(s)
XDSCard - 2 issue(s)
XDSCenter - 1 issue(s)
XDSCheckboxInput - 1 issue(s)
XDSCloseButton - 1 issue(s)
XDSDateInput - 1 issue(s)
XDSDialog - 1 issue(s)
XDSDivider - 1 issue(s)
XDSDropdownMenu - 1 issue(s)
XDSField - 1 issue(s)
XDSFontWrapper - 1 issue(s)
XDSGrid - 1 issue(s)
XDSHStack - 1 issue(s)
XDSHeading - 1 issue(s)
XDSHoverCard - 1 issue(s)
XDSIcon - 1 issue(s)
XDSLayout - 2 issue(s)
XDSLink - 1 issue(s)
XDSNumberInput - 1 issue(s)
XDSRadioList - 1 issue(s)
XDSSection - 2 issue(s)
XDSSelector - 1 issue(s)
XDSSkeleton - 1 issue(s)
XDSSlider - 1 issue(s)
XDSStackItem - 1 issue(s)
XDSSwitch - 1 issue(s)
XDSTabList - 1 issue(s)
XDSTable - 1 issue(s)
XDSText - 2 issue(s)
XDSTextArea - 1 issue(s)
XDSTextInput - 1 issue(s)
XDSTimeInput - 1 issue(s)
XDSTooltip - 1 issue(s)
XDSTopNav - 1 issue(s)
XDSVStack - 1 issue(s)
Generated by PR Enrichment workflow | Storybook | View full report |
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
Co-authored-by: Navi <[email protected]>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 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.
Summary
Updates the base
defineVarsdefaults intokens.stylex.tsto uselight-dark()CSS values so components work correctly in both light and dark mode without any theme applied.This is a prerequisite for #139 (separating themes into their own package). The goal is that
@xds/coreis fully self-contained — consumers get a functional, dark-mode-aware UI just by importing components, no theme required.Changes
packages/core/src/theme/tokens.stylex.tscolorRaw— All 65 color tokens updated from single hex values tolight-dark():elevationRaw— All 5 elevation tokens updated to uselight-dark()for shadow colors:--color-hover-tint— Updated from'black'to'light-dark(black, white)'Not changed
spacingRaw,sizeRaw,radiusRaw,transitionRaw,typographyRaw,textSizeRaw,lineHeightRaw,fontWeightRaw— no light/dark variants neededdefineVarscalls, type exports,as constannotations — all preserveddefaultTheme.stylex.ts— untouched (it already hadlight-dark()values)Testing
react/jsx-dev-runtimemissing module errors, unrelatedRelated
@xds/themes) #139 — Separate themes into their own packageCrafted with care by Navi