Agile for shadcn/ui

Agile is a shadcn/ui theme built around a muted deep blue primary color (#151719) with muted deep green accents (#171915). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#151719) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010509black
#f8fafcghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#010509black
#f8fafcghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#010509black
#f8fafcghostwhite
Primary
#151719black
#151719black
Primary foreground
#aab0b6darkgray
#aab0b6darkgray
Secondary
#191517black
#191517black
Secondary foreground
#b6aab0darkgray
#b6aab0darkgray
Muted
#f5eaeflinen
#150a0fblack
Muted foreground
#6f5d65dimgray
#a29098rosybrown
Accent
#171915black
#171915black
Accent foreground
#b0b6aadarkgray
#b0b6aadarkgray
Destructive
#ad2510firebrick
#eb462dtomato
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#151719black
#151719black

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.44:1AAA
Primary button8.22:1AAA
Secondary button8.06:1AAA
Muted text5.23:1AA
Accent8.54:1AAA
Destructive6.34:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button8.22:1AAA
Secondary button8.06:1AAA
Muted text6.45:1AA
Accent8.54:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.11 0.017 240.765);
  --muted: oklch(0.948 0.013 347.271);
  --muted-foreground: oklch(0.499 0.027 348.313);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.11 0.017 240.765);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.11 0.017 240.765);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.203 0.005 251.631);
  --primary-foreground: oklch(0.753 0.012 251.574);
  --secondary: oklch(0.201 0.007 347.789);
  --secondary-foreground: oklch(0.749 0.017 347.498);
  --accent: oklch(0.209 0.008 130.159);
  --accent-foreground: oklch(0.768 0.019 130.037);
  --destructive: oklch(0.488 0.175 31.583);
  --destructive-foreground: oklch(0.971 0.012 27.999);
  --ring: oklch(0.203 0.005 251.631);
  --chart-1: oklch(0.203 0.005 251.631);
  --chart-2: oklch(0.201 0.007 347.789);
  --chart-3: oklch(0.209 0.008 130.159);
  --chart-4: oklch(0.234 0.009 347.882);
  --chart-5: oklch(0.202 0.007 251.694);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.003 251.475);
  --muted: oklch(0.162 0.02 350.078);
  --muted-foreground: oklch(0.672 0.025 347.884);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.003 251.475);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.003 251.475);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.203 0.005 251.631);
  --primary-foreground: oklch(0.753 0.012 251.574);
  --secondary: oklch(0.201 0.007 347.789);
  --secondary-foreground: oklch(0.749 0.017 347.498);
  --accent: oklch(0.209 0.008 130.159);
  --accent-foreground: oklch(0.768 0.019 130.037);
  --destructive: oklch(0.631 0.206 31.627);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.203 0.005 251.631);
  --chart-1: oklch(0.203 0.005 251.631);
  --chart-2: oklch(0.201 0.007 347.789);
  --chart-3: oklch(0.209 0.008 130.159);
  --chart-4: oklch(0.234 0.009 347.882);
  --chart-5: oklch(0.202 0.007 251.694);
}