Vapid for shadcn/ui

Vapid is a shadcn/ui theme built around a muted yellow primary color (#8e7b52) with muted green accents (#838e52). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted yellow primary (#8e7b52) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbf7snow
#000000black
Foreground
#110d03black
#ffffffwhite
Card
#fdfbf7snow
#000000black
Card foreground
#110d03black
#ffffffwhite
Popover
#fdfbf7snow
#000000black
Popover foreground
#110d03black
#ffffffwhite
Primary
#8e7b52dimgray
#8e7b52dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8e5d52sienna
#8e5d52sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ece6e4linen
#1b1413black
Muted foreground
#6a6362dimgray
#9d9695darkgray
Accent
#838e52gray
#838e52gray
Accent foreground
#000000black
#000000black
Destructive
#800b00maroon
#eb1400red
Destructive foreground
#ffb9b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8e7b52dimgray
#8e7b52dimgray

Contrast

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

Light mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button4.09:1AA Large
Secondary button5.45:1AA
Muted text4.74:1AA
Accent5.99:1AA
Destructive6.56:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.09:1AA Large
Secondary button5.45:1AA
Muted text6.23:1AA
Accent5.99:1AA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 86.028);
  --foreground: oklch(0.16 0.022 89.101);
  --muted: oklch(0.928 0.007 32.661);
  --muted-foreground: oklch(0.507 0.009 32.67);
  --popover: oklch(0.988 0.006 86.028);
  --popover-foreground: oklch(0.16 0.022 89.101);
  --card: oklch(0.988 0.006 86.028);
  --card-foreground: oklch(0.16 0.022 89.101);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.592 0.062 85.695);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.529 0.068 33.234);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.625 0.084 117.414);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.381 0.149 30.758);
  --destructive-foreground: oklch(0.849 0.082 24.794);
  --ring: oklch(0.592 0.062 85.695);
  --chart-1: oklch(0.592 0.062 85.695);
  --chart-2: oklch(0.529 0.068 33.234);
  --chart-3: oklch(0.625 0.084 117.414);
  --chart-4: oklch(0.555 0.072 33.241);
  --chart-5: oklch(0.597 0.069 85.545);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.201 0.011 32.776);
  --muted-foreground: oklch(0.68 0.008 32.664);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.592 0.062 85.695);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.529 0.068 33.234);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.625 0.084 117.414);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.594 0.238 30.058);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.592 0.062 85.695);
  --chart-1: oklch(0.592 0.062 85.695);
  --chart-2: oklch(0.529 0.068 33.234);
  --chart-3: oklch(0.625 0.084 117.414);
  --chart-4: oklch(0.555 0.072 33.241);
  --chart-5: oklch(0.597 0.069 85.545);
}