# @linaria/vite

> Blazing fast zero-runtime CSS in JS library

Latest version **5.0.4** (published 2023-11-09) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.4 |
| Published | 2023-11-09 |
| First published | 2022-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16.0.0 |
| Dependencies | 4 |
| Unpacked size | 36 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12353 |
| Maintainers | thymikee, satya164, zamotany, anber |
| Keywords | babel, babel-plugin, css, css-in-js, linaria, react, styled-components, vite, vite-plugin |

## Links

- npm: https://www.npmjs.com/package/@linaria/vite
- 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/vite

## Dependencies (4)

- [@linaria/utils](https://npm.io/package/@linaria/utils.md) ^5.0.2
- [@linaria/logger](https://npm.io/package/@linaria/logger.md) ^5.0.0
- [@rollup/pluginutils](https://npm.io/package/@rollup/pluginutils.md) ^5.0.4
- [@linaria/babel-preset](https://npm.io/package/@linaria/babel-preset.md) ^5.0.4

## 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

- 5.0.4 (latest) — 2023-11-09
- 5.0.3 — 2023-09-28
- 5.0.2 — 2023-09-24
- 5.0.1 — 2023-09-23
- 5.0.0 — 2023-09-23
- 4.5.4 — 2023-07-25
- 4.5.3 — 2023-07-23
- 4.5.2 — 2023-07-16
- 4.5.1 — 2023-07-13
- 4.5.0 — 2023-07-13
- 4.2.11 — 2023-05-05
- 4.2.10 — 2023-04-24
- 4.2.9 — 2023-02-21
- 4.2.8 — 2023-02-20
- 4.2.7 — 2023-02-08
- … 4 more at https://npm.io/package/@linaria/vite/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/vite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
