Skip to Content
Livery is in early development. Star us on GitHub!
How to Use These Docs

How to Use These Docs

Livery usage falls into four patterns based on two questions:

Static themes
Dynamic themes
SSR
SSR + Static
SSR + Dynamic
CSR
CSR + Static
CSR + Dynamic

The Two Dimensions

Do you have a server? (SSR vs CSR)

SSRCSR
Next.js, Remix, AstroVite, Create React App, vanilla JS
Server injects the correct themeClient applies theme after load

Are themes known at build time? (Static vs Dynamic)

StaticDynamic
Bundled in your codeFetched from API, database, or CMS
Light/dark mode, branded variantsMulti-tenant, user customization
@livery/core only@livery/core + @livery/react

Finding the Right Guide

Your situationPatternGuide
Next.js + light/dark modeSSR + StaticStatic Themes in Next.js
Next.js + per-customer themesSSR + DynamicMulti-Tenant
React SPA + light/dark modeCSR + StaticStatic Themes in React
React SPA + API themesCSR + DynamicDynamic Themes in React

Throughout the Docs

Each guide shows this matrix with the current pattern highlighted, so you always know which quadrant you’re in.

Last updated on