GC 1 for shadcn/ui

GC 1 is a shadcn/ui theme built around a vivid deep green primary color (#0e8a0e) with near-white accents (#f8f8f8). The light mode uses a neutral background (#f8f8f8). Dark mode switches to a violet primary (#7b4aa5) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#f8f8f8whitesmoke
#050307black
Foreground
#202020black
#fcfcfdwhite
Card
#ffffffwhite
#050307black
Card foreground
#202020black
#fcfcfdwhite
Popover
#ffffffwhite
#050307black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#0e8a0egreen
#7b4aa5rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ffffffwhite
#75a54aolivedrab
Secondary foreground
#11190bblack
#11190bblack
Muted
#dee1dbgainsboro
#21241eblack
Muted foreground
#575855dimgray
#a8aaa7darkgray
Accent
#f8f8f8whitesmoke
#75a54aolivedrab
Accent foreground
#11190bblack
#11190bblack
Destructive
#a62323brown
#ea1506red
Destructive foreground
#feccc8pink
#ffffffwhite
Border
#edebeflavender
#211e24black
Input
#edebeflavender
#211e24black
Ring
#0e8a0egreen
#7b4aa5rebeccapurple

Contrast

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

Light mode
Text on background15.34:1AAA
Text on card16.29:1AAA
Primary button4.50:1AA
Secondary button17.98:1AAA
Muted text5.41:1AA
Accent16.93:1AAA
Destructive5.08:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button6.22:1AA
Secondary button6.22:1AA
Muted text6.70:1AA
Accent6.22:1AA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0 173.29);
  --foreground: oklch(0.244 0 169.695);
  --muted: oklch(0.905 0.009 129.881);
  --muted-foreground: oklch(0.459 0.006 129.916);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.244 0 169.695);
  --border: oklch(0.944 0.005 309.731);
  --input: oklch(0.944 0.005 309.731);
  --primary: oklch(0.55 0.181 142.613);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.2 0.028 131.362);
  --accent: oklch(0.979 0 173.29);
  --accent-foreground: oklch(0.2 0.028 131.362);
  --destructive: oklch(0.475 0.167 26.383);
  --destructive-foreground: oklch(0.887 0.057 23.04);
  --ring: oklch(0.55 0.181 142.613);
  --chart-1: oklch(0.758 0.215 134.514);
  --chart-2: oklch(0.603 0.205 142.495);
  --chart-3: oklch(0.825 0.161 77.369);
  --chart-4: oklch(0.738 0.131 240.061);
  --chart-5: oklch(0.752 0.111 300.699);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.014 310.83);
  --foreground: oklch(0.992 0.001 309.776);
  --muted: oklch(0.255 0.012 130.26);
  --muted-foreground: oklch(0.736 0.005 129.857);
  --popover: oklch(0.107 0.014 310.83);
  --popover-foreground: oklch(0.992 0.001 309.776);
  --card: oklch(0.107 0.014 310.83);
  --card-foreground: oklch(0.992 0.001 309.776);
  --border: oklch(0.241 0.013 309.233);
  --input: oklch(0.241 0.013 309.233);
  --primary: oklch(0.508 0.145 306.562);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.668 0.133 132.331);
  --secondary-foreground: oklch(0.2 0.028 131.362);
  --accent: oklch(0.668 0.133 132.331);
  --accent-foreground: oklch(0.2 0.028 131.362);
  --destructive: oklch(0.593 0.236 29.763);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.508 0.145 306.562);
  --chart-1: oklch(0.508 0.145 306.562);
  --chart-2: oklch(0.668 0.133 132.331);
  --chart-3: oklch(0.668 0.133 132.331);
  --chart-4: oklch(0.699 0.14 132.348);
  --chart-5: oklch(0.505 0.155 306.224);
}