<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/zero-runtime-css-from-js-with-linaria-0ftkgvklj" -->

---
title: Zero-Runtime CSS From JS With Linaria | daily.dev
description: Linaria is a zero-runtime CSS-in-JS library that extracts CSS to plain files at build time using a Babel preset. Unlike traditional CSS-in-JS libraries...
canonical: https://daily.dev/posts/zero-runtime-css-from-js-with-linaria-0ftkgvklj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Zero-Runtime CSS From JS With Linaria | daily.dev
og:description: Linaria is a zero-runtime CSS-in-JS library that extracts CSS to plain files at build time using a Babel preset. Unlike traditional CSS-in-JS libraries...
og:url: https://daily.dev/posts/zero-runtime-css-from-js-with-linaria-0ftkgvklj
og:image: https://api.daily.dev/og/posts/0FtkGVKlJ.png
og:image:alt: Zero-Runtime CSS From JS With Linaria
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.

# Zero-Runtime CSS From JS With Linaria

**[Callstack Blog](https://daily.dev/sources/callstack-blog)** · 4 min read · 0 upvotes · 0 comments

## Summary

Linaria is a zero-runtime CSS-in-JS library that extracts CSS to plain files at build time using a Babel preset. Unlike traditional CSS-in-JS libraries (styled-components, Emotion), it has no runtime cost — no CSS parser is bundled with JavaScript, enabling parallel downloading of CSS and JS. It supports tagged template literal syntax, build-time JavaScript expressions, Sass-like nesting, SSR critical CSS extraction, and Webpack hot reload. The key trade-off is that dynamic values like props cannot be used since all CSS must be evaluable at build time.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.callstack.com/blog/zero-runtime-css-from-js-with-linaria>

## Similar posts on daily.dev

- [Static Extraction in CSS-in-JS for Efficiency in React Apps](https://daily.dev/posts/static-extraction-in-css-in-js-for-efficiency-in-react-apps-5kkh66dnn) · Telerik · 0 upvotes · 0 comments
- [CSS-in-JS: The Great Betrayal of Frontend Sanity](https://daily.dev/posts/css-in-js-the-great-betrayal-of-frontend-sanity-yltrsmn2c) · The New Stack · 0 upvotes · 0 comments
- [Styling Linear for the future with StyleX](https://daily.dev/posts/styling-linear-for-the-future-with-stylex-9empz51m7) · Linear · 43 upvotes · 5 comments
- [StyleX: A Styling Library for CSS at Scale](https://daily.dev/posts/stylex-a-styling-library-for-css-at-scale-8rztohp6s) · Facebook Engineering
 · 110 upvotes · 7 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#css](https://daily.dev/tags/css), [#babel](https://daily.dev/tags/babel)

[View this post on daily.dev](https://daily.dev/posts/zero-runtime-css-from-js-with-linaria-0ftkgvklj)

```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":"Zero-Runtime CSS From JS With Linaria","url":"https://daily.dev/posts/zero-runtime-css-from-js-with-linaria-0ftkgvklj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/zero-runtime-css-from-js-with-linaria-0ftkgvklj"},"datePublished":"2026-03-22T11:30:53.276Z","dateModified":"2026-03-22T11:33:26.674Z","description":"Linaria is a zero-runtime CSS-in-JS library that extracts CSS to plain files at build time using a Babel preset. Unlike traditional CSS-in-JS libraries...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a7ad7f2136b38668affa6f56200f328d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a7ad7f2136b38668affa6f56200f328d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Callstack Blog","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":"Callstack Blog","logo":"https://media.daily.dev/image/upload/s--3qItoroi--/f_auto,q_auto/v1774179048/logos/callstack-blog?_a=BAMAMiWQ0","url":"https://daily.dev/sources/callstack-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/zero-runtime-css-from-js-with-linaria-0ftkgvklj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,css,babel","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Callstack Blog","item":"https://daily.dev/sources/callstack-blog"},{"@type":"ListItem","position":3,"name":"Zero-Runtime CSS From JS With Linaria"}]}
```

