Stitches homepage
The modern styling library

Near-zero runtime, server-side rendering, multi-variant support, and a best-in-class developer experience.

npm install @stitches/react

Features

A fully-featured styling library.

Performant

Stitches avoids unnecessary prop interpolations at runtime, making it significantly more performant than other styling libraries.

Lightweight

Both @stitches/core and @stitches/react libraries combined weigh in at ~8.0kb gzipped.

Server-Side Rendering

Stitches supports cross-browser server-side rendering, even for responsive styles and variants.

Variants

Variants are a first-class citizen of Stitches, so you can design composable component APIs which are typed automatically.

Theming

Define multiple themes with CSS variables, then expose them to any part of your app.

Developer experience

With a fully-typed API, token-aware properties, and custom utils, Stitches provides a fun and intuitive DX.

Critical Path CSS

Stitches only injects the styles which are actually used, so your users don't download unnecessary CSS.

Specificity

No more specificity issues due to the atomic output. Even extended components (via the as prop) won't contain duplicate CSS properties.

Polymorphic as prop

Included in Components returned from the styled function

Easy overrides

Stitches provides a css prop, which allows style overrides to be applied in the consumption layer.