Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

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.

VariableLightDarkSections
--primaryMain buttons, active tabs, highlighted plan, links that need weight.light: oklch(0.205 0 0)dark: oklch(0.922 0 0)via shadcn
--primary-foregroundText and icons on primary.light: oklch(0.985 0 0)dark: oklch(0.205 0 0)via shadcn
--ringFocus outline on buttons, inputs and links.light: oklch(0.708 0 0)dark: oklch(0.556 0 0)via shadcn

Surfaces

The page and the boxes on it, from back to front.

VariableLightDarkSections
--backgroundThe page behind every section.light: oklch(1 0 0)dark: oklch(0.145 0 0)via shadcn
--cardCards, pricing tiers, testimonial boxes, framed previews.light: oklch(1 0 0)dark: oklch(0.205 0 0)via shadcn
--mutedQuiet fills: badges, table headers, skeleton bars, hover states.light: oklch(0.97 0 0)dark: oklch(0.269 0 0)via shadcn
--secondarySecond buttons and toggles beside a primary one.light: oklch(0.97 0 0)dark: oklch(0.269 0 0)via shadcn
--accentHover and selected fill on menu items and ghost buttons.light: oklch(0.97 0 0)dark: oklch(0.269 0 0)via shadcn
--popoverMenus and floating panels.light: oklch(1 0 0)dark: oklch(0.205 0 0)via shadcn

Text

Two levels are enough: what you read, and what supports it.

VariableLightDarkSections
--foregroundHeadings and body copy.light: oklch(0.145 0 0)dark: oklch(0.985 0 0)via shadcn
--muted-foregroundDescriptions, captions, labels, small print.light: oklch(0.5 0 0)dark: oklch(0.75 0 0)via shadcn
--card-foregroundText inside cards.light: oklch(0.145 0 0)dark: oklch(0.985 0 0)via shadcn
--secondary-foregroundText on secondary buttons.light: oklch(0.205 0 0)dark: oklch(0.985 0 0)via shadcn
--accent-foregroundText on accent hover fills.light: oklch(0.205 0 0)dark: oklch(0.985 0 0)via shadcn

Lines

Borders and dividers. Usually low contrast on purpose.

VariableLightDarkSections
--borderCard outlines, dividers, table rules.light: oklch(0.922 0 0)dark: oklch(1 0 0 / 10%)via shadcn
--inputForm field borders.light: oklch(0.922 0 0)dark: oklch(1 0 0 / 15%)via shadcn

Status

Meaning, not decoration. Pair with an icon or text, never color alone.

VariableLightDarkSections
--destructiveErrors, excluded plan features, delete actions.light: oklch(0.577 0.235 27.3)dark: oklch(0.704 0.187 22.2)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)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.

0rem
0.375rem
0.625rem
1rem

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.

app/globals.css
: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.