style-dictionary
theo
style-dictionary | theo | |
---|---|---|
5 | 2 | |
3,650 | 1,936 | |
1.4% | 0.9% | |
6.3 | 1.8 | |
4 days ago | over 2 years ago | |
JavaScript | JavaScript | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
style-dictionary
-
Syncing Figma Variables and StyleDictionary with GitHub Actions
function getStyleDictionaryConfig(brand) { return { source: [`tokens/brands/${brand}/*.json`, 'tokens/globals/**/*.json'], platforms: { /** * Available platforms: https://amzn.github.io/style-dictionary/#/config?id=platform */ web: { transformGroup: 'web', buildPath: `build/web/${brand}/`, files: [ { destination: 'tokens.scss', format: 'scss/variables', }, ], }, }, } } /** * Build the tokens for each brand. * {@see - Example based on https://github.com/amzn/style-dictionary/tree/main/examples/advanced/multi-brand-multi-platform} */ ['microsoft', 'xbox'].map(function (brand) { ['web'].map(function (platform) { const StyleDictionary = StyleDictionaryPackage.extend( getStyleDictionaryConfig(brand), ) StyleDictionary.buildPlatform(platform) }) })
-
Specify VS Style Dictionary
Check out the official examples projects provided by Style Dictionary. In our case, we just used the basic example 👍
-
Any wait to generate a full JSON of tailwind?
Did you know about Style Dictionary https://github.com/amzn/style-dictionary Its a tool that creates Design Tokens for different platforms using a JSON file. Sounds similar to what you are trying to achieve.
- This is my favorite Github issue 🦎
-
Introduction to Variabless
Cool. Can you compare this to https://github.com/amzn/style-dictionary?
theo
-
Eleventy Style Guide Generator with WebC Component Support
There are some great well established tools out there that do this, such as Theo and Style Dictionary but for this I turned to the sage advice of Andy Bell via buildexcellentwebsit.es and used Tailwind to run through the token JSON files and generate the CSS variables I can use in my styling.
- Why does Youtube make such excessive use of CSS variables?
What are some alternatives?
Awesome-Design-Tokens - A list of resources on all things to do with Design Tokens
a11y-color-tokens - Generate accessible UI colors from your base color tokens.
Awesome-Design-Tools - The best design tools and plugins for everything 👉
community-group - This is the official DTCG repository for the design tokens specification.
Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
Awesome-Design-Tools - The best design tools and plugins for everything 👉 [Moved to: https://github.com/goabstract/Awesome-Design-Tools]
variabless - JS & CSS - A Match Made in Heaven 💎
vyper - Pythonic Smart Contract Language for the EVM [Moved to: https://github.com/vyperlang/vyper]
cmake-js - CMake.js - a Node.js native addon build tool
tugboat - A modern starter project using Eleventy and WebC.