Token CSS is an open-source tool that integrates design tokens directly into CSS files and <style> blocks. You define tokens in a JSON file, then write token names as values in your CSS — the tool automatically converts them to CSS custom properties (variables) at build time.
It is conceptually inspired by Tailwind, Styled System, and CSS-in-JS libraries but differs by working with standard .css files and <style> tags. A companion Visual Studio Code extension adds Intellisense, hover previews, and semantic token highlighting for CSS and Astro files. The project is released under the MIT License and is in active development.
md, primary, or full as CSS values and have them automatically compiled to var(--size-md), var(--color-primary), and var(--size-full).You create a JSON file that defines your design tokens — sizes, colors, radii, and so on. In your CSS (or Astro template), you use the token names directly as property values: padding: md instead of a hardcoded value. Token CSS then processes your files and replaces every token name with the corresponding CSS custom property reference, generating output like var(--size-md). The VS Code extension activates as you type, showing you the resolved values.
Token CSS is best suited for developers who want design-token constraints without leaving vanilla CSS or adopting a CSS-in-JS runtime. The project is currently a work-in-progress — bugs, missing features, and breaking changes are expected, and no stable release has been announced. It is not ready for production use without careful evaluation.
Define colors, sizes, radii, and more in a plain JSON file that other tools can also consume.
Token CSS converts every token name in your CSS to a CSS custom property reference automatically.
Autocompletion, hover previews, and semantic highlighting for token names in CSS and Astro files.
Use token names as property values directly in .css files without any CSS-in-JS library.
Token names inside Astro component style blocks are recognized and converted just like plain CSS.
Released under the MIT License with an open invitation for community contributions on GitHub.
Token CSSThis | ||||
|---|---|---|---|---|
| Starting price | — | Free | — | $69/mo |
| Pricing model | unknown | Free | Freemium | Freemium |
| Platforms | Web, macOS, Windows, Linux | Web | Web | Web |
| Top features |
|
|
|
|
| Rating | — | — | — | — |
Embed visual builders for emails, pages, and documents into your app — backed by AI workflows, templ...
Free design and front-end development tutorials on YouTube, with AI workflows, from an instructor ac...
Synchronise browser testing across multiple devices in real time — free, open source, and setup in u...
Check the CSS of any element you hover over instantly and copy its entire rules with a single click....
Reference documentation for the deprecated EdgeHTML browser — covers DevTools, extensions, WebView, ...