High for shadcn/ui

High is a shadcn/ui theme built around a green primary color (#568d16) with violet accents (#4e168d). The light mode uses a neutral background (#fafdf7). Dark mode keeps the green primary (#568d16) on a green-tinted background (#0a0d07).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#0a0d07black
Foreground
#000000black
#fdfdfcwhite
Card
#f8fcf3whitesmoke
#0d1109black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcf3whitesmoke
#0d1109black
Popover foreground
#000000black
#ffffffwhite
Primary
#568d16olivedrab
#568d16olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4e168dindigo
#4e168dindigo
Secondary foreground
#eadcf9lavender
#eadcf9lavender
Muted
#f2eff6whitesmoke
#0d0910black
Muted foreground
#655874dimgray
#988ba7darkgray
Accent
#4e168dindigo
#4e168dindigo
Accent foreground
#eadcf9lavender
#eadcf9lavender
Destructive
#75100amaroon
#ee433atomato
Destructive foreground
#f9bcb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#568d16olivedrab
#568d16olivedrab

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.17:1AAA
Primary button4.02:1AA Large
Secondary button8.84:1AAA
Muted text5.75:1AA
Accent8.84:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.18:1AAA
Text on card19.11:1AAA
Primary button4.02:1AA Large
Secondary button8.84:1AAA
Muted text6.19:1AA
Accent8.84:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 127.217);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.01 306.982);
  --muted-foreground: oklch(0.483 0.048 305.897);
  --popover: oklch(0.985 0.013 127.27);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.013 127.27);
  --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.583 0.154 132.55);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.367 0.176 297.747);
  --secondary-foreground: oklch(0.914 0.043 306.542);
  --accent: oklch(0.367 0.176 297.747);
  --accent-foreground: oklch(0.914 0.043 306.542);
  --destructive: oklch(0.363 0.136 29.044);
  --destructive-foreground: oklch(0.849 0.071 22.113);
  --ring: oklch(0.583 0.154 132.55);
  --chart-1: oklch(0.583 0.154 132.55);
  --chart-2: oklch(0.367 0.176 297.747);
  --chart-3: oklch(0.367 0.176 297.747);
  --chart-4: oklch(0.391 0.189 297.566);
  --chart-5: oklch(0.59 0.158 132.779);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.014 127.49);
  --foreground: oklch(0.994 0.002 127.14);
  --muted: oklch(0.149 0.016 305.845);
  --muted-foreground: oklch(0.657 0.044 306.287);
  --popover: oklch(0.169 0.016 128.299);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.169 0.016 128.299);
  --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.583 0.154 132.55);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.367 0.176 297.747);
  --secondary-foreground: oklch(0.914 0.043 306.542);
  --accent: oklch(0.367 0.176 297.747);
  --accent-foreground: oklch(0.914 0.043 306.542);
  --destructive: oklch(0.633 0.209 27.831);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.583 0.154 132.55);
  --chart-1: oklch(0.583 0.154 132.55);
  --chart-2: oklch(0.367 0.176 297.747);
  --chart-3: oklch(0.367 0.176 297.747);
  --chart-4: oklch(0.391 0.189 297.566);
  --chart-5: oklch(0.59 0.158 132.779);
}