<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t" -->

---
title: Styling Linear for the future with StyleX | daily.dev
description: Linear migrated its React applications from styled-components to Meta's StyleX over the course of more than 1,000 PRs. The switch was driven by a desire for...
canonical: https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Styling Linear for the future with StyleX | daily.dev
og:description: Linear migrated its React applications from styled-components to Meta's StyleX over the course of more than 1,000 PRs. The switch was driven by a desire for...
og:url: https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t
og:image: https://api.daily.dev/og/posts/QMtpZOc4T.png
og:image:alt: Styling Linear for the future with StyleX
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Styling Linear for the future with StyleX

**[Reid Burke](https://daily.dev/sources/reidburke)** · 12 min read · 59 upvotes · 4 comments

## Summary

Linear migrated its React applications from styled-components to Meta's StyleX over the course of more than 1,000 PRs. The switch was driven by a desire for build-time style generation, harder-to-bypass styling contracts, and performance gains lost to CSS-in-JS runtime overhead and React 18 concurrent rendering. The team built a deterministic codemod, custom lint rules, a type-aware repository checker, dashboards to track migration progress, and extended StyleX with CSS Modules fallbacks and a custom theming layer for generated color themes. AI coding agents (Fable and Sol) played an increasing role as the migration progressed and models improved. The result: removing runtime style injection cut main-thread CPU work by 20-35% on view-heavy pages, roughly 30% faster on mid-tier machines, plus clearer, tooling-enforced styling contracts across the codebase.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://linear.app/now/styling-linear-for-the-future-stylex>

## Questions this post answers

### Why did Linear migrate from styled-components to StyleX?

Linear moved from styled-components to StyleX because CSS-in-JS added runtime work generating and injecting styles, which got worse after upgrading to React 18's concurrent rendering, while styled-components entered maintenance mode. StyleX does style generation at build time, enforces deterministic style merging, and makes styling components from the outside deliberately harder, which suited a codebase increasingly written by coding agents.

_Teams weighing a similar styling-library migration can follow real-world tradeoffs like this one on daily.dev._

### How much faster did Linear get after removing runtime CSS-in-JS style injection?

Removing runtime style injection reduced main-thread CPU work by roughly 20 to 35 percent on view-heavy pages, translating to about 30 percent faster performance on a mid-tier machine. The client went from injecting hundreds of CSS rules during navigation to injecting zero, measured by comparing profiles before and after the StyleX migration.

_Engineers chasing render performance gains can compare migration results like this on daily.dev._

### What alternatives to StyleX did Linear consider before migrating from styled-components?

Linear evaluated vanilla-extract as the closest alternative, valuing its static extraction and strong type safety, but rejected it because its API felt more fragmented and separating component and style files did not match Linear's preferred workflow. StyleX won out for colocated styles, a small API, deterministic style resolution, and type-safe styling contracts.

_daily.dev helps developers deciding between styling libraries weigh tradeoffs like these before committing._

## Community discussion

Top comments from developers on daily.dev.

**@apperside** · 2 upvotes

> It would have been awesome to partecipate to such a project, congratulations!

**@jliter85** · 2 upvotes

> Over 1,000 PRs for a styling migration is crazy, but I like how you approached it. The part about giving AI agents smaller, clearly defined jobs instead of handing them the entire migration really stood out to me. I’ve found the same thing when building with AI, the better I define the task and boundaries, the better the result usually is.

**@agustinbarrientos** · 0 upvotes

> Can a flat sx value silently erase hover or pressed styles without a regression test catching it?

## Similar posts on daily.dev

- [Linear Completes 1,000-PR Migration From styled-components to Meta's StyleX](https://daily.dev/posts/linear-completes-1-000-pr-migration-from-styled-components-to-meta-s-stylex-twjve9pqu) · InfoQ · 14 upvotes · 4 comments
- [Tailwind CSS vs. StyleX: A real migration with 20 components](https://daily.dev/posts/tailwind-css-vs-stylex-a-real-migration-with-20-components-pwvpzivec) · LogRocket · 72 upvotes · 13 comments

---

Tags: [#css](https://daily.dev/tags/css), [#react](https://daily.dev/tags/react), [#styled-components](https://daily.dev/tags/styled-components)

[View this post on daily.dev](https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Styling Linear for the future with StyleX","url":"https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t"},"datePublished":"2026-08-28T01:50:25.610Z","dateModified":"2026-10-15T02:22:38.854Z","description":"Linear migrated its React applications from styled-components to Meta's StyleX over the course of more than 1,000 PRs. The switch was driven by a desire for...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2d83a22362fd279a01392e3735d731d1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2d83a22362fd279a01392e3735d731d1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Reid Burke","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Reid Burke","logo":"https://media.daily.dev/image/upload/s--dGMoFloX--/f_auto/v1761722479/logos/reidburke","url":"https://daily.dev/sources/reidburke"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":59},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"css,react,styled-components","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Reid Burke","item":"https://daily.dev/sources/reidburke"},{"@type":"ListItem","position":3,"name":"Styling Linear for the future with StyleX"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t","comment":[{"@type":"Comment","text":"It would have been awesome to partecipate to such a project, congratulations!","datePublished":"2026-08-28T11:22:25.790Z","dateModified":"2026-08-29T00:50:53.995Z","url":"https://daily.dev/posts/QMtpZOc4T#c-ULNy4AEXN","author":{"@type":"Person","name":"Apperside","url":"https://daily.dev/apperside","image":"https://avatars.githubusercontent.com/u/5955338?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Over 1,000 PRs for a styling migration is crazy, but I like how you approached it. The part about giving AI agents smaller, clearly defined jobs instead of handing them the entire migration really stood out to me. I’ve found the same thing when building with AI, the better I define the task and boundaries, the better the result usually is.","datePublished":"2026-08-29T14:52:31.159Z","url":"https://daily.dev/posts/QMtpZOc4T#c-qtTuXXqgg","author":{"@type":"Person","name":"John Liter","url":"https://daily.dev/jliter85","image":"https://media.daily.dev/image/upload/s--DQ2HUrO4--/f_auto/v1785100315/avatars/avatar_yHf9cPdgTQEtokv6d8qhM?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Can a flat sx value silently erase hover or pressed styles without a regression test catching it?","datePublished":"2026-08-30T07:07:22.517Z","url":"https://daily.dev/posts/QMtpZOc4T#c-CtqSa1EZL","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/styling-linear-for-the-future-with-stylex-qmtpzoc4t#faq","mainEntity":[{"@type":"Question","name":"Why did Linear migrate from styled-components to StyleX?","acceptedAnswer":{"@type":"Answer","text":"Linear moved from styled-components to StyleX because CSS-in-JS added runtime work generating and injecting styles, which got worse after upgrading to React 18's concurrent rendering, while styled-components entered maintenance mode. StyleX does style generation at build time, enforces deterministic style merging, and makes styling components from the outside deliberately harder, which suited a codebase increasingly written by coding agents. Teams weighing a similar styling-library migration can follow real-world tradeoffs like this one on daily.dev."}},{"@type":"Question","name":"How much faster did Linear get after removing runtime CSS-in-JS style injection?","acceptedAnswer":{"@type":"Answer","text":"Removing runtime style injection reduced main-thread CPU work by roughly 20 to 35 percent on view-heavy pages, translating to about 30 percent faster performance on a mid-tier machine. The client went from injecting hundreds of CSS rules during navigation to injecting zero, measured by comparing profiles before and after the StyleX migration. Engineers chasing render performance gains can compare migration results like this on daily.dev."}},{"@type":"Question","name":"What alternatives to StyleX did Linear consider before migrating from styled-components?","acceptedAnswer":{"@type":"Answer","text":"Linear evaluated vanilla-extract as the closest alternative, valuing its static extraction and strong type safety, but rejected it because its API felt more fragmented and separating component and style files did not match Linear's preferred workflow. StyleX won out for colocated styles, a small API, deterministic style resolution, and type-safe styling contracts. daily.dev helps developers deciding between styling libraries weigh tradeoffs like these before committing."}}]}
```

