feat: [M3-9404] - 4.0.0 Design Tokens - New Spacing & Badge Tokens #11757
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.
Description 📝
We've renamed and improved our spacing tokens to eliminate confusion. The new naming convention now uses pixel values (like "s8" which corresponds to 8px instead of abstract numbers), which aligns with how UX designers work in Figma. While designers can now reference these more intuitive pixel-based names / values, our code still uses REM units behind the scenes for proper scaling and accessibility. This change creates a better workflow between design and development teams, as both can refer to the same token names despite working in different unit systems.
Changes 🔄
Badge [BREAKING]
Spacing Tokens [BREAKING]
Pixel values are transformed to
REM
in codeYou can use these in cloud manager like so
Target release date 🗓️
3/11
Preview 📷
How to test 🧪
Verification steps
pnpm install && pnpm dev
Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