Skip to content

MicheleBertoli/css-in-js

Folders and files

Name Name
Last commit message
Last commit date

Latest commit

 

History

186 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 Build Status

CSS in JS

React: CSS in JS techniques comparison.

Usage

Inside each package folder, run:

 npm i npm run build && open index.html

Features

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
 tag 2.2.2  star 4,175
1.2.3
 info 63/133
 download 358,386
babel-plugin-css-in-js
 tag 1.5.1  star two hundred and fifty-nine
1.2.2
 info 6/12
 download four hundred and eight
babel-plugin-pre-style
 tag 1.5.1  star two hundred and fifty-nine
1.0.9-alpha
 info 6/12
 download four hundred and eight
bloody-react-styled
 tag 0.0.5  star thirty-five
3.0.0
 info 1/2
 download twelve
classy
 tag 1.4.10  star twenty-two
0.3.0
 info 0/0
 download eighty-eight
csjs
 tag 1.1.0  star five hundred and sixteen
1.0.0
 info 22/25
 download 1,827
css-constructor
 tag 0.1.7  star ninety
0.1.1
 info 4/2
 download sixty-five
css-light
 tag 1.1.0  star two
1.1.0
 info 1/0
 download fifty-four
css-loader
 tag 0.28.11  star 2,770
0.15.6
 info 59/496
 download 7,442,704
css-ns
 tag 1.2.1  star one hundred and seven
1.0.0
 info 1/1
 download three hundred and thirteen
cssobj
 tag 1.3.6  star two hundred and twenty-one
0.2.21
 info 2/12
 download two hundred and five
cssx
 tag 5.2.1  star nine hundred and ninety-eight
3.8.0
 info 10/14
 download three hundred and fourteen
cxs
 tag 6.2.0  star eight hundred and ninety-six
6.2.0
 info 18/20
 download 2,940
electron-css
 tag 0.6.0  star two
0.6.0
 info 0/0
 download one hundred and thirty-five
emotion
 tag 9.2.4  star 4,101
6.0.3
 info 73/306
 download 260,249
es-css-modules
 tag 1.2.4  star one hundred and fifty-one
1.2.3
 info 1/2
 download one hundred and sixteen
freestyler
 tag 3.1.0  star one hundred and twenty-one
1.5.0
 info 12/0
 download two hundred and twelve
glamor
 tag 2.20.40  star 3,196
2.1.0
 info 79/206
 download 842,621
glamorous
 tag 4.13.1  star 3,607
4.12.5
 info 1/183
 download 795,853
hyperstyles
 tag 3.3.1  star fifty-two
3.3.0
 info 0/3
 download fifty-one
i-css
 tag 1.2.0  star two
1.0.4
 info 0/0
 download fifty-two
j2c
 tag 0.11.3  star one hundred and fifty-five
0.10.0
 info 8/24
 download six hundred and thirteen
jsxstyle
 tag 2.1.3  star 1,804
2.1.1
 info 12/75
 download 3,174
linaria
 tag 0.5.0  star three hundred and fifty-one
0.5.0
 info 21/62
 download three hundred and forty-nine
nano-css
 tag 2.0.2  star fifty-one
0.1.0
 info 15/3
 download six hundred and eighty-two
pre-style
 tag 1.0.9-alpha  star thirty
1.0.9-alpha
 info 4/3
 download sixteen
radium
 tag 0.24.0  star 6,372
0.13.5
 info 84/475
 download 857,067
react-css-builder
 tag 0.2.0  star twenty
0.2.0
 info 0/0
 download five
react-css-components
 tag 1.0.1  star seven hundred and one
0.6.9
 info 5/9
 download forty
react-css-modules
 tag 4.7.3  star 4,641
3.0.2
 info 47/152
 download 172,299
react-cssom
 tag 1.0.0  star fifty-four
1.0.0
 info 0/0
 download five
react-fela
 tag 6.1.8  star 1,402
2.1.0
 info 18/274
 download 24,191
