Supervisor for shadcn/ui

Supervisor is a shadcn/ui theme built around a muted light green primary color (#d0e2d7) with muted light orange accents (#e2d7d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#d0e2d7) on a neutral background (#020805).

Color palette

TokenLightDark
Background
#ffffffwhite
#020805black
Foreground
#05140bblack
#f5f9f7whitesmoke
Card
#ffffffwhite
#020805black
Card foreground
#05140bblack
#f5f9f7whitesmoke
Popover
#ffffffwhite
#020805black
Popover foreground
#05140bblack
#f5f9f7whitesmoke
Primary
#d0e2d7gainsboro
#d0e2d7gainsboro
Primary foreground
#314e3ddarkslategray
#314e3ddarkslategray
Secondary
#d7d0e2gainsboro
#d7d0e2gainsboro
Secondary foreground
#3d314edarkslategray
#3d314edarkslategray
Muted
#f0eff1whitesmoke
#0f0e10black
Muted foreground
#4e4c52darkslategray
#afadb3darkgray
Accent
#e2d7d0gainsboro
#e2d7d0gainsboro
Accent foreground
#4e3d31darkolivegreen
#4e3d31darkolivegreen
Destructive
#dc4c04orangered
#e65005orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0e2d7gainsboro
#d0e2d7gainsboro

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button6.77:1AA
Secondary button8.01:1AAA
Muted text7.37:1AAA
Accent7.29:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button6.77:1AA
Secondary button8.01:1AAA
Muted text8.64:1AAA
Accent7.29:1AAA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.175 0.029 156.836);
  --muted: oklch(0.953 0.003 304.306);
  --muted-foreground: oklch(0.421 0.011 303.977);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.029 156.836);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.175 0.029 156.836);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.895 0.024 159.617);
  --primary-foreground: oklch(0.397 0.046 157.174);
  --secondary: oklch(0.868 0.025 303.931);
  --secondary-foreground: oklch(0.339 0.052 302.068);
  --accent: oklch(0.886 0.015 56.198);
  --accent-foreground: oklch(0.375 0.031 55.238);
  --destructive: oklch(0.609 0.191 39.687);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.895 0.024 159.617);
  --chart-1: oklch(0.895 0.024 159.617);
  --chart-2: oklch(0.868 0.025 303.931);
  --chart-3: oklch(0.886 0.015 56.198);
  --chart-4: oklch(0.895 0.02 304.026);
  --chart-5: oklch(0.897 0.027 159.537);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.017 160.116);
  --foreground: oklch(0.98 0.005 160.106);
  --muted: oklch(0.167 0.004 304.006);
  --muted-foreground: oklch(0.751 0.009 304.166);
  --popover: oklch(0.123 0.017 160.116);
  --popover-foreground: oklch(0.98 0.005 160.106);
  --card: oklch(0.123 0.017 160.116);
  --card-foreground: oklch(0.98 0.005 160.106);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.895 0.024 159.617);
  --primary-foreground: oklch(0.397 0.046 157.174);
  --secondary: oklch(0.868 0.025 303.931);
  --secondary-foreground: oklch(0.339 0.052 302.068);
  --accent: oklch(0.886 0.015 56.198);
  --accent-foreground: oklch(0.375 0.031 55.238);
  --destructive: oklch(0.63 0.198 39.593);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.895 0.024 159.617);
  --chart-1: oklch(0.895 0.024 159.617);
  --chart-2: oklch(0.868 0.025 303.931);
  --chart-3: oklch(0.886 0.015 56.198);
  --chart-4: oklch(0.895 0.02 304.026);
  --chart-5: oklch(0.897 0.027 159.537);
}