# @csstools/css-syntax-patches-for-csstree

> CSS syntax patches for CSS tree

Latest version **1.1.13** (published 2026-09-10) · MIT-0 license · 0 weekly downloads

## Install

```sh
npm install @csstools/css-syntax-patches-for-csstree
pnpm add @csstools/css-syntax-patches-for-csstree
yarn add @csstools/css-syntax-patches-for-csstree
bun add @csstools/css-syntax-patches-for-csstree
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.13 |
| Published | 2026-09-10 |
| First published | 2024-11-01 |
| Weekly downloads | 0 |
| License | MIT-0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1051 |
| Maintainers | jonathantneal, alaguna, romainmenke |
| Keywords | css, csstree, syntax |

## Links

- npm: https://www.npmjs.com/package/@csstools/css-syntax-patches-for-csstree
- Repository: https://github.com/csstools/postcss-plugins
- Homepage: https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree#readme
- Issues: https://github.com/csstools/postcss-plugins/issues
- Funding: https://github.com/sponsors/csstools
- npm.io page: https://npm.io/package/@csstools/css-syntax-patches-for-csstree

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

- 1.1.13 (latest) — 2026-09-10
- 1.1.12 — 2026-08-31
- 1.1.11 — 2026-08-31
- 1.1.10 — 2026-08-30
- 1.1.9 — 2026-08-25
- 1.1.8 — 2026-08-15
- 1.1.7 — 2026-07-22
- 1.1.6 — 2026-06-28
- 1.1.5 — 2026-06-03
- 1.1.4 — 2026-05-13
- 1.1.3 — 2026-04-12
- 1.1.2 — 2026-03-26
- 1.1.1 — 2026-03-14
- 1.1.0 — 2026-03-05
- 1.0.29 — 2026-03-02
- … 29 more at https://npm.io/package/@csstools/css-syntax-patches-for-csstree/versions

## README

# CSS Syntax Patches For CSSTree <img src="https://cssdb.org/images/css.svg" alt="for CSS" width="90" height="90" align="right">

[<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/css-syntax-patches-for-csstree.svg" height="20">][npm-url]
[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/actions/workflows/test.yml/badge.svg?branch=main" height="20">][cli-url]

Patch [csstree](https://github.com/csstree/csstree) syntax definitions with the latest data from CSS specifications.  

## Usage

```bash
npm install @csstools/css-syntax-patches-for-csstree
```

```js
import { fork } from 'css-tree';
import syntax_patches from '@csstools/css-syntax-patches-for-csstree' with { type: 'json' };

const forkedLexer = fork({
	atrules: syntax_patches.next.atrules,
	properties: syntax_patches.next.properties,
	types: syntax_patches.next.types,
}).lexer;
```

## `next`

```js
import syntax_patches from '@csstools/css-syntax-patches-for-csstree' with { type: 'json' };

console.log(syntax_patches.next);
//                         ^^^^
```

CSS specifications are often still in flux and various parts might change or disappear altogether.  
Specifications also contains parts that haven't been implemented yet in a browser.  
Only CSS that is widely adopted can be expected to be stable.

The `next` grouping contains a combination of what is currently valid in browsers and the progress in various specifications.

_In the future more groupings might be added._

[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
[npm-url]: https://www.npmjs.com/package/@csstools/css-syntax-patches-for-csstree

---
_Source: https://npm.io/package/@csstools/css-syntax-patches-for-csstree · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
