-
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
maintenance: generate CSS Variables from Figma Variables #40
Conversation
eb1dfd5
to
f0daaee
Compare
f0daaee
to
4a996b5
Compare
@import './variables.tokens-dark.css'; | ||
@import './variables.tokens-typography.css'; | ||
@import './Dark/variables.css'; | ||
@import './Mode 1/variables.css'; |
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.
💭 Collection name? Mode name? I'd like to change it at just the right time.
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.
Please keep the review of the script section small, as it should work for now!
To run the script, use the following command: | ||
|
||
```sh | ||
FIGMA_FILE_KEY=FnK... FIGMA_ACCESS_TOKEN=figd_xxx pnpm --filter @packages/figma-to-css-variables gen --output '../../apps/service-site/src/styles' --filter-modes 'Dark,Mode 1' |
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.
You can also run this to run it in your hand 🙆🏻♂️
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.
LGTM 🎉
Description
Scratch implemented CSS Variables generation script.
I really wanted to check the behavior by having no differences in the generated files, but this was not possible because the order of the variables would have changed.
I am looking at the Preview environment and making sure there are no changes.
Notice
The next PR will enable GitHub Actions to do this.