QuickBase / babel-plugin-styled-components-css-namespace

A babel plugin to add css namespaces (and increase specificity) of styled-component classes.
MIT License
118 stars 32 forks source link

Example of a working setup with CRA and Customize-CRA? #59

Open colemars opened 4 years ago

colemars commented 4 years ago

https://codesandbox.io/s/festive-nobel-v7o9j?file=/config-overrides.js

<TestComponent className={${classes.test} ${className}} />

In this case, $[classes.test} take precedence over our styled components because of the order they're being passed in. But the plugin SHOULD be adding specificity to prevent that, no?