a11y-color-tokens
Generate accessible UI colors from your base color tokens. (by 5t3ph)
style-dictionary
A build system for creating cross-platform styles. (by amzn)
Our great sponsors
a11y-color-tokens | style-dictionary | |
---|---|---|
3 | 5 | |
158 | 3,638 | |
- | 1.8% | |
3.3 | 6.6 | |
7 months ago | 1 day ago | |
JavaScript | JavaScript | |
ISC License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
a11y-color-tokens
Posts with mentions or reviews of a11y-color-tokens.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-06.
-
Build Tools and Extensions I Use In Front-End Projects
I've also created a package to help me with developing accessible color palettes called a11y-color-tokens which I use for more complex projects.
-
Nevertheless, 5t3ph Coded and (Mostly) Conquered Imposter Syndrome
Eleventy let me boilerplate certain aspects, and I created additional tools to help me create color palettes and social share images. Those freed me to focus on architecting my idea and preparing content and design and ensuring accessibility. Then - out the door it went!
-
Generate Accessible UI Colors with a11y-color-tokens
Additionally, an optional Markdown document is generated with contrast cross-compatibility between all available color tokens.
style-dictionary
Posts with mentions or reviews of style-dictionary.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-03.
-
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?
What are some alternatives?
When comparing a11y-color-tokens and style-dictionary you can also consider the following projects:
SAPC-APCA - APCA (Accessible Perceptual Contrast Algorithm) is a new method for predicting contrast for use in emerging web standards (WCAG 3) for determining readability contrast. APCA is derived form the SAPC (S-LUV Advanced Predictive Color) which is an accessibility-oriented color appearance model designed for self-illuminated displays.
theo - Theo is a an abstraction for transforming and formatting Design Tokens