vercel / styled-jsx

Full CSS support for JSX without compromises
http://npmjs.com/styled-jsx
MIT License
7.65k stars 265 forks source link

Theme support? #376

Closed nmackey closed 6 years ago

nmackey commented 6 years ago

What is the preferred way to do theming with styled-jsx? Some examples in the readme reference a theme and say that theming is supported, but there aren't any specific examples of how this should be done.

Most other css-in-js libraries use a ThemeProvider, would that be where styled-jsx is going?

giuseppeg commented 6 years ago

you can use this https://github.com/cssinjs/theming

skitterm commented 5 years ago

Along these same lines... the README mentions Dynamic styles and theme support but I don't see any examples or documentation about how to make themes work in styled-jsx out of the box. Can some documentation be added for this on the README?