Sizing, spacing and typography design tokens - #297
Conversation
|
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primitives/88AZA9fJpkgBxfvNZUSRve9Zg92j |
Variables changedNo variables changed |
Co-authored-by: Vinicius Depizzol <vdepizzol@gmail.com>
Co-authored-by: Cole Bemis <colebemis@users.noreply.github.com>
Co-authored-by: Vinicius Depizzol <vdepizzol@gmail.com>
rezrah
left a comment
There was a problem hiding this comment.
🥳 This is great @langermank
Recommend this gets merged into main so we can continue to iterate on it in shorter-lived branches. Merging shouldn't impact the release process for existing tokens.
✨ New sizing, spacing, and typography design tokens
This PR introduces a new set of tokens to be shared across all Primer frameworks. Using style-dictionary, we transform raw values from JSON into CSS and JS. We've crafted a functional layer of tokens that combine to form components and patterns, along with a naming convention to encourage consistency and developer experience.
Initial release
The existing tokens will remain intact as we slowly transition to style-dictionary. This new set of tokens will distribute to
/tokens-v2-privateas they are still experimental and not intended for usage outside of Primer (for now). This PR should not introduce any breaking changes to existing primitives.Remaining TODO