tomhodgins / jsincss

A JS-in-CSS stylesheet loader
https://jsincss.com
MIT License
51 stars 2 forks source link

Compatibility with other css in js solutions? #1

Open jrmyio opened 6 years ago

jrmyio commented 6 years ago

Hey!

The feature list of your library seems really interesting. I was wondering if this library can work together other css in js solutions, for example Styledcomponents.

Any examples in the docs could help others that try to figure out if they can use this library in their existing workflow.

tomhodgins commented 6 years ago

Thanks for checking this out! JS-in-CSS pattern does basically three things:

It's like real-time stylesheet templating via JS to help you use selectors and values in your styles that CSS can't normally reach.

So.....you ought to be able to use StyledComponents, or any other tools you want to compose whatever stylesheets you want, If you were using both CSS-in-JS I would think that adding jsincss to your workflow would sit somewhere between the output of that and the browser your site is being viewed in.

Are there any particular features or jsincss plugins you wanted to use?