# csstools/sanitize.css

A best-practices CSS foundation

Repository: https://github.com/csstools/sanitize.css
Canonical: https://ross.abutalabs.com/products/sanitizecss
Homepage: https://csstools.github.io/sanitize.css
Language: CSS
License: CC0-1.0
License Family: permissive
Topics: css, normalization, opinionated
Last push: 2026-03-26T11:31:36+00:00

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

## Adoption (not part of the score)
Stars 5302, forks 299 (observed 2026-08-28T04:09:15.344232+00:00)

## What it is
sanitize.css is a CSS library providing consistent, cross-browser default styling of HTML elements, developed alongside normalize.css. It wraps styles in zero-specificity selectors using :where() and ships optional stylesheets for forms, typography, assets, and reduced motion.

## Use cases
- normalize css styles across browsers
- reset default browser styling for html elements
- consistent form control styling
- typography defaults using system fonts
- respect user reduced motion preferences
- css foundation for a new web project

## When to choose
- starting a new web project needing a solid CSS baseline
- you want documented, opinionated defaults on top of normalize.css
- you need zero-specificity resets that are easy to override
- you want modular stylesheets for forms, typography, or reduced motion

## When to avoid
- you need a full component or utility CSS framework like Tailwind or Bootstrap
- you only need a minimal unopinionated reset
- you require support for legacy browsers beyond the last two versions

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, css-framework
- domain: web-development, frontend, web-design
- platform: browser, cross-platform
- tags: css-reset, css-normalization, cross-browser, stylesheet, normalize-css

## Member repositories
- csstools/sanitize.css (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:15.344232+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-29T17:59:00.932460+00:00, confidence not recorded.
  - readme: https://github.com/csstools/sanitize.css (fetched 2026-08-28T04:09:15.344232+00:00, sha 6289e06890b2)
  - homepage: https://csstools.github.io/sanitize.css (fetched 2026-08-29T08:53:49.100004+00:00, sha 27a7b67f446c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
