Diligent for shadcn/ui

Diligent is a shadcn/ui theme built around a deep teal primary color (#051f12) with deep teal accents (#051f1f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#051f12) on a teal-tinted background (#050f0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f0ablack
Foreground
#010905black
#fcfdfcwhite
Card
#fcfcfcsnow
#07130dblack
Card foreground
#010503black
#ffffffwhite
Popover
#fcfcfcsnow
#07130dblack
Popover foreground
#010503black
#ffffffwhite
Primary
#051f12black
#051f12black
Primary foreground
#22ce78mediumseagreen
#22ce78mediumseagreen
Secondary
#051f05black
#051f05black
Secondary foreground
#22ce22limegreen
#22ce22limegreen
Muted
#e8f3e8honeydew
#0c170cblack
Muted foreground
#394c39darkslategray
#b3c6b3silver
Accent
#051f1fblack
#051f1fblack
Accent foreground
#22cecedarkturquoise
#22cecedarkturquoise
Destructive
#9c4011saddlebrown
#e86e30chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#051f12black
#051f12black

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.06:1AAA
Primary button8.41:1AAA
Secondary button8.25:1AAA
Muted text8.10:1AAA
Accent8.85:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.05:1AAA
Text on card18.96:1AAA
Primary button8.41:1AAA
Secondary button8.25:1AAA
Muted text10.15:1AAA
Accent8.85:1AAA
Destructive6.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.022 165.336);
  --muted: oklch(0.952 0.019 145.426);
  --muted-foreground: oklch(0.393 0.039 144.794);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.1 0.017 165.336);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.017 165.336);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.213 0.041 158.715);
  --primary-foreground: oklch(0.751 0.181 154.387);
  --secondary: oklch(0.21 0.058 143.176);
  --secondary-foreground: oklch(0.741 0.24 142.665);
  --accent: oklch(0.218 0.032 195.093);
  --accent-foreground: oklch(0.774 0.127 194.844);
  --destructive: oklch(0.489 0.135 42.801);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.213 0.041 158.715);
  --chart-1: oklch(0.213 0.041 158.715);
  --chart-2: oklch(0.21 0.058 143.176);
  --chart-3: oklch(0.218 0.032 195.093);
  --chart-4: oklch(0.257 0.074 143.035);
  --chart-5: oklch(0.215 0.043 158.534);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.019 163.316);
  --foreground: oklch(0.993 0.002 165.085);
  --muted: oklch(0.192 0.027 144.421);
  --muted-foreground: oklch(0.807 0.033 145.264);
  --popover: oklch(0.172 0.023 161.746);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.172 0.023 161.746);
  --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.213 0.041 158.715);
  --primary-foreground: oklch(0.751 0.181 154.387);
  --secondary: oklch(0.21 0.058 143.176);
  --secondary-foreground: oklch(0.741 0.24 142.665);
  --accent: oklch(0.218 0.032 195.093);
  --accent-foreground: oklch(0.774 0.127 194.844);
  --destructive: oklch(0.674 0.168 44.318);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.213 0.041 158.715);
  --chart-1: oklch(0.213 0.041 158.715);
  --chart-2: oklch(0.21 0.058 143.176);
  --chart-3: oklch(0.218 0.032 195.093);
  --chart-4: oklch(0.257 0.074 143.035);
  --chart-5: oklch(0.215 0.043 158.534);
}