Sébastien Rigaux

dx-styles compiles CSS-in-TS into static CSS

View resource

dx-styles.dev

dx-styles turns TypeScript calls into deterministic classes and CSS files generated at build time. The runtime selects precompiled classes without injecting styles or adding a provider, providing a foundation for sharing recipes and themes across applications.

Tokens and variants remain typed; extraction can also generate RTL rules and flag physical properties that need attention. For dynamic values, assignVars() applies CSS variables without generating new rules.

dx-styles graphic on a dark background, with a gradient square bearing the “dx” logo, the title “dx-styles,” and the tagline “Zero-runtime CSS-in-TS for design systems.”