react-free-style
 tag 7.0.2  star one hundred and nineteen
0.6.0
 info 0/19
 download one hundred and fifty-four
react-inline-css
 tag 2.3.1  star one hundred and sixty-five
1.2.0
 info 6/12
 download 10,718
react-inline-style
 tag 0.1.0  star forty-five
0.1.0
 info 1/0
 download four
react-inline
 tag 0.8.2  star four hundred and fifty-two
0.6.3
 info 3/0
 download one hundred and twenty-one
react-jss
 tag 8.6.0  star nine hundred and twenty-eight
2.0.5
 info 17/180
 download 431,995
react-look
 tag 1.0.1  star five hundred and ninety-eight
0.6.1
 info 14/0
 download seventy-seven
react-native-web
 tag 0.8.6  star 9,653
0.0.11
 info 21/739
 download 51,794
react-statics-styles
 tag 3.1.0  star twenty-five
3.0.2
 info 0/0
 download twelve
react-styl
 tag 0.0.3  star forty-two
0.0.1
 info 0/0
 download sixty-two
react-style
 tag 0.5.5  star 1,687
0.5.5
 info 34/65
 download 1,500
react-styleable
 tag 3.3.0  star one hundred and ninety-seven
1.4.0
 info 1/5
 download 1,087
react-stylematic
 tag 1.1.0  star nineteen
1.0.1
 info 1/0
 download 1,957
react-theme
 tag 0.1.4  star sixty-five
0.1.4
 info 0/0
 download four hundred and eighty-three
react-vstyle
 tag 0.1.0  star nineteen
0.1.0
 info 0/0
 download six
reactcss
 tag 1.2.3  star 1,498
0.3.2
 info 4/43
 download 545,864
restyles
 tag 2.0.1  star forty-seven
2.0.1
 info 1/1
 download seventeen
scope-styles
 tag 0.6.0  star twenty-three
0.6.0
 info 7/6
 download 1,354
smart-css
 tag 1.1.1  star seventy-three
1.1.1
 info 4/3
 download twelve
stile
 tag 3.1.0  star nineteen
___________________________
react-media-queries
 tag 2.0.1  star sixty-five
2.0.0
 info 1/3
 download twenty-one
____________
 info 1/2
 download twenty-two
stilr
 tag 1.3.0  star two hundred and thirty-six
1.1.0
 info 5/18
 download one hundred and forty-eight
stylable
 tag 5.4.9  star seven hundred and twenty-eight
5.0.2
 info 62/114
 download 9,275
style-it
 tag 2.0.0  star ninety-two
1.2.9
 info 1/25
 download 2,686
styled-components
 tag 3.3.3  star 17,306
3.2.6
 info 104/1092
 download 1,085,338
styled-jsx
 tag 2.2.7  star 3,275
0.0.7
 info 21/284
 download 186,617
styletron-react
 tag 3.0.4  star 2,485
2.1.2
 info 59/82
 download 5,709
styling
 tag 0.4.1  star one hundred and thirty
0.2.0
 info 5/2
 download forty-nine
superstyle
 tag 1.0.0-1  star thirty-one
1.0.0-1
 info 0/1
 download five
@thi.ng/hiccup-css
 tag 0.2.3  star one hundred and seventy
0.2.0
 info 5/14
 download five hundred and thirty-seven
typestyle
 tag 2.0.1  star 1,919
0.22.3
 info 15/151
 download 23,530
uranium
 tag 0.1.0  star one hundred and seventeen
0.1.2
 info 3/6
 download six

This list has been auto-updated ( ? ) on August 8, 2018

Testimonials

"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

Contributing

If your package is not listed here, feel free to add it.

  1. Create a new folder named package-name in the root folder.
  2. Implement the red button example using the package.
  3. Add a new entry to data.json .
  4. Rename ReadmeSrc/.env_example to ReadmeSrc/.env and set a Github access token to retrieve data from Github.
  5. Re-generate the data with: cd ReadmeSrc && yarn && yarn update-data && yarn generate-readme .