Skip to content

Topic

CSS Modules

A convention in which CSS files are imported into JavaScript components and their class names are scoped locally at build time, producing static stylesheets.

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