# mui/pigment-css

⚠️ 𝐀𝐥𝐩𝐡𝐚 𝐩𝐡𝐚𝐬𝐞, currently, on hold. Pigment CSS is a zero-runtime CSS-in-JS library that extracts the colocated styles to their own CSS files at build time.

Repository: https://github.com/mui/pigment-css
Canonical: https://ross.abutalabs.com/products/pigment-css
Homepage: https://github.com/mui/pigment-css/discussions/424
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-06-06T14:39:23+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 86, release rhythm 85, longevity 73
- inputs: {"age_days": 1030, "days_push": 88, "days_rel": 103, "gap_med": 13, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1120, forks 55 (observed 2026-08-28T04:03:39.584407+00:00)

## What it is
Pigment CSS is a zero-runtime CSS-in-JS library from MUI that extracts colocated styles into separate CSS files at build time. It integrates with Next.js and Vite and supports theming via CSS variables.

## Use cases
- write css-in-js styles without runtime overhead
- extract colocated styles to css files at build time
- style react components with themeable css variables
- use css-in-js with next.js app router and server components
- use css-in-js with vite
- create global styles and animation keyframes in javascript

## When to choose
- you want css-in-js ergonomics with zero runtime cost in a Next.js or Vite app
- you are already in the MUI ecosystem and want its styling approach
- you need static css extraction for server components

## When to avoid
- you need a maintained library - the project is on hold in alpha phase
- your bundler is not Next.js or Vite
- you need production stability and long-term support
- you prefer plain CSS or a mature solution like Tailwind or vanilla-extract

## Facets
- artifact type: library
- maturity: abandoned
- function: css-framework, build-tool, ui-components
- domain: frontend, web-development
- platform: -
- tags: css-in-js, zero-runtime, build-time-extraction, nextjs, vite, mui, nodejs, web-server

## Member repositories
- mui/pigment-css (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:39.584407+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-30T06:41:06.775312+00:00, confidence not recorded.
  - readme: https://github.com/mui/pigment-css (fetched 2026-08-28T04:03:39.584407+00:00, sha 991775c89ce3)
  - homepage: https://github.com/mui/pigment-css/discussions/424 (fetched 2026-08-29T12:44:58.508240+00:00, sha c88649b1400f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
