How do you manage component variants like primary/secondary in Style Dictionary? #1504
Unanswered
sahinyasasi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all π,
I'm using Amazon Style Dictionary to generate design tokens for reusable components like buttons, and I'm currently exploring how to define and output variants cleanly.
Hereβs a simplified version of my token structure:
β How I want to generate (output):
I've written a custom format script to extract and output the variant tokens like this into separate class scopes.
Whatβs the recommended approach in Style Dictionary for handling component variants like this?
Beta Was this translation helpful? Give feedback.
All reactions