Minor for shadcn/ui

Minor is a shadcn/ui theme built around a green primary color (#aacfa5) with green accents (#a5cfb5). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the green primary (#aacfa5) on a green-tinted background (#050b04).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#050b04black
Foreground
#061504black
#fcfdfcwhite
Card
#f4fbf3whitesmoke
#070f06black
Card foreground
#051103black
#ffffffwhite
Popover
#f4fbf3whitesmoke
#070f06black
Popover foreground
#051103black
#ffffffwhite
Primary
#aacfa5silver
#aacfa5silver
Primary foreground
#1a2b17black
#1a2b17black
Secondary
#bfcfa5silver
#bfcfa5silver
Secondary foreground
#232b17black
#232b17black
Muted
#e2e7dagainsboro
#202518black
Muted foreground
#4a523ddarkolivegreen
#bac2adsilver
Accent
#a5cfb5silver
#a5cfb5silver
Accent foreground
#172b1fblack
#172b1fblack
Destructive
#970a07darkred
#f63a37tomato
Destructive foreground
#fdd4d3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aacfa5silver
#aacfa5silver

Contrast

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

Light mode
Text on background18.20:1AAA
Text on card18.37:1AAA
Primary button8.68:1AAA
Secondary button8.86:1AAA
Muted text6.47:1AA
Accent8.69:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.48:1AAA
Primary button8.68:1AAA
Secondary button8.86:1AAA
Muted text8.53:1AAA
Accent8.69:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 142.083);
  --foreground: oklch(0.178 0.042 140.553);
  --muted: oklch(0.92 0.017 123.916);
  --muted-foreground: oklch(0.425 0.036 124.929);
  --popover: oklch(0.982 0.013 142.068);
  --popover-foreground: oklch(0.161 0.037 140.301);
  --card: oklch(0.982 0.013 142.068);
  --card-foreground: oklch(0.161 0.037 140.301);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.816 0.069 141.82);
  --primary-foreground: oklch(0.268 0.043 141.576);
  --secondary: oklch(0.831 0.058 124.711);
  --secondary-foreground: oklch(0.276 0.036 125.746);
  --accent: oklch(0.817 0.056 157.825);
  --accent-foreground: oklch(0.268 0.035 156.11);
  --destructive: oklch(0.429 0.17 28.921);
  --destructive-foreground: oklch(0.904 0.046 19.189);
  --ring: oklch(0.816 0.069 141.82);
  --chart-1: oklch(0.816 0.069 141.82);
  --chart-2: oklch(0.831 0.058 124.711);
  --chart-3: oklch(0.817 0.056 157.825);
  --chart-4: oklch(0.85 0.052 124.563);
  --chart-5: oklch(0.819 0.076 141.794);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.021 140.768);
  --foreground: oklch(0.993 0.002 142.107);
  --muted: oklch(0.254 0.023 125.044);
  --muted-foreground: oklch(0.803 0.031 124.215);
  --popover: oklch(0.155 0.024 140.949);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.024 140.949);
  --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.816 0.069 141.82);
  --primary-foreground: oklch(0.268 0.043 141.576);
  --secondary: oklch(0.831 0.058 124.711);
  --secondary-foreground: oklch(0.276 0.036 125.746);
  --accent: oklch(0.817 0.056 157.825);
  --accent-foreground: oklch(0.268 0.035 156.11);
  --destructive: oklch(0.638 0.223 26.986);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.816 0.069 141.82);
  --chart-1: oklch(0.816 0.069 141.82);
  --chart-2: oklch(0.831 0.058 124.711);
  --chart-3: oklch(0.817 0.056 157.825);
  --chart-4: oklch(0.85 0.052 124.563);
  --chart-5: oklch(0.819 0.076 141.794);
}