PostCSS Design System
PostCSS plugin for generating CSS custom properties (variables) from a JSON theme file. The theme config can come from any CSS-in-JS library's <ThemeProvider>
, just like styled-system's one for example. It can also work with Compositor Lab.
Examples
An example JSON theme file:
CSS variables get injected into :root
selector:
Usage
;
See PostCSS docs for examples for your environment.