Skip to content
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

chore: Sync Tokens Studio config 🤖 #134

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/canvas-tokens-docs/stories/brand/Brand.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ same styles using CSS variables directly.

Currently, tenant theming is scoped to color.

> **Note:** `--cnvs-brand-action-**` should be used with caution. Defining brand primary colors should cover most of the theming use cases. However, in situations where you want more granular control over actions like `PrimaryButton`, you can define different colors for the action tokens. By Default, the action tokens map to our `--cnvs-brand-primary-**` tokens.



<ColorTokens />

</Unstyled>
32 changes: 32 additions & 0 deletions packages/canvas-tokens/tokens/web/brand.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,38 @@
"type": "color"
}
},
"action": {
"lightest": {
"value": "{brand.primary.lightest}",
"type": "color",
"description": "Lightest action color"
},
"light": {
"value": "{brand.primary.light}",
"type": "color",
"description": "Light action color"
},
"base": {
"value": "{brand.primary.base}",
"type": "color",
"description": "Base action color"
},
"dark": {
"value": "{brand.primary.dark}",
"type": "color",
"description": "Dark action color"
},
"darkest": {
"value": "{brand.primary.darkest}",
"type": "color",
"description": "Darkest action color"
},
"accent": {
"value": "{brand.primary.accent}",
"type": "color",
"description": "Foreground color in actions"
}
},
"common": {
"focus-outline": {
"value": "{palette.blueberry.400}",
Expand Down
1 change: 1 addition & 0 deletions packages/canvas-tokens/tokens/web/sys.json
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@
}
}
},
"layer-opacity": {},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this part of the action token work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it's figma specific and should not been listed. I'm pushing PR to fix it

"shape": {
"zero": {
"value": "0rem",
Expand Down
Loading