---
title: "Pigment CSS"
description: "A build-time CSS-in-JS styling solution."
pagination: false
---

{/* Generated from content/. Edit the catalog, not this page. */}

<PurposeNote title="Good for">Writing component styles that are extracted before the application runs.</PurposeNote>

## What it does

A build-time CSS-in-JS styling solution.

## When it fits

Writing component styles that are extracted before the application runs.

## Other options in this category

<div data-pagefind-ignore>

- [chroma.js](/styling/chroma-js) — Generating palettes and color scales for interfaces or charts.
- [Class Variance Authority](/styling/class-variance-authority) — Managing size, color, and state variants in a component system.
- [clsx](/styling/clsx) — Building className values from component states and optional styles.
- [CSS Modules](/styling/css-modules) — Writing stylesheets without exposing every class name globally.
- [Emotion](/styling/emotion) — Building component-level styles with a flexible CSS-in-JS API.

</div>

## Source

[Project source for Pigment CSS ↗](https://github.com/mui/pigment-css)

Editorial overview reviewed on October 24, 2026. Follow the source for current setup, compatibility, and licensing.

[Style and theme components →](/tasks/style-and-theme-components)

[All styling &amp; themes options →](/styling)
