-
Notifications
You must be signed in to change notification settings - Fork 16
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
Storybook: show figma codes/theme code snippets for colors #684
Conversation
Pull Request Test Coverage Report for Build 5070709352
💛 - Coveralls |
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.
really useful addition, thanks @zbigg !
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.
Just realized a minor detail to fix
<Typography variant='caption'> | ||
{figmaColorName(colorVariant, String(colorName))} | ||
<pre style={{ margin: 0 }}> | ||
theme.palette.{colorVariant}.{colorName} |
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.
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.
Description
Show figma codes/theme code snippets for colors in playground.
Demo:
Finally it will land in this screen: https://storybook-react.carto.com/?path=/docs/foundations-palette--primary
Type of change
Acceptance
Check palette playground in storybook
Basic checklist