Petticoat for shadcn/ui

Petticoat is a shadcn/ui theme built around a deep yellow primary color (#504320) with deep blue accents (#202d50). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#504320) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#151005black
#fbfaf9snow
Card
#fcfcfcsnow
#080602black
Card foreground
#110d04black
#fdfdfcwhite
Popover
#ffffffwhite
#040301black
Popover foreground
#151005black
#fbfaf9snow
Primary
#504320darkolivegreen
#504320darkolivegreen
Primary foreground
#e5dabdwheat
#e5dabdwheat
Secondary
#202d50darkslategray
#202d50darkslategray
Secondary foreground
#bdc8e5lightsteelblue
#bdc8e5lightsteelblue
Muted
#e5e8f0lavender
#0f121ablack
Muted foreground
#3d4048darkslategray
#b7bac2silver
Accent
#202d50darkslategray
#202d50darkslategray
Accent foreground
#bdc8e5lightsteelblue
#bdc8e5lightsteelblue
Destructive
#8d1607darkred
#f54932tomato
Destructive foreground
#fccfc9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#504320darkolivegreen
#504320darkolivegreen

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.94:1AAA
Text on card18.97:1AAA
Primary button6.93:1AA
Secondary button8.09:1AAA
Muted text8.45:1AAA
Accent8.09:1AAA
Destructive6.60:1AA
Dark mode
Text on background19.75:1AAA
Text on card19.84:1AAA
Primary button6.93:1AA
Secondary button8.09:1AAA
Muted text9.66:1AAA
Accent8.09:1AAA
Destructive3.55:1AA Large

CSS variables

Paste this into your globals.css to use Petticoat in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.176 0.024 91.462);
  --muted: oklch(0.931 0.012 270.014);
  --muted-foreground: oklch(0.371 0.014 269.777);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.176 0.024 91.462);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.161 0.021 92.785);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.389 0.055 89.762);
  --primary-foreground: oklch(0.89 0.04 90.386);
  --secondary: oklch(0.304 0.066 267.33);
  --secondary-foreground: oklch(0.834 0.042 269.634);
  --accent: oklch(0.304 0.066 267.33);
  --accent-foreground: oklch(0.834 0.042 269.634);
  --destructive: oklch(0.416 0.155 31.019);
  --destructive-foreground: oklch(0.893 0.052 26.936);
  --ring: oklch(0.389 0.055 89.762);
  --chart-1: oklch(0.389 0.055 89.762);
  --chart-2: oklch(0.304 0.066 267.33);
  --chart-3: oklch(0.304 0.066 267.33);
  --chart-4: oklch(0.33 0.074 267.241);
  --chart-5: oklch(0.393 0.058 89.594);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.012 95.393);
  --foreground: oklch(0.986 0.001 90.13);
  --muted: oklch(0.182 0.018 269.052);
  --muted-foreground: oklch(0.79 0.011 269.998);
  --popover: oklch(0.099 0.012 95.393);
  --popover-foreground: oklch(0.986 0.001 90.13);
  --card: oklch(0.125 0.015 95.393);
  --card-foreground: oklch(0.993 0.001 90.125);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.389 0.055 89.762);
  --primary-foreground: oklch(0.89 0.04 90.386);
  --secondary: oklch(0.304 0.066 267.33);
  --secondary-foreground: oklch(0.834 0.042 269.634);
  --accent: oklch(0.304 0.066 267.33);
  --accent-foreground: oklch(0.834 0.042 269.634);
  --destructive: oklch(0.65 0.212 30.863);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.389 0.055 89.762);
  --chart-1: oklch(0.389 0.055 89.762);
  --chart-2: oklch(0.304 0.066 267.33);
  --chart-3: oklch(0.304 0.066 267.33);
  --chart-4: oklch(0.33 0.074 267.241);
  --chart-5: oklch(0.393 0.058 89.594);
}