postcss/postcss-nested
Some data may be outdated — see provenance labels.
PostCSS plugin to unwrap nested rules like how Sass does it. observed · 2026-09-25
Health v2 · maintenance only
90/100
- Activity 87
- Release rhythm 89
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 2.0
- age_days: 4365
- days_rel: 79
- days_push: 79
- n_releases_24m: 5
Adoption not part of the score
1197 stars · 64 forks observed · 2026-09-25
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PostCSS plugin that unwraps nested CSS rules using Sass-like syntax, flattening them into standard flat CSS. It supports bubbling of at-rules like @media and @supports, as well as parent selector references and @at-root.
Use cases
- write nested CSS with Sass-like syntax and compile to plain CSS
- unwrap nested rules in a PostCSS build pipeline
- use CSS nesting without relying on native browser support
- bubble media queries and other at-rules out of nested selectors
- reference parent selectors with & in nested styles
When to choose
- you already use PostCSS and want Sass-style nesting
- you want nesting closer to the Sass syntax rather than the CSSWG draft
- you need configurable at-rule bubbling in nested CSS
When to avoid
- you want the official CSS nesting spec implementation (use postcss-nesting instead)
- your build pipeline does not use PostCSS
- you need a full CSS preprocessor with variables, mixins, and functions
Facets
plugin · maturity stable
css-framework build-tool web-development frontend cross-platform postcss-plugin css-nesting sass-syntax css-processing nodejs
2 sources
- readme: https://github.com/postcss/postcss-nested · fetched 2026-09-25 · 5a2ec12ad6d8
- registry_npm: https://registry.npmjs.org/postcss-nested · fetched 2026-08-29 · 5a01f1f269ee
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| postcss/postcss-nested | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="postcss/postcss-nested")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem