postcss-modules-sync
A PostCSS plugin to use CSS Modules synchronously in js.
Install
npm install postcss-modules-sync
Example
const css = ` :global .text { color: white; background-color: gray; } .green { background-color: green; } .blue { background-color: blue; } .default { composes: green; display: flex; }` let exportedTokens = {}const styles = css consoleconsole