Token CSS is a new tool to seamlessly integrate Design Tokens into your dev workflow ✨
😍 Author `.css` + `<style>` blocks
💄 Powered by custom properties
⚙️ Config uses @DesignTokens format
🚀 Built-in, modern presets
🧑🚀 @astrodotbuild support
tokencss.com
ALT main.css file containing the following code:
.container {
padding: md; /* var(--size-md) */
margin: lg auto; /* var(--size-lg) auto */
max-width: 8xl; /* var(--size-8xl) */
}
.box {
background: primary; /* var(--color-primary) */
width: full; /* var(--size-full) */
height: 3xl; /* var(--size-3xl) */
border-radius: md; /* var(--radius-md) */
}
"Can you automatically generate utility classes?"
The point of Token CSS is to keep your styles in `.css`, so we're not really considering this. There are lots of other great tools that do this, though!
Token CSS is a new tool to seamlessly integrate Design Tokens into your dev workflow ✨
😍 Author `.css` + `<style>` blocks
💄 Powered by custom properties
⚙️ Config uses @DesignTokens format
🚀 Built-in, modern presets
🧑🚀 @astrodotbuild support
tokencss.com
ALT main.css file containing the following code:
.container {
padding: md; /* var(--size-md) */
margin: lg auto; /* var(--size-lg) auto */
max-width: 8xl; /* var(--size-8xl) */
}
.box {
background: primary; /* var(--color-primary) */
width: full; /* var(--size-full) */
height: 3xl; /* var(--size-3xl) */
border-radius: md; /* var(--radius-md) */
}
Thank you for the shout out and your work advocating for design tokens! Excited about the tooling you build to help lower the barrier of entry into this world 🙏🏻
If you love design tokens almost as much as you love CSS, @tokencss is the tool for you!
Join us for the debut of Token CSS! Might as well play with @astrodotbuild, too. 😉
📢 Today on the stream, we're getting the DEBUT of a brand new tool for building design systems: Token CSS! ✨
@n_moore will introduce and demo Token CSS, and chat design tokens in general!
Follow and watch live: frontend.horse/twitch
ALT Frontend Horse Livestreams: Introducing Token CSS. Nate Moore and host Alex Trost. Tuesday, Mar 15, 12:00 PM EST. https://frontend.horse/twitch
Lately I've been working on @tokencss, a tool for CSS that will conform to the upcoming @DesignTokens specification.
If you care about this kind of thing, the spec is currently being written and you can give feedback on GitHub! github.com/design-tokens/com…