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) */
}