Skip to content
JS
Package

css-tree

A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations

v3.2.1, 5 Mar 2026MITESM + CommonJSTypes: NoneParsers and serialisersCSS-in-JS and styling
$ npm install css-tree

Key numbers

As of 25 Sept 2026
Weekly downloads
88.1m
+116% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
6 months ago
v3.2.1
GitHub stars
2.1k
130 forks
Open issues / PRs
53 / 25
Contributors
31
Commits, last 52 weeks
18

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150mSept 2025Mar 2026Sept 2026High 114.3m (25 Aug 2026)Low 24.7m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

88,124,974 downloads last week, 395,611,442 in the last month. The 12-month change of +116% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
221 in total
Latest version
3.2.1, 5 Mar 20266 months ago
First published
12 Sept 2016
Last push to GitHub
16 Sept 20268 days before the snapshot
Repository archived
No
Open issues
53
Open pull requests
25
Commits, last 52 weeks
18
Dependents on npm
1,177

Major versions

  1. v3 first release 3.0.0, 11 Sept 2024
  2. v2 first release 2.0.0, 3 Dec 2021
  3. v1 first release 1.0.0, 27 Oct 2020

Recent releases

VersionPublished
3.2.15 Mar 2026
3.2.05 Mar 2026
3.1.06 Dec 2024
3.0.12 Nov 2024
3.0.011 Sept 2024
2.3.114 Dec 2022
2.3.030 Nov 2022
2.2.114 Aug 2022
2.2.010 Aug 2022
2.1.027 Feb 2022
2.0.417 Dec 2021
2.0.315 Dec 2021
2.0.210 Dec 2021
2.0.14 Dec 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
^10 || ^12.20.0 || ^14.13.0 || >=15.0.0
Runtimes
-
Unpacked size (npm)
1.3 MB
Dependencies (2)
mdn-datasource-map-js
npm install css-tree
  • jsDelivrhttps://cdn.jsdelivr.net/npm/css-tree@3.2.1/
  • unpkghttps://unpkg.com/css-tree@3.2.1/
  • esm.shhttps://esm.sh/css-tree@3.2.1
PackageWeekly downloadsGzipLast releaseModuleComparison
inline-style-parser33.9m-2 months agoESM + CommonJS-
@eslint/css-tree2.1m-7 days agoESM + CommonJS-
lightningcss113.9m-2 months agoESM + CommonJScss-tree vs lightningcss
scss-tokenizer1.4m-4 years ago--
@npmcli/query3.8m-4 months agoCommonJS-
esprima85m-8 years agoCommonJS-
snapdragon9.5m-5 years agoCommonJS-
postcss-value-parser84.1m-4 years agoCommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.