Vapid for shadcn/ui

Vapid is a shadcn/ui theme built around a deep green primary color (#35561a) with muted light green accents (#cbd4c4). The light mode uses a neutral background (#fafdf7). Dark mode keeps the deep green primary (#35561a) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#020401black
Foreground
#000000black
#fafaf9snow
Card
#fafdf7mintcream
#020401black
Card foreground
#000000black
#fafaf9snow
Popover
#fafdf7mintcream
#020401black
Popover foreground
#000000black
#fafaf9snow
Primary
#35561adarkolivegreen
#35561adarkolivegreen
Primary foreground
#cfe9b9lightgrey
#cfe9b9lightgrey
Secondary
#cbd4c4lightgrey
#1c1c1cblack
Secondary foreground
#323b2bdarkslategray
#b5b6b4silver
Muted
#d7e8c9gainsboro
#253617darkslategray
Muted foreground
#636561dimgray
#9b9e9adarkgray
Accent
#cbd4c4lightgrey
#1c1c1cblack
Accent foreground
#323b2bdarkslategray
#b5b6b4silver
Destructive
#700e01maroon
#f41d01red
Destructive foreground
#ffaea4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#35561adarkolivegreen
#35561adarkolivegreen

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button6.42:1AA
Secondary button7.66:1AAA
Muted text4.57:1AA
Accent7.66:1AAA
Destructive6.78:1AA
Dark mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.42:1AA
Secondary button8.35:1AAA
Muted text4.81:1AA
Accent8.35:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.009 130.521);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.91 0.045 130.909);
  --muted-foreground: oklch(0.505 0.007 130.564);
  --popover: oklch(0.99 0.009 130.521);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.009 130.521);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.413 0.095 133.516);
  --primary-foreground: oklch(0.903 0.071 131.207);
  --secondary: oklch(0.859 0.024 130.705);
  --secondary-foreground: oklch(0.339 0.03 131.322);
  --accent: oklch(0.859 0.024 130.705);
  --accent-foreground: oklch(0.339 0.03 131.322);
  --destructive: oklch(0.35 0.133 31.706);
  --destructive-foreground: oklch(0.826 0.096 27.642);
  --ring: oklch(0.413 0.095 133.516);
  --chart-1: oklch(0.413 0.095 133.516);
  --chart-2: oklch(0.859 0.024 130.705);
  --chart-3: oklch(0.859 0.024 130.705);
  --chart-4: oklch(0.88 0.02 130.658);
  --chart-5: oklch(0.418 0.099 133.705);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.012 129.434);
  --foreground: oklch(0.986 0.002 130.453);
  --muted: oklch(0.308 0.055 132.516);
  --muted-foreground: oklch(0.695 0.006 130.522);
  --popover: oklch(0.098 0.012 129.434);
  --popover-foreground: oklch(0.986 0.002 130.453);
  --card: oklch(0.098 0.012 129.434);
  --card-foreground: oklch(0.986 0.002 130.453);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.413 0.095 133.516);
  --primary-foreground: oklch(0.903 0.071 131.207);
  --secondary: oklch(0.227 0.001 130.486);
  --secondary-foreground: oklch(0.775 0.002 130.465);
  --accent: oklch(0.227 0.001 130.486);
  --accent-foreground: oklch(0.775 0.002 130.465);
  --destructive: oklch(0.614 0.242 30.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.413 0.095 133.516);
  --chart-1: oklch(0.413 0.095 133.516);
  --chart-2: oklch(0.227 0.001 130.486);
  --chart-3: oklch(0.227 0.001 130.486);
  --chart-4: oklch(0.26 0.001 130.49);
  --chart-5: oklch(0.418 0.099 133.705);
}