International
The Morning Dev

Only the news worth knowing

‹
 

News

GitHub Ditches CSS-in-JS for CSS Modules, Reports 55% Faster SSR After Three-Year Migration

InfoQ · By Daniel Curtis ·

GitHub Ditches CSS-in-JS for CSS Modules, Reports 55% Faster SSR After Three-Year Migration

The Brief

  • GitHub migrated github.com from styled-components to CSS Modules over three years.
  • The migration reportedly cut server-side rendering time by 55% and component initialisation time by 25%.
  • Primer components were converted behind feature flags, and about 7,760 sx prop usages were migrated.

Why it matters

It is a large, production-scale example that removing runtime CSS-in-JS can produce measurable server-side rendering gains, which matters for teams weighing styling costs.

Who’s affected

  • Teams running styled-components with server-side rendering

GitHub migrated github.com from styled-components to CSS Modules over three years, reporting a 55% cut in server-side rendering time and 25% faster component initialisation. Primer components were converted behind feature flags, and about 7,760 sx prop usages were migrated with…

How do you feel about this?

0 Comments

    GitHub Ditches CSS-in-JS for CSS Modules, Reports 55% Faster SSR After Three-Year Migration – The Morning Dev