-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Introduce Tokens Structure Decision #1763
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for spirit-design-system-storybook canceled.
|
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
3. The `Gradients` and `Shadows` tokens use CSS variables to define the colors. This allows us to theme them. | ||
4. We use scales for tokens that have multiple values. For example, the `Spacing` category contains `space-0`, `space-100`, `space-200`, etc. | ||
We use hundreds for the scale, so our users have plenty of space to add their own values between the predefined ones. | ||
5. The `Theme Tokens` contains folders for each theme. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick (if-minor):
5. The `Theme Tokens` contains folders for each theme. | |
5. The `Theme Tokens` contains directories for each theme. |
By following this structure, we can easily find tokens and we know where to add new tokens. We can also easily add new themes | ||
and we know where to add new tokens for the themes. This structure is easy to understand and maintain. | ||
|
||
Our tokens follow the structure described in this decision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (if-minor): I think this sentence is unnecessary.
|
||
## Context | ||
|
||
Our Design System uses design tokens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (if-minor): Can you please provide some experience? Like that, we have started to use Figma variables and thus the tokens are exported based on this. Or if there were some pain points with the tokens, so we have created a new structure that solves these issues and so on...
I would like to have here more about why we are doing this, please :-)
Description
Additional context
Issue reference