Linear migrates to StyleX: 1,000 PRs to prepare for AI agents
talkaboutdesign · x · 2026-08-28
Linear engineers detailed migrating their React apps from styled-components to StyleX, a process involving over 1,000 PRs driven by performance needs and React 18 compatibility.
Why Migrate?
- Excessive configurability in styled-components caused maintenance debt and blurred component boundaries via external overrides.
- CSS-in-JS added runtime overhead impacting performance.
- Need for stricter composition boundaries as agents contribute more to the codebase.
The Process:
- Initially considered too edge-case heavy for full agent automation.
- Mid-project improvements in model capabilities allowed AI to assist significantly.
- Resulted in better defaults for both human and agent developers.
More from coding & agent
- Live Pipeline Builder Session: Building Data Pipelines on Demand — aronchick · 2026-08-28
- Plane Powers reveals agent mechanics: runs on work graph, not chat sidebar — JosephJacks_ · 2026-08-28
- Burning through Grok credits with OpenClaw integration — heyneighbor · 2026-08-28
- OpenPresence: A Framework for Deploying Autonomous Social Media Agents — RichardsonDx · 2026-08-28
- Can AI Computer Use Agents Fix the 'Notification Void' in Emails? — Darpinian · 2026-08-28
- Optimizing Coding Agents the Wrong Way: A Fail-Closed Chain Runs 26 Days Autonomously — nodo48 · 2026-08-28