Skip to content
React Libraries
On this page

Styling & themes

Compose CSS classes, create design tokens, and build reusable component styles.

Choose a library or tool

23 options in this category.

Jump to a library or tool (23)

chroma.js

Library / tool

A library for color conversions, scales, and manipulation.

Good for
Generating palettes and color scales for interfaces or charts.

Class Variance Authority

Library / tool

Utilities for defining component variants as sets of CSS classes.

Good for
Managing size, color, and state variants in a component system.

clsx

Library / tool

A small utility for composing conditional CSS class names.

Good for
Building className values from component states and optional styles.

CSS Modules

Library / tool

A convention and tooling approach for locally scoped CSS classes.

Good for
Writing stylesheets without exposing every class name globally.

Emotion

Library / tool

A library for composing styles with JavaScript.

Good for
Building component-level styles with a flexible CSS-in-JS API.

Fancy ANSI

Library / tool

A utility for rendering ANSI-formatted terminal text on the web.

Good for
Showing colored command output inside browser-based interfaces.

Linaria

Library / tool

A CSS-in-JS library that extracts styles at build time.

Good for
Keeping styles near components while producing static CSS.

MistCSS

Library / tool

A tool for defining atomic React components through CSS.

Good for
Generating component styling and variants from stylesheet definitions.

next-themes

Library / tool

Theme management for Next.js and React applications.

Good for
Adding persisted light, dark, and system theme selection.

Panda CSS

Library / tool

Build-time styling tools with typed tokens and recipes.

Good for
Building a design system with type-safe styling conventions.

Pigment CSS

Library / tool

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

Good for
Writing component styles that are extracted before the application runs.

Polished

Library / tool

Style utilities for JavaScript-based styling systems.

Good for
Calculating colors, layout values, and reusable CSS fragments.

Prop for That

Library / tool

A library that exposes JavaScript runtime values as live CSS custom properties.

Good for
Making CSS respond to pointer position, element state, and other browser information.

React TWC

Library / tool

Utilities for creating React components from Tailwind CSS classes.

Good for
Packaging repeated utility-class combinations as reusable components.

Reshadow

Library / tool

A styling library for scoped component styles.

Good for
Exploring an alternative CSS-in-JS approach with component-oriented selectors.

styled-components

Library / tool

A component-oriented CSS-in-JS library.

Good for
Defining styles alongside React components with dynamic styling behavior.

StyleX

Library / tool

A styling system that compiles JavaScript style definitions into CSS.

Good for
Managing typed, composable styles across a large component codebase.

Tailwind CSS

Library / tool

A utility-first CSS framework.

Good for
Building interface styles directly from composable utility classes.

Tailwind Variants

Library / tool

A variant API for composing Tailwind CSS classes.

Good for
Building components with typed style variants and multiple slots.

tailwind-merge

Library / tool

A utility for resolving conflicting Tailwind CSS classes.

Good for
Combining default and caller-provided component classes predictably.

tweakcn

Library / tool

A visual theme editor for shadcn/ui applications.

Good for
Trying design-token changes and exporting a coordinated theme.

UnoCSS

Library / tool

An on-demand atomic CSS engine.

Good for
Configuring a utility-class workflow through presets and custom rules.

vanilla-extract

Library / tool

TypeScript tooling for generating static stylesheets.

Good for
Writing typed styles and design tokens without runtime style generation.

Keep exploring

Browse all categories →