Adept for shadcn/ui

Adept is a shadcn/ui theme built around a green primary color (#27a560) with teal accents (#27a59f). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the green primary (#27a560) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#010402black
Foreground
#05100ablack
#f5f9f7whitesmoke
Card
#f7fdfamintcream
#010402black
Card foreground
#05100ablack
#f5f9f7whitesmoke
Popover
#f7fdfamintcream
#010402black
Popover foreground
#05100ablack
#f5f9f7whitesmoke
Primary
#27a560seagreen
#27a560seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2da527forestgreen
#2da527forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dce6dbgainsboro
#1a2419black
Muted foreground
#4d614cdarkolivegreen
#9fb39edarkgray
Accent
#27a59flightseagreen
#27a59flightseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#921f02darkred
#ec3204orangered
Destructive foreground
#fed3c8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#27a560seagreen
#27a560seagreen

Contrast

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

Light mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button3.15:1AA Large
Secondary button3.21:1AA Large
Muted text5.21:1AA
Accent3.00:1AA Large
Destructive6.36:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button3.15:1AA Large
Secondary button3.21:1AA Large
Muted text7.19:1AAA
Accent3.00:1AA Large
Destructive4.17: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.988 0.007 162.452);
  --foreground: oklch(0.158 0.022 160.764);
  --muted: oklch(0.913 0.017 144.018);
  --muted-foreground: oklch(0.47 0.041 143.606);
  --popover: oklch(0.988 0.007 162.452);
  --popover-foreground: oklch(0.158 0.022 160.764);
  --card: oklch(0.988 0.007 162.452);
  --card-foreground: oklch(0.158 0.022 160.764);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.639 0.149 153.688);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.633 0.193 142.321);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.656 0.105 189.778);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.431 0.154 33.721);
  --destructive-foreground: oklch(0.9 0.051 34.353);
  --ring: oklch(0.639 0.149 153.688);
  --chart-1: oklch(0.639 0.149 153.688);
  --chart-2: oklch(0.633 0.193 142.321);
  --chart-3: oklch(0.656 0.105 189.778);
  --chart-4: oklch(0.668 0.204 142.318);
  --chart-5: oklch(0.647 0.154 153.304);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 162.639);
  --foreground: oklch(0.98 0.005 162.49);
  --muted: oklch(0.246 0.024 143.541);
  --muted-foreground: oklch(0.745 0.037 143.837);
  --popover: oklch(0.097 0.01 162.639);
  --popover-foreground: oklch(0.98 0.005 162.49);
  --card: oklch(0.097 0.01 162.639);
  --card-foreground: oklch(0.98 0.005 162.49);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.639 0.149 153.688);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.633 0.193 142.321);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.656 0.105 189.778);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.612 0.225 32.905);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.639 0.149 153.688);
  --chart-1: oklch(0.639 0.149 153.688);
  --chart-2: oklch(0.633 0.193 142.321);
  --chart-3: oklch(0.656 0.105 189.778);
  --chart-4: oklch(0.668 0.204 142.318);
  --chart-5: oklch(0.647 0.154 153.304);
}