News
GitHub Ditches CSS-in-JS for CSS Modules, Reports 55% Faster SSR After Three-Year Migration
InfoQ · By Daniel Curtis ·
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
- #css
- #css-in-js
- #css-modules
- #ssr
- #performance
- #github
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…