# csstools/precss

Use Sass-like markup in your CSS

Repository: https://github.com/csstools/precss
Canonical: https://ross.abutalabs.com/products/precss
Homepage: https://jonathantneal.github.io/precss/
Language: CSS
License: CC0-1.0
License Family: permissive
Archived: true
Last push: 2022-01-07T10:41:50+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4076, "days_push": 1699, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1590, forks 76 (observed 2026-08-28T04:05:08.488304+00:00)

## What it is
PreCSS is a PostCSS plugin that lets you write Sass-like markup—variables, conditionals, iterators, nesting, and extends—directly in CSS files. It bundles several PostCSS plugins to transform this enhanced CSS into standard CSS during your build process.

## Use cases
- use sass variables in plain css files
- nest css selectors without switching to sass
- replace node-sass with a postcss-based workflow
- add conditional logic and loops to css
- compile scss-like syntax into standard css
- get sass features while staying on postcss build pipeline

## When to choose
- You want Sass-like features such as variables, nesting, and conditionals without adopting a full Sass toolchain
- Your build already uses PostCSS with Gulp, Grunt, or a bundler and you want preprocessing as a drop-in plugin
- You want to combine preprocessing with emerging native CSS features via the included postcss-preset-env

## When to avoid
- You need full Sass capabilities like mixins with arguments, @use/@import modules, or built-in Sass functions
- You require actively maintained software—the latest release dates to January 2022
- Your workflow does not run on Node.js or support PostCSS tooling

## Facets
- artifact type: plugin
- maturity: maintenance
- function: compiler, build-tool
- domain: web-development, frontend, web-design
- platform: -
- tags: css, sass, postcss-plugin, css-preprocessor, css-nesting, css-variables, transpiler, nodejs

## Member repositories
- csstools/precss (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:08.488304+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:54:47.027609+00:00, confidence not recorded.
  - readme: https://github.com/csstools/precss (fetched 2026-08-28T04:05:08.488304+00:00, sha d9e3f2ec49ae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
