Back Issues/Search Home → Calendar → Archive → RSS → Subscribe → Services → Vendors → Blog → Current Issue → Popular → Newsletters (LinkedIn, Substack)

All issues › Volume 344, Issue 4 › IT News › Developer

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

InfoQ, Wednesday, November 25th, 2026

GitHub finished a three-year move from styled-components to CSS Modules, cutting server-side rendering time by 55 percent.

GitHub's Primer engineers described migrating github.com from CSS-in-JS to CSS Modules after component counts exploded in 2023 and exposed scaling problems in page loads, server renders and style updates.

Each Primer component got a CSS Modules variant behind a feature flag, verified with visual regression tests, and Primer was fully migrated by December 2024.

Roughly 7,760 sx prop usages remained: eight engineers migrated 6,419 in six months, and two engineers cleared the final 895 in three weeks using Copilot coding agents, and the result was 55% faster SSR and 25% faster component initialisation.

Hacker News reaction was mixed, and the move mirrors a broader shift to build-time styling, such as Linear's adoption of StyleX.

more →  ·  More from Developer →