Supervisor for shadcn/ui

Supervisor is a shadcn/ui theme built around a light green primary color (#c5e2ab) with light green accents (#abe2ad). The light mode uses a neutral background (#fafcf8). Dark mode keeps the light green primary (#c5e2ab) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fafcf8snow
#020401black
Foreground
#050902black
#ffffffwhite
Card
#f7faf4whitesmoke
#050802black
Card foreground
#020401black
#ffffffwhite
Popover
#fafcf8snow
#020401black
Popover foreground
#050902black
#ffffffwhite
Primary
#c5e2absilver
#c5e2absilver
Primary foreground
#2c4417darkslategray
#2c4417darkslategray
Secondary
#e1e2abpalegoldenrod
#e1e2abpalegoldenrod
Secondary foreground
#434417darkolivegreen
#434417darkolivegreen
Muted
#eff0e0beige
#1e1f0fblack
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#abe2adpalegreen
#abe2adpalegreen
Accent foreground
#174419darkgreen
#174419darkgreen
Destructive
#760e05maroon
#dc1b09red
Destructive foreground
#fcb7b1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5e2absilver
#c5e2absilver

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.60:1AAA
Primary button7.64:1AAA
Secondary button7.55:1AAA
Muted text5.78:1AA
Accent7.59:1AAA
Destructive6.85:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.15:1AAA
Primary button7.64:1AAA
Secondary button7.55:1AAA
Muted text6.64:1AA
Accent7.59:1AAA
Destructive4.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 129.845);
  --foreground: oklch(0.128 0.024 128.319);
  --muted: oklch(0.95 0.02 108.324);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.988 0.006 129.845);
  --popover-foreground: oklch(0.128 0.024 128.319);
  --card: oklch(0.982 0.009 129.876);
  --card-foreground: oklch(0.102 0.019 128.319);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.879 0.08 130.745);
  --primary-foreground: oklch(0.357 0.076 132.607);
  --secondary: oklch(0.899 0.072 109.347);
  --secondary-foreground: oklch(0.376 0.065 110.924);
  --accent: oklch(0.862 0.092 145.554);
  --accent-foreground: oklch(0.345 0.087 143.963);
  --destructive: oklch(0.363 0.137 30.303);
  --destructive-foreground: oklch(0.841 0.081 24.782);
  --ring: oklch(0.879 0.08 130.745);
  --chart-1: oklch(0.879 0.08 130.745);
  --chart-2: oklch(0.899 0.072 109.347);
  --chart-3: oklch(0.862 0.092 145.554);
  --chart-4: oklch(0.913 0.062 109.148);
  --chart-5: oklch(0.882 0.084 130.803);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.015 128.555);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.232 0.027 109.958);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.1 0.015 128.555);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.019 128.555);
  --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.879 0.08 130.745);
  --primary-foreground: oklch(0.357 0.076 132.607);
  --secondary: oklch(0.899 0.072 109.347);
  --secondary-foreground: oklch(0.376 0.065 110.924);
  --accent: oklch(0.862 0.092 145.554);
  --accent-foreground: oklch(0.345 0.087 143.963);
  --destructive: oklch(0.57 0.223 30.056);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.879 0.08 130.745);
  --chart-1: oklch(0.879 0.08 130.745);
  --chart-2: oklch(0.899 0.072 109.347);
  --chart-3: oklch(0.862 0.092 145.554);
  --chart-4: oklch(0.913 0.062 109.148);
  --chart-5: oklch(0.882 0.084 130.803);
}