# tree-sitter-css

> CSS grammar for tree-sitter

Latest version **0.25.0** (published 2025-09-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install tree-sitter-css
pnpm add tree-sitter-css
yarn add tree-sitter-css
bun add tree-sitter-css
```

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.25.0 |
| Published | 2025-09-28 |
| First published | 2018-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 139 |
| Author | Max Brunsfeld |
| Maintainers | maxbrunsfeld, daviwil, atom-team, darangi |
| Keywords | incremental, parsing, tree-sitter, css |

## Links

- npm: https://www.npmjs.com/package/tree-sitter-css
- Repository: https://github.com/tree-sitter/tree-sitter-css
- Homepage: https://github.com/tree-sitter/tree-sitter-css#readme
- Issues: https://github.com/tree-sitter/tree-sitter-css/issues
- Funding: https://github.com/sponsors/tree-sitter
- npm.io page: https://npm.io/package/tree-sitter-css

## Dependencies (2)

- [node-addon-api](https://npm.io/package/node-addon-api.md) ^8.5.0
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^4.8.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

- 0.25.0 (latest) — 2025-09-28
- 0.23.2 — 2025-01-12
- 0.23.1 — 2024-11-11
- 0.23.0 — 2024-09-02
- 0.21.1 — 2024-08-17
- 0.21.0 — 2024-05-04
- 0.20.0 — 2023-11-28
- 0.19.0 — 2021-03-04
- 0.16.0 — 2019-12-10
- 0.15.0 — 2019-12-03
- 0.13.7 — 2018-10-30
- 0.13.6 — 2018-10-30
- 0.13.5 — 2018-10-29
- 0.13.4 — 2018-10-28
- 0.13.3 — 2018-10-26
- … 3 more at https://npm.io/package/tree-sitter-css/versions

## README

# tree-sitter-css

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-css/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-css)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-css)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-css)

CSS grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).

References

- [CSS Syntax Guide](https://developer.mozilla.org/en-US/docs/Web/CSS/Syntax)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-css/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-css?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-css?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-css?logo=pypi&logoColor=ffd242

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