Skip to content

nialloc9/css-in-js-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof of concept for css in js

css in js

Prerequisites

Install

    npm i -g yarn

    git clone git@github.com:nialloc9/emotion-vs-styled-components-vs-styletron-bundle-analysis.git

    cd emotion-vs-styled-components-vs-styletron-bundle-analysis

    npm install

Run

    npm run compile
    npm run compare

Questions to answer?

  • Which library produces the smallest bundle?

  • Which has the fastest compile time?

Answers

time to compile

  • Styletron is fastest to compile with styled-components taking the longest.

size

  • Emotion is biggest to compile with styled-components the smallest.

About

A project to analysis the bundle sizes generated from 3 different css in js libraries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published