Adept for shadcn/ui

Adept is a shadcn/ui theme built around a deep green primary color (#132515) with deep purple accents (#251323). The light mode uses a neutral background (#fbfefb). Dark mode keeps the deep green primary (#132515) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#fbfefbwhite
#020302black
Foreground
#010401black
#fcfdfcwhite
Card
#fbfefbwhite
#020302black
Card foreground
#010401black
#fcfdfcwhite
Popover
#fbfefbwhite
#020302black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#132515black
#132515black
Primary foreground
#9ecca3darkseagreen
#9ecca3darkseagreen
Secondary
#251323black
#251323black
Secondary foreground
#cc9ec7plum
#cc9ec7plum
Muted
#e9d8e7gainsboro
#271625black
Muted foreground
#513e4fdarkslategray
#c1aebfsilver
Accent
#251323black
#251323black
Accent foreground
#cc9ec7plum
#cc9ec7plum
Destructive
#d41c08firebrick
#f73b26orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#132515black
#132515black

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button8.93:1AAA
Secondary button7.75:1AAA
Muted text7.17:1AAA
Accent7.75:1AAA
Destructive5.30:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button8.93:1AAA
Secondary button7.75:1AAA
Muted text8.18:1AAA
Accent7.75:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 148.549);
  --foreground: oklch(0.098 0.02 147.172);
  --muted: oklch(0.9 0.027 328.917);
  --muted-foreground: oklch(0.391 0.037 329.592);
  --popover: oklch(0.994 0.004 148.549);
  --popover-foreground: oklch(0.098 0.02 147.172);
  --card: oklch(0.994 0.004 148.549);
  --card-foreground: oklch(0.098 0.02 147.172);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.243 0.038 146.668);
  --primary-foreground: oklch(0.801 0.075 147.484);
  --secondary: oklch(0.219 0.039 330.426);
  --secondary-foreground: oklch(0.755 0.077 329.67);
  --accent: oklch(0.219 0.039 330.426);
  --accent-foreground: oklch(0.755 0.077 329.67);
  --destructive: oklch(0.554 0.215 30.392);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.243 0.038 146.668);
  --chart-1: oklch(0.243 0.038 146.668);
  --chart-2: oklch(0.219 0.039 330.426);
  --chart-3: oklch(0.219 0.039 330.426);
  --chart-4: oklch(0.251 0.048 330.553);
  --chart-5: oklch(0.245 0.041 146.492);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.011 147.786);
  --foreground: oklch(0.993 0.002 148.565);
  --muted: oklch(0.23 0.037 330.25);
  --muted-foreground: oklch(0.773 0.031 329.031);
  --popover: oklch(0.095 0.011 147.786);
  --popover-foreground: oklch(0.993 0.002 148.565);
  --card: oklch(0.095 0.011 147.786);
  --card-foreground: oklch(0.993 0.002 148.565);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.243 0.038 146.668);
  --primary-foreground: oklch(0.801 0.075 147.484);
  --secondary: oklch(0.219 0.039 330.426);
  --secondary-foreground: oklch(0.755 0.077 329.67);
  --accent: oklch(0.219 0.039 330.426);
  --accent-foreground: oklch(0.755 0.077 329.67);
  --destructive: oklch(0.64 0.226 30.427);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.243 0.038 146.668);
  --chart-1: oklch(0.243 0.038 146.668);
  --chart-2: oklch(0.219 0.039 330.426);
  --chart-3: oklch(0.219 0.039 330.426);
  --chart-4: oklch(0.251 0.048 330.553);
  --chart-5: oklch(0.245 0.041 146.492);
}