Verse for shadcn/ui

Verse is a shadcn/ui theme built around a deep green primary color (#164118) with deep purple accents (#41163f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#164118) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020e02black
#f9fbf9mintcream
Card
#fcfcfcsnow
#030303black
Card foreground
#010901black
#fcfdfcwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#010901black
#fcfdfcwhite
Primary
#164118darkgreen
#164118darkgreen
Primary foreground
#a8e1aapalegreen
#a8e1aapalegreen
Secondary
#41163fdarkslategray
#41163fdarkslategray
Secondary foreground
#e1a8dfplum
#e1a8dfplum
Muted
#f3f1f3whitesmoke
#0e0c0eblack
Muted foreground
#5a535adimgray
#aca5acdarkgray
Accent
#41163fdarkslategray
#41163fdarkslategray
Accent foreground
#e1a8dfplum
#e1a8dfplum
Destructive
#691407maroon
#ea2d10orangered
Destructive foreground
#f9b4a9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#164118darkgreen
#164118darkgreen

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.74:1AAA
Primary button7.81:1AAA
Secondary button7.70:1AAA
Muted text6.64:1AA
Accent7.70:1AAA
Destructive7.11:1AAA
Dark mode
Text on background20.19:1AAA
Text on card20.28:1AAA
Primary button7.81:1AAA
Secondary button7.70:1AAA
Muted text8.11:1AAA
Accent7.70:1AAA
Destructive4.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.039 144.276);
  --muted: oklch(0.961 0.003 326.572);
  --muted-foreground: oklch(0.452 0.014 326.804);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.124 0.033 144.33);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.033 144.33);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.333 0.083 143.989);
  --primary-foreground: oklch(0.856 0.096 145.498);
  --secondary: oklch(0.285 0.089 328.908);
  --secondary-foreground: oklch(0.801 0.099 327.551);
  --accent: oklch(0.285 0.089 328.908);
  --accent-foreground: oklch(0.801 0.099 327.551);
  --destructive: oklch(0.342 0.12 31.712);
  --destructive-foreground: oklch(0.831 0.083 28.767);
  --ring: oklch(0.333 0.083 143.989);
  --chart-1: oklch(0.333 0.083 143.989);
  --chart-2: oklch(0.285 0.089 328.908);
  --chart-3: oklch(0.285 0.089 328.908);
  --chart-4: oklch(0.316 0.101 328.971);
  --chart-5: oklch(0.336 0.087 143.873);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.004 146.505);
  --muted: oklch(0.157 0.005 326.832);
  --muted-foreground: oklch(0.729 0.012 326.687);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.002 146.523);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 146.523);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.333 0.083 143.989);
  --primary-foreground: oklch(0.856 0.096 145.498);
  --secondary: oklch(0.285 0.089 328.908);
  --secondary-foreground: oklch(0.801 0.099 327.551);
  --accent: oklch(0.285 0.089 328.908);
  --accent-foreground: oklch(0.801 0.099 327.551);
  --destructive: oklch(0.605 0.225 31.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.333 0.083 143.989);
  --chart-1: oklch(0.333 0.083 143.989);
  --chart-2: oklch(0.285 0.089 328.908);
  --chart-3: oklch(0.285 0.089 328.908);
  --chart-4: oklch(0.316 0.101 328.971);
  --chart-5: oklch(0.336 0.087 143.873);
}