-
Notifications
You must be signed in to change notification settings - Fork 0
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
Generate SCSS and CSS vars from tokens file #138
base: main
Are you sure you want to change the base?
Conversation
Also aligns more closely align with the design token specification
e70097e
to
7136ee6
Compare
7136ee6
to
8e44694
Compare
$fonts-sans: PostGrotesk; | ||
$font-sizes-base-sm: 16; | ||
$font-sizes-base-md: 16; | ||
$font-sizes-base-lg: 17; |
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.
All of these unitless values are kindof a pain to deal with in SASS and CSS. I wonder if we should add 'px' to them in the tokens file directly.
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.
Let's put px in tokens file.
@@ -0,0 +1,175 @@ | |||
/** | |||
* Do not edit directly |
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.
Should we include these dist files in our repo, or only include them as part of the npm package as discussed here
https://stackoverflow.com/questions/31642477/how-to-publish-an-npm-package-with-distribution-files
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.
Should add a github action to rebuild these anytime tokens file is changed.
VUE-910 |
Adds Style Dictionary as a tool automate this process.
This will be helpful for writing SASS in the old stack pages but utilizing up to date values from Kiva Classic.