Styleframe
A zero-runtime CSS-in-TS framework for theming and maintaining design systems. Developers write design tokens, selectors, utilities, and recipes in TypeScript, and a transpiler-first pipeline tokenizes them into an internal representation and generates dual outputs: CSS (variables, selectors, utilities, themes, keyframes) and TypeScript (typed recipe functions with full IDE autocomplete, plus an optional runtime). The generated tokens can drive documentation rendering and integrate with headless UI component libraries or custom components. It also includes a reimplementation of TailwindCSS using utility and modifier tokens and a scanner that picks up CSS classes from markup, making utility classes fully configurable and grounded in design tokens.
What it addresses
After four years of maintaining an open source design system, Sass and PostCSS proved insufficient for theming; the author needed the power of a full-featured programming language so design systems can be endlessly configurable and composable, with or without AI.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Styleframe
A zero-runtime CSS-in-TS framework for theming and maintaining design systems. Developers write design tokens, selectors, utilities, and recipes in TypeScript, and a transpiler-first pipeline tokenizes them into an internal representation and generates dual outputs: CSS (variables, selectors, utilities, themes, keyframes) and TypeScript (typed recipe functions with full IDE autocomplete, plus an optional runtime). The generated tokens can drive documentation rendering and integrate with headless UI component libraries or custom components. It also includes a reimplementation of TailwindCSS using utility and modifier tokens and a scanner that picks up CSS classes from markup, making utility classes fully configurable and grounded in design tokens.
Problem: After four years of maintaining an open source design system, Sass and PostCSS proved insufficient for theming; the author needed the power of a full-featured programming language so design systems can be endlessly configurable and composable, with or without AI.
Posted by @alexgrozav · Original source ↗
Source text · @alexgrozav · · Source ↗
I'm building Styleframe (https://styleframe.dev), a zero-runtime CSS-in-TS Framework written for theming and maintaining Design Systems.