Pad for shadcn/ui

Pad is a shadcn/ui theme built around a muted deep teal primary color (#28483b) with muted deep orange accents (#483b28). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#28483b) on a teal-tinted background (#04100b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04100bblack
Foreground
#04150eblack
#fbfdfdwhite
Card
#ffffffwhite
#04100bblack
Card foreground
#04150eblack
#fbfdfdwhite
Popover
#ffffffwhite
#04100bblack
Popover foreground
#04150eblack
#fbfdfdwhite
Primary
#28483bdarkslategray
#28483bdarkslategray
Primary foreground
#c4ded3lightgrey
#c4ded3lightgrey
Secondary
#3b2848darkslategray
#3b2848darkslategray
Secondary foreground
#d3c4dethistle
#d3c4dethistle
Muted
#dcd6e0gainsboro
#251f29darkslategray
Muted foreground
#413649darkslategray
#c1b6c9silver
Accent
#483b28darkolivegreen
#483b28darkolivegreen
Accent foreground
#ded3c4lightgrey
#ded3c4lightgrey
Destructive
#652906saddlebrown
#f26818chocolate
Destructive foreground
#fac3a3navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#28483bdarkslategray
#28483bdarkslategray

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button7.05:1AAA
Secondary button8.04:1AAA
Muted text7.99:1AAA
Accent7.36:1AAA
Destructive7.15:1AAA
Dark mode
Text on background18.97:1AAA
Text on card18.97:1AAA
Primary button7.05:1AAA
Secondary button8.04:1AAA
Muted text8.30:1AAA
Accent7.36:1AAA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.178 0.028 165.359);
  --muted: oklch(0.885 0.015 311.588);
  --muted-foreground: oklch(0.353 0.036 310.91);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.178 0.028 165.359);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.178 0.028 165.359);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.373 0.045 165.518);
  --primary-foreground: oklch(0.879 0.032 168.598);
  --secondary: oklch(0.314 0.061 310.074);
  --secondary-foreground: oklch(0.841 0.04 311.34);
  --accent: oklch(0.361 0.036 75.555);
  --accent-foreground: oklch(0.873 0.024 76.496);
  --destructive: oklch(0.362 0.097 45.301);
  --destructive-foreground: oklch(0.858 0.076 51.45);
  --ring: oklch(0.373 0.045 165.518);
  --chart-1: oklch(0.373 0.045 165.518);
  --chart-2: oklch(0.314 0.061 310.074);
  --chart-3: oklch(0.361 0.036 75.555);
  --chart-4: oklch(0.34 0.068 310.027);
  --chart-5: oklch(0.377 0.049 165.092);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.021 167.348);
  --foreground: oklch(0.994 0.002 169.605);
  --muted: oklch(0.249 0.02 311.066);
  --muted-foreground: oklch(0.79 0.029 311.426);
  --popover: oklch(0.159 0.021 167.348);
  --popover-foreground: oklch(0.994 0.002 169.605);
  --card: oklch(0.159 0.021 167.348);
  --card-foreground: oklch(0.994 0.002 169.605);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.373 0.045 165.518);
  --primary-foreground: oklch(0.879 0.032 168.598);
  --secondary: oklch(0.314 0.061 310.074);
  --secondary-foreground: oklch(0.841 0.04 311.34);
  --accent: oklch(0.361 0.036 75.555);
  --accent-foreground: oklch(0.873 0.024 76.496);
  --destructive: oklch(0.678 0.188 44.339);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.373 0.045 165.518);
  --chart-1: oklch(0.373 0.045 165.518);
  --chart-2: oklch(0.314 0.061 310.074);
  --chart-3: oklch(0.361 0.036 75.555);
  --chart-4: oklch(0.34 0.068 310.027);
  --chart-5: oklch(0.377 0.049 165.092);
}