Agile for shadcn/ui

Agile is a shadcn/ui theme built around a neutral gray primary color (#72766f) with muted light green accents (#dee1db). The light mode uses a neutral background (#fcfefb). Dark mode keeps the neutral gray primary (#72766f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfefbwhite
#000000black
Foreground
#050901black
#f7f9f5whitesmoke
Card
#fafdf7mintcream
#030303black
Card foreground
#020401black
#fafbf9snow
Popover
#fafdf7mintcream
#030303black
Popover foreground
#020401black
#fafbf9snow
Primary
#72766fdimgray
#72766fdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dee1dbgainsboro
#292b27darkslategray
Secondary foreground
#444b3fdarkslategray
#c1c5bfsilver
Muted
#e8ebe6linen
#171914black
Muted foreground
#474f40darkslategray
#b7bfb0silver
Accent
#dee1dbgainsboro
#292b27darkslategray
Accent foreground
#444b3fdarkslategray
#c1c5bfsilver
Destructive
#bf4912chocolate
#e05515chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#72766fdimgray
#72766fdimgray

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card20.02:1AAA
Primary button4.61:1AA
Secondary button6.82:1AA
Muted text7.07:1AAA
Accent6.82:1AA
Destructive5.02:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.92:1AAA
Primary button4.61:1AA
Secondary button8.19:1AAA
Muted text9.32:1AAA
Accent8.19:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 130.479);
  --foreground: oklch(0.129 0.025 128.807);
  --muted: oklch(0.935 0.007 130.512);
  --muted-foreground: oklch(0.416 0.028 131.088);
  --popover: oklch(0.99 0.009 130.521);
  --popover-foreground: oklch(0.102 0.02 128.807);
  --card: oklch(0.99 0.009 130.521);
  --card-foreground: oklch(0.102 0.02 128.807);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.561 0.011 130.629);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.905 0.009 130.529);
  --secondary-foreground: oklch(0.403 0.022 130.968);
  --accent: oklch(0.905 0.009 130.529);
  --accent-foreground: oklch(0.403 0.022 130.968);
  --destructive: oklch(0.559 0.164 40.831);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.561 0.011 130.629);
  --chart-1: oklch(0.561 0.011 130.629);
  --chart-2: oklch(0.905 0.009 130.529);
  --chart-3: oklch(0.905 0.009 130.529);
  --chart-4: oklch(0.927 0.007 130.506);
  --chart-5: oklch(0.568 0.023 130.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.005 130.49);
  --muted: oklch(0.211 0.011 130.922);
  --muted-foreground: oklch(0.795 0.024 130.721);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.987 0.004 130.473);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.004 130.473);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.561 0.011 130.629);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.285 0.008 130.704);
  --secondary-foreground: oklch(0.819 0.009 130.544);
  --accent: oklch(0.285 0.008 130.704);
  --accent-foreground: oklch(0.819 0.009 130.544);
  --destructive: oklch(0.627 0.186 40.605);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.561 0.011 130.629);
  --chart-1: oklch(0.561 0.011 130.629);
  --chart-2: oklch(0.285 0.008 130.704);
  --chart-3: oklch(0.285 0.008 130.704);
  --chart-4: oklch(0.316 0.009 130.715);
  --chart-5: oklch(0.568 0.023 130.818);
}