# @linaria/react

> Blazing fast zero-runtime CSS in JS library

Latest version **8.2.0** (published 2026-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @linaria/react
pnpm add @linaria/react
yarn add @linaria/react
bun add @linaria/react
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.2.0 |
| Published | 2026-08-10 |
| First published | 2020-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.12.0 |
| Dependencies | 7 |
| Unpacked size | 123 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12349 |
| Maintainers | thymikee, satya164, zamotany, anber |
| Keywords | css, css-in-js, linaria, react, styled-components |

## Links

- npm: https://www.npmjs.com/package/@linaria/react
- Repository: https://github.com/callstack/linaria
- Homepage: https://github.com/callstack/linaria#readme
- Issues: https://github.com/callstack/linaria/issues
- npm.io page: https://npm.io/package/@linaria/react

## Dependencies (7)

- [resolve](https://npm.io/package/resolve.md) ^1.22.8
- [minimatch](https://npm.io/package/minimatch.md) ^9.0.3
- [@linaria/core](https://npm.io/package/@linaria/core.md) ^8.2.0
- [@wyw-in-js/shared](https://npm.io/package/@wyw-in-js/shared.md) 2.4.0
- [react-html-attributes](https://npm.io/package/react-html-attributes.md) ^1.4.6
- [@emotion/is-prop-valid](https://npm.io/package/@emotion/is-prop-valid.md) ^1.2.0
- [@wyw-in-js/processor-utils](https://npm.io/package/@wyw-in-js/processor-utils.md) 2.4.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 8.2.0 (latest) — 2026-08-10
- 3.0.0-airbnb.0 (legacy) — 2023-01-19
- 8.1.1 — 2026-07-20
- 8.1.0 — 2026-07-16
- 8.0.0 — 2026-06-14
- 7.0.1 — 2026-01-26
- 7.0.0 — 2026-01-26
- 6.3.0 — 2025-03-16
- 6.2.1 — 2024-04-26
- 6.2.0 — 2024-04-25
- 6.1.0 — 2024-02-08
- 6.0.0 — 2023-12-07
- 5.0.3 — 2023-10-02
- 5.0.2 — 2023-09-28
- 5.0.1 — 2023-09-23
- … 42 more at https://npm.io/package/@linaria/react/versions

## README

<p align="center">
  <img alt="Linaria" src="https://raw.githubusercontent.com/callstack/linaria/HEAD/website/assets/linaria-logo@2x.png" width="496">
</p>

<p align="center">
Zero-runtime CSS in JS library.
</p>

---

### 📖 Please refer to the [GitHub](https://github.com/callstack/linaria#readme) for full documentation.

## Features

- Write CSS in JS, but with **zero runtime**, CSS is extracted to CSS files during build
- Familiar **CSS syntax** with Sass like nesting
- Use **dynamic prop based styles** with the React bindings, uses CSS variables behind the scenes
- Easily find where the style was defined with **CSS sourcemaps**
- **Lint your CSS** in JS with [stylelint](https://github.com/stylelint/stylelint)
- Use **JavaScript for logic**, no CSS preprocessor needed
- Optionally use any **CSS preprocessor** such as Sass or PostCSS

**[Why use Linaria](../../docs/BENEFITS.md)**

## Installation

```sh
npm install @linaria/core @linaria/react @linaria/babel-preset
```

or

```sh
yarn add @linaria/core @linaria/react @linaria/babel-preset
```

---
_Source: https://npm.io/package/@linaria/react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
