Skip to content

Topic

CSS-in-JS

A family of techniques for writing component styles in JavaScript, often generating and injecting CSS at runtime in the browser or during server rendering.

Current clusters

build1 publisher

GitHub cut server-side render time 55% by moving Primer off runtime CSS-in-JS

GitHub says moving every Primer component from runtime CSS-in-JS to CSS Modules cut server-side render time by 55% and component initialization by 25%. The figures come from GitHub's own pages without baselines, so they hold elsewhere only where styling work grows with component count as it did at GitHub.

Publishers:github.blog

Reality

Evidence40
Adoption55
Hype gap+10
Incentives40
Confidence45