@theme-registry/refract-css
v0.1.18
Published
The CSS output adapter for @theme-registry/refract — lowers a ThemeModel to CSS custom properties + class rules.
Readme
@theme-registry/refract-css
The CSS adapter for refract — lowers a
theme Model to :root custom properties + class rules. The batteries-included default adapter.
Docs, live playground & API: https://theme-registry.github.io/refract/
npm install @theme-registry/refract @theme-registry/refract-cssimport { createTheme } from "@theme-registry/refract";
import { createCssAdapter } from "@theme-registry/refract-css";
const theme = createTheme(raw, { adapter: createCssAdapter() });
theme.css; // full stylesheet — :root vars + .classes
theme.classes; // recipe → className mapEmit modes (single / split / subsystem / components), inline value baking, scope namespacing,
an opt-in cascade @layer, and naming overrides — see the CSS adapter docs.
Peer-depends on @theme-registry/refract.
MIT © Petyo Stoyanov
