React: CSS in JS techniques comparison
5,473
stars
172
commits
JavaScript
primary language
Apr 2, 2024
updated
React: CSS in JS techniques comparison.
Inside each package folder, run:
npm i
npm run build && open index.html
How to read the table
More ticks doesn't mean "better", it depends on your needs. For example, if a package supports the css file extraction you can run the autoprefixing at build time.
| Package | Version | Automatic Vendor Prefixing | Pseudo Classes | Media Queries | Styles As Object Literals | Extract CSS File | Package Stats |
|---|---|---|---|---|---|---|---|
| aphrodite | 1.2.3 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| babel-plugin-css-in-js | 1.2.2 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| babel-plugin-pre-style | 1.0.9-alpha | ✓ | ✓ | ✓ | ✓ | ||
| bloody-react-styled | 3.0.0 | ✓ | ✓ | ||||
| classy | 0.3.0 | ✓ | ✓ | ✓ | |||
| csjs | 1.0.0 | ✓ | ✓ | ||||
| css-constructor | 0.1.1 | ✓ | ✓ | ✓ | |||
| css-light | 1.1.0 | ✓ | ✓ | ✓ | ✓ | ||
| css-loader | 0.15.6 | ✓ | ✓ | ✓ | |||
| css-ns | 1.0.0 | ✓ | ✓ | ✓ | |||
| cssobj | 0.2.21 | ✓ | ✓ | ✓ | ✓ | ||
| cssx | 3.8.0 | ✓ | ✓ | ✓ | ✓ | ||
| cxs | 6.2.0 | ✓ | ✓ | ✓ | ✓ | ||
| electron-css | 0.6.0 | ✓ | ✓ | ✓ | |||
| emotion | 6.0.3 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| es-css-modules | 1.2.3 | ✓ | ✓ | ✓ | |||
| freestyler | 1.5.0 | ✓ | ✓ | ✓ | ✓ | ||
| glamor | 2.1.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| glamorous | 4.12.5 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| hyperstyles | 3.3.0 | ✓ | ✓ | ✓ | |||
| i-css | 1.0.4 | ✓ | ✓ | ✓ | ✓ | ||
| j2c | 0.10.0 | ✓ | ✓ | ✓ | ✓ | ||
| jsxstyle | 2.1.1 | ✓ | ✓ | ✓ | ✓ | ||
| linaria | 0.5.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| nano-css | 0.1.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| pre-style | 1.0.9-alpha | ✓ | ✓ | ✓ | |||
| radium | 0.13.5 | ✓ | ✓ | ✓ | ✓ | ||
| react-css-builder | 0.2.0 | ✓ | |||||
| react-css-components | 0.6.9 | ✓ | ✓ | ✓ | |||
| react-css-modules | 3.0.2 | ✓ | ✓ | ✓ | |||
| react-cssom | 1.0.0 | ✓ | ✓ | ✓ | |||
| react-fela | 2.1.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| react-free-style | 0.6.0 | ✓ | ✓ | ✓ | ✓ | ||
| react-inline-css | 1.2.0 | ✓ | ✓ | ||||
| react-inline-style | 0.1.0 | ✓ | ✓ | ✓ | ✓ | ||
| react-inline | 0.6.3 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| react-jss | 2.0.5 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| react-look | 0.6.1 | ✓ | ✓ | ✓ | ✓ | ||
| react-native-web | 0.0.11 | ✓ | ✓ | ✓ | |||
| react-statics-styles | 3.0.2 | ✓ | ✓ | ✓ | |||
| react-styl | 0.0.1 | ✓ | ✓ | ||||
| react-style | 0.5.5 | ✓ | ✓ | ✓ | |||
| react-styleable | 1.4.0 | ✓ | ✓ | ✓ | |||
| react-stylematic | 1.0.1 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| react-theme | 0.1.4 | ✓ | |||||
| react-vstyle | 0.1.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| reactcss | 0.3.2 | ✓ | ✓ | ||||
| restyles | 2.0.1 | ✓ | ✓ | ✓ | ✓ | ||
| scope-styles | 0.6.0 | ✓ | ✓ | ✓ | ✓ | ||
| smart-css | 1.1.1 | ✓ | ✓ | ✓ | |||
| stile ___________________________ react-media-queries | 2.0.0 | ✓ | ✓ | ✓ | ____________ | ||
| stilr | 1.1.0 | ✓ | ✓ | ✓ | ✓ | ||
| stylable | 5.0.2 | ✓ | ✓ | ✓ | |||
| style-it | 1.2.9 | ✓ | ✓ | ||||
| styled-components | 3.2.6 | ✓ | ✓ | ✓ | |||
| styled-jsx | 0.0.7 | ✓ | ✓ | ✓ | ✓ | ||
| styletron-react | 2.1.2 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| styling | 0.2.0 | ✓ | ✓ | ✓ | |||
| superstyle | 1.0.0-1 | ✓ | |||||
| @thi.ng/hiccup-css | 0.2.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| typestyle | 0.22.3 | ✓ | ✓ | ✓ | ✓ | ||
| uranium | 0.1.2 | ✓ | ✓ |
This list has been auto-updated (?) on August 8, 2018
"Wow, this totally makes my week!" - Dan Abramov
"nice compilation of css-in-js techniques" - TJ Holowaychuk
SurviveJS / Styling React by Juho Vepsäläinen
The Case for CSS Modules by Mark Dalgleish
First Class Styles by Mark Dalgleish
Styling React.JS applications by Max Stoiber
If your package is not listed here, feel free to add it.
package-name in the root folder.ReadmeSrc/.env_example to ReadmeSrc/.env and set a Github access token to retrieve data from Github.cd ReadmeSrc && yarn && yarn update-data && yarn generate-readme.(top 30 of 35)
JavaScript
77.5%
HTML
16.9%
CSS
5.4%
React: CSS in JS techniques comparison
5,473
stars
172
commits
JavaScript
primary language
Apr 2, 2024
updated
React: CSS in JS techniques comparison.
Inside each package folder, run:
npm i
npm run build && open index.html
How to read the table
More ticks doesn't mean "better", it depends on your needs. For example, if a package supports the css file extraction you can run the autoprefixing at build time.
| Package | Version | Automatic Vendor Prefixing | Pseudo Classes | Media Queries | Styles As Object Literals | Extract CSS File | Package Stats |
|---|---|---|---|---|---|---|---|
| aphrodite | 1.2.3 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| babel-plugin-css-in-js | 1.2.2 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| babel-plugin-pre-style | 1.0.9-alpha | ✓ | ✓ | ✓ | ✓ | ||
| bloody-react-styled | 3.0.0 | ✓ | ✓ | ||||
| classy | 0.3.0 | ✓ | ✓ | ✓ | |||
| csjs | 1.0.0 | ✓ | ✓ | ||||
| css-constructor | 0.1.1 | ✓ | ✓ | ✓ | |||
| css-light | 1.1.0 | ✓ | ✓ | ✓ | ✓ | ||
| css-loader | 0.15.6 | ✓ | ✓ | ✓ | |||
| css-ns | 1.0.0 | ✓ | ✓ | ✓ | |||
| cssobj | 0.2.21 | ✓ | ✓ | ✓ | ✓ | ||
| cssx | 3.8.0 | ✓ | ✓ | ✓ | ✓ | ||
| cxs | 6.2.0 | ✓ | ✓ | ✓ | ✓ | ||
| electron-css | 0.6.0 | ✓ | ✓ | ✓ | |||
| emotion | 6.0.3 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| es-css-modules | 1.2.3 | ✓ | ✓ | ✓ | |||
| freestyler | 1.5.0 | ✓ | ✓ | ✓ | ✓ | ||
| glamor | 2.1.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| glamorous | 4.12.5 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| hyperstyles | 3.3.0 | ✓ | ✓ | ✓ | |||
| i-css | 1.0.4 | ✓ | ✓ | ✓ | ✓ | ||
| j2c | 0.10.0 | ✓ | ✓ | ✓ | ✓ | ||
| jsxstyle | 2.1.1 | ✓ | ✓ | ✓ | ✓ | ||
| linaria | 0.5.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| nano-css | 0.1.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| pre-style | 1.0.9-alpha | ✓ | ✓ | ✓ | |||
| radium | 0.13.5 | ✓ | ✓ | ✓ | ✓ | ||
| react-css-builder | 0.2.0 | ✓ | |||||
| react-css-components | 0.6.9 | ✓ | ✓ | ✓ | |||
| react-css-modules | 3.0.2 | ✓ | ✓ | ✓ | |||
| react-cssom | 1.0.0 | ✓ | ✓ | ✓ | |||
| react-fela | 2.1.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| react-free-style | 0.6.0 | ✓ | ✓ | ✓ | ✓ | ||
| react-inline-css | 1.2.0 | ✓ | ✓ | ||||
| react-inline-style | 0.1.0 | ✓ | ✓ | ✓ | ✓ | ||
| react-inline | 0.6.3 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| react-jss | 2.0.5 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| react-look | 0.6.1 | ✓ | ✓ | ✓ | ✓ | ||
| react-native-web | 0.0.11 | ✓ | ✓ | ✓ | |||
| react-statics-styles | 3.0.2 | ✓ | ✓ | ✓ | |||
| react-styl | 0.0.1 | ✓ | ✓ | ||||
| react-style | 0.5.5 | ✓ | ✓ | ✓ | |||
| react-styleable | 1.4.0 | ✓ | ✓ | ✓ | |||
| react-stylematic | 1.0.1 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| react-theme | 0.1.4 | ✓ | |||||
| react-vstyle | 0.1.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| reactcss | 0.3.2 | ✓ | ✓ | ||||
| restyles | 2.0.1 | ✓ | ✓ | ✓ | ✓ | ||
| scope-styles | 0.6.0 | ✓ | ✓ | ✓ | ✓ | ||
| smart-css | 1.1.1 | ✓ | ✓ | ✓ | |||
| stile ___________________________ react-media-queries | 2.0.0 | ✓ | ✓ | ✓ | ____________ | ||
| stilr | 1.1.0 | ✓ | ✓ | ✓ | ✓ | ||
| stylable | 5.0.2 | ✓ | ✓ | ✓ | |||
| style-it | 1.2.9 | ✓ | ✓ | ||||
| styled-components | 3.2.6 | ✓ | ✓ | ✓ | |||
| styled-jsx | 0.0.7 | ✓ | ✓ | ✓ | ✓ | ||
| styletron-react | 2.1.2 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| styling | 0.2.0 | ✓ | ✓ | ✓ | |||
| superstyle | 1.0.0-1 | ✓ | |||||
| @thi.ng/hiccup-css | 0.2.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |
| typestyle | 0.22.3 | ✓ | ✓ | ✓ | ✓ | ||
| uranium | 0.1.2 | ✓ | ✓ |
This list has been auto-updated (?) on August 8, 2018
"Wow, this totally makes my week!" - Dan Abramov
"nice compilation of css-in-js techniques" - TJ Holowaychuk
SurviveJS / Styling React by Juho Vepsäläinen
The Case for CSS Modules by Mark Dalgleish
First Class Styles by Mark Dalgleish
Styling React.JS applications by Max Stoiber
If your package is not listed here, feel free to add it.
package-name in the root folder.ReadmeSrc/.env_example to ReadmeSrc/.env and set a Github access token to retrieve data from Github.cd ReadmeSrc && yarn && yarn update-data && yarn generate-readme.(top 30 of 35)
JavaScript
77.5%
HTML
16.9%
CSS
5.4%