Vegetable for shadcn/ui

Vegetable is a shadcn/ui theme built around a near-white primary color (#fcfdfd) with near-white accents (#fdfdfc). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the near-white primary (#fcfdfd) on a neutral background (#020304).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#020304black
Foreground
#020708black
#f5f8fawhitesmoke
Card
#f4f9fbghostwhite
#030607black
Card foreground
#010304black
#f8fbfcghostwhite
Popover
#f8fbfcghostwhite
#020304black
Popover foreground
#020708black
#f5f8fawhitesmoke
Primary
#fcfdfdwhite
#fcfdfdwhite
Primary foreground
#1f3842darkslategray
#1f3842darkslategray
Secondary
#fdfcfdwhite
#fdfcfdwhite
Secondary foreground
#883f73rebeccapurple
#883f73rebeccapurple
Muted
#f7eef4whitesmoke
#11080fblack
Muted foreground
#5b4d57dimgray
#b2a4aedarkgray
Accent
#fdfdfcwhite
#fdfdfcwhite
Accent foreground
#38421fdarkslategray
#38421fdarkslategray
Destructive
#cc2714firebrick
#e9301corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfdfdwhite
#fcfdfdwhite

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.45:1AAA
Primary button12.08:1AAA
Secondary button6.81:1AA
Muted text6.97:1AA
Accent10.50:1AAA
Destructive5.42:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.55:1AAA
Primary button12.08:1AAA
Secondary button6.81:1AA
Muted text8.26:1AAA
Accent10.50:1AAA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 223.17);
  --foreground: oklch(0.119 0.014 217.093);
  --muted: oklch(0.957 0.013 335.445);
  --muted-foreground: oklch(0.439 0.023 336.131);
  --popover: oklch(0.986 0.004 223.17);
  --popover-foreground: oklch(0.119 0.014 217.093);
  --card: oklch(0.978 0.006 223.19);
  --card-foreground: oklch(0.094 0.011 217.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.993 0.002 223.146);
  --primary-foreground: oklch(0.325 0.036 225.374);
  --secondary: oklch(0.991 0.003 335.24);
  --secondary-foreground: oklch(0.48 0.121 339.426);
  --accent: oklch(0.994 0.003 119.348);
  --accent-foreground: oklch(0.362 0.058 122.323);
  --destructive: oklch(0.547 0.202 30.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.993 0.002 223.146);
  --chart-1: oklch(0.993 0.002 223.146);
  --chart-2: oklch(0.991 0.003 335.24);
  --chart-3: oklch(0.994 0.003 119.348);
  --chart-4: oklch(1.017 0.005 155.096);
  --chart-5: oklch(0.993 0.002 223.148);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.007 219.242);
  --foreground: oklch(0.978 0.004 223.175);
  --muted: oklch(0.152 0.022 337.433);
  --muted-foreground: oklch(0.733 0.021 335.693);
  --popover: oklch(0.093 0.007 219.242);
  --popover-foreground: oklch(0.978 0.004 223.175);
  --card: oklch(0.117 0.008 219.242);
  --card-foreground: oklch(0.985 0.003 223.16);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.993 0.002 223.146);
  --primary-foreground: oklch(0.325 0.036 225.374);
  --secondary: oklch(0.991 0.003 335.24);
  --secondary-foreground: oklch(0.48 0.121 339.426);
  --accent: oklch(0.994 0.003 119.348);
  --accent-foreground: oklch(0.362 0.058 122.323);
  --destructive: oklch(0.605 0.221 30.51);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.993 0.002 223.146);
  --chart-1: oklch(0.993 0.002 223.146);
  --chart-2: oklch(0.991 0.003 335.24);
  --chart-3: oklch(0.994 0.003 119.348);
  --chart-4: oklch(1.017 0.005 155.096);
  --chart-5: oklch(0.993 0.002 223.148);
}