Mine for shadcn/ui

Mine is a shadcn/ui theme built around a muted light green primary color (#d0e2d4) with muted light purple accents (#e2d0dd). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted light green primary (#d0e2d4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#031206black
#fcfdfcwhite
Card
#f7fcf9mintcream
#030303black
Card foreground
#020d05black
#ffffffwhite
Popover
#fbfefcwhite
#000000black
Popover foreground
#031206black
#fcfdfcwhite
Primary
#d0e2d4lightgrey
#d0e2d4lightgrey
Primary foreground
#314e38darkslategray
#314e38darkslategray
Secondary
#e2d0ddgainsboro
#e2d0ddgainsboro
Secondary foreground
#4e3148darkslategray
#4e3148darkslategray
Muted
#e5dce3gainsboro
#231a21black
Muted foreground
#5c4757dimgray
#b8a3b3darkgray
Accent
#e2d0ddgainsboro
#e2d0ddgainsboro
Accent foreground
#4e3148darkslategray
#4e3148darkslategray
Destructive
#e64100orangered
#fa4700orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0e2d4lightgrey
#d0e2d4lightgrey

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card19.11:1AAA
Primary button6.78:1AA
Secondary button7.69:1AAA
Muted text6.26:1AA
Accent7.69:1AAA
Destructive4.11:1AA Large
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button6.78:1AA
Secondary button7.69:1AAA
Muted text7.19:1AAA
Accent7.69:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 153.182);
  --foreground: oklch(0.162 0.035 151.195);
  --muted: oklch(0.903 0.015 333.501);
  --muted-foreground: oklch(0.426 0.038 334.624);
  --popover: oklch(0.994 0.004 153.182);
  --popover-foreground: oklch(0.162 0.035 151.195);
  --card: oklch(0.987 0.007 153.123);
  --card-foreground: oklch(0.144 0.03 152.006);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.894 0.026 152.755);
  --primary-foreground: oklch(0.395 0.052 150.834);
  --secondary: oklch(0.876 0.026 333.722);
  --secondary-foreground: oklch(0.357 0.055 335.551);
  --accent: oklch(0.876 0.026 333.722);
  --accent-foreground: oklch(0.357 0.055 335.551);
  --destructive: oklch(0.613 0.209 36.226);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.026 152.755);
  --chart-1: oklch(0.894 0.026 152.755);
  --chart-2: oklch(0.876 0.026 333.722);
  --chart-3: oklch(0.876 0.026 333.722);
  --chart-4: oklch(0.901 0.021 333.614);
  --chart-5: oklch(0.896 0.03 152.691);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 153.213);
  --muted: oklch(0.232 0.021 334.609);
  --muted-foreground: oklch(0.738 0.033 333.954);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 153.213);
  --card: oklch(0.092 0 180);
  --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.894 0.026 152.755);
  --primary-foreground: oklch(0.395 0.052 150.834);
  --secondary: oklch(0.876 0.026 333.722);
  --secondary-foreground: oklch(0.357 0.055 335.551);
  --accent: oklch(0.876 0.026 333.722);
  --accent-foreground: oklch(0.357 0.055 335.551);
  --destructive: oklch(0.653 0.223 36.057);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.026 152.755);
  --chart-1: oklch(0.894 0.026 152.755);
  --chart-2: oklch(0.876 0.026 333.722);
  --chart-3: oklch(0.876 0.026 333.722);
  --chart-4: oklch(0.901 0.021 333.614);
  --chart-5: oklch(0.896 0.03 152.691);
}