# callstack/linaria

Zero-runtime CSS in JS library

Repository: https://github.com/callstack/linaria
Canonical: https://ross.abutalabs.com/products/linaria
Homepage: https://linaria.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: css, css-in-js, css-in-react, react
Last push: 2026-08-10T18:34:26+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 97, longevity 100
- inputs: {"age_days": 3390, "days_push": 23, "days_rel": 23, "gap_med": 0.0, "n_releases_24m": 57}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12345, forks 413 (observed 2026-08-28T04:10:52.429540+00:00)

## What it is
Linaria is a zero-runtime CSS-in-JS library that extracts CSS to real stylesheet files at build time. It offers familiar CSS syntax with Sass-like nesting, React bindings for dynamic prop-based styles via CSS variables, and sourcemaps for debugging.

## Use cases
- write CSS in JS without runtime overhead
- extract CSS to static files at build time
- style React components with dynamic props
- avoid styled-components runtime performance cost
- lint CSS written in JavaScript with stylelint
- use atomic CSS classes in a React app

## When to choose
- you want CSS-in-JS ergonomics with zero runtime cost
- you're building a React app where performance matters
- you want CSS sourcemaps and stylelint support
- you use webpack, Vite, esbuild, or Rollup and want build-time CSS extraction

## When to avoid
- you prefer plain CSS or a preprocessor without JS coupling
- your build pipeline isn't supported by wyw-in-js
- you need heavy runtime theming that depends on evaluated styles at runtime
- you're not using a bundler that supports build-time extraction

## Facets
- artifact type: library
- maturity: active
- function: css-framework, ui-components, build-tool
- domain: frontend, web-development, web-design
- platform: cross-platform
- tags: css-in-js, zero-runtime, react, css-extraction, styled-components-alternative, wyw-in-js, atomic-css, nodejs, web-server

## Member repositories
- callstack/linaria (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:52.429540+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:08.553269+00:00, confidence not recorded.
  - readme: https://github.com/callstack/linaria (fetched 2026-08-28T04:10:52.429540+00:00, sha e33f70d07656)
  - homepage: https://linaria.dev (fetched 2026-08-29T08:11:34.933961+00:00, sha b71c6d4d15d9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
