[DS 2.0] Split the CSS variable namespaces - #102
Open
librowski wants to merge 2 commits into
Open
Conversation
librowski
requested review from
lukasz-jazwa,
piotrblaszczyk and
szymon-t-sc
as code owners
August 26, 2026 16:34
librowski
force-pushed
the
ds2-namespace-split
branch
from
August 27, 2026 14:02
0ebffc1 to
689d58c
Compare
piotrblaszczyk
approved these changes
Aug 31, 2026
librowski
force-pushed
the
ds2-namespace-split
branch
from
August 31, 2026 21:02
689d58c to
fe59a52
Compare
librowski
force-pushed
the
ds2-namespace-split
branch
from
August 31, 2026 21:11
fe59a52 to
fa9b63f
Compare
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.
Splits the CSS custom properties into three sanctioned namespaces:
--wb-ds-*— every token generated from the Figma set (colors, semantic ui, component, canvas, shadow, spacing, sizing, radius, font families): 550 variables, renamed at the style-dictionary source.--wb-sdk-*— the hand-authored private SDK variables (edge labels, syntax highlighter, app bar, message controls and friends): 102 variables.--wb-public-*— the supported override contract, unchanged for the per-component ui variables; the SDK's public knobs join it (--wb-public-background-color,--wb-public-transition,--wb-public-scroll-*, alongside the existing--wb-public-font-family).The remaining internal
--ax-*variables become locally scoped, unprefixed component variables; source contains no--ax-occurrence anymore. The built-CSS gate now asserts the namespace contract on every build, and the variable documentation (both READMEs, the design-system guide, theming, generated tables) follows the new split. One major changeset per published package states the rename rules.Verified: ui/sdk lint + typecheck,
build:ui,build:lib(including the new namespace gate), stylelint, all test suites, docs build.