DocsCustomization
Colors
Tapas has no palette of its own. Every section reads the same handful of shadcn variables, grouped below by job. Change one in globals.css and every section follows.
Swatches show shadcn's neutral defaults in light and dark. “Sections” counts how many of the 60 section folders use the variable directly; shadcn Button and Card add more. Want to try values? Open the theme builder.
Accent
Your brand color. Main buttons, badges, highlights and focus rings.
| Variable | Light | Dark | Used for | Sections |
|---|---|---|---|---|
--primaryMain buttons, active tabs, highlighted plan, links that need weight. | light: oklch(0.205 0 0) | dark: oklch(0.922 0 0) | Main buttons, active tabs, highlighted plan, links that need weight. | via shadcn |
--primary-Text and icons on primary. | light: oklch(0.985 0 0) | dark: oklch(0.205 0 0) | Text and icons on primary. | via shadcn |
--ringFocus outline on buttons, inputs and links. | light: oklch(0.708 0 0) | dark: oklch(0.556 0 0) | Focus outline on buttons, inputs and links. | via shadcn |
Surfaces
The page and the boxes on it, from back to front.
| Variable | Light | Dark | Used for | Sections |
|---|---|---|---|---|
--backgroundThe page behind every section. | light: oklch(1 0 0) | dark: oklch(0.145 0 0) | The page behind every section. | via shadcn |
--cardCards, pricing tiers, testimonial boxes, framed previews. | light: oklch(1 0 0) | dark: oklch(0.205 0 0) | Cards, pricing tiers, testimonial boxes, framed previews. | via shadcn |
--mutedQuiet fills: badges, table headers, skeleton bars, hover states. | light: oklch(0.97 0 0) | dark: oklch(0.269 0 0) | Quiet fills: badges, table headers, skeleton bars, hover states. | via shadcn |
--secondarySecond buttons and toggles beside a primary one. | light: oklch(0.97 0 0) | dark: oklch(0.269 0 0) | Second buttons and toggles beside a primary one. | via shadcn |
--accentHover and selected fill on menu items and ghost buttons. | light: oklch(0.97 0 0) | dark: oklch(0.269 0 0) | Hover and selected fill on menu items and ghost buttons. | via shadcn |
--popoverMenus and floating panels. | light: oklch(1 0 0) | dark: oklch(0.205 0 0) | Menus and floating panels. | via shadcn |
Text
Two levels are enough: what you read, and what supports it.
| Variable | Light | Dark | Used for | Sections |
|---|---|---|---|---|
--foregroundHeadings and body copy. | light: oklch(0.145 0 0) | dark: oklch(0.985 0 0) | Headings and body copy. | via shadcn |
--muted-Descriptions, captions, labels, small print. | light: oklch(0.5 0 0) | dark: oklch(0.75 0 0) | Descriptions, captions, labels, small print. | via shadcn |
--card-Text inside cards. | light: oklch(0.145 0 0) | dark: oklch(0.985 0 0) | Text inside cards. | via shadcn |
--secondary-Text on secondary buttons. | light: oklch(0.205 0 0) | dark: oklch(0.985 0 0) | Text on secondary buttons. | via shadcn |
--accent-Text on accent hover fills. | light: oklch(0.205 0 0) | dark: oklch(0.985 0 0) | Text on accent hover fills. | via shadcn |
Lines
Borders and dividers. Usually low contrast on purpose.
| Variable | Light | Dark | Used for | Sections |
|---|---|---|---|---|
--borderCard outlines, dividers, table rules. | light: oklch(0.922 0 0) | dark: oklch(1 0 0 / 10%) | Card outlines, dividers, table rules. | via shadcn |
--inputForm field borders. | light: oklch(0.922 0 0) | dark: oklch(1 0 0 / 15%) | Form field borders. | via shadcn |
Status
Meaning, not decoration. Pair with an icon or text, never color alone.
| Variable | Light | Dark | Used for | Sections |
|---|---|---|---|---|
--destructiveErrors, excluded plan features, delete actions. | light: oklch(0.577 0.235 27.3) | dark: oklch(0.704 0.187 22.2) | Errors, excluded plan features, delete actions. | via shadcn |
--successForm success messages, positive trends, included features. | light: oklch(0.527 0.144 150.1) | dark: oklch(0.792 0.209 151.7) | Form success messages, positive trends, included features. | via shadcn |
Radius
One value, --radius, sets every corner. Tailwind's rounded-sm to rounded-xl are derived from it, so cards, buttons and inputs stay in proportion.
Change them
Edit the values in the :root and .dark blocks of your globals.css. OKLCH keeps lightness steady when you change hue, so a new accent keeps the same contrast. Keep text pairs at 4.5:1 or more; the theme builder checks this for you.
:root {
--primary: oklch(0.546 0.245 262.881);
--primary-foreground: oklch(0.97 0.014 254.604);
--radius: 0.75rem;
}
.dark {
--primary: oklch(0.707 0.165 254.624);
--primary-foreground: oklch(0.17 0.02 262);
}To theme one section differently, set the variables on a wrapper: <div style={{ "--primary": "oklch(0.6 0.2 25)" }}>. Everything inside follows.