Agile for shadcn/ui

Agile is a shadcn/ui theme built around a near-white primary color (#fdfaff) with neutral gray accents (#e0e0e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fdfaff) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#ffffffwhite
#030204black
Foreground
#0d0514black
#f8f6f9whitesmoke
Card
#fcfcfcsnow
#050307black
Card foreground
#0b0410black
#faf9fbghostwhite
Popover
#fcfcfcsnow
#050307black
Popover foreground
#0b0410black
#faf9fbghostwhite
Primary
#fdfaffwhite
#fdfaffwhite
Primary foreground
#6d08bfdarkviolet
#6d08bfdarkviolet
Secondary
#e0e0e0gainsboro
#2e2c30darkslategray
Secondary foreground
#474747darkslategray
#c7c4casilver
Muted
#ede3e3mistyrose
#17121cblack
Muted foreground
#655858dimgray
#a19aa7darkgray
Accent
#e0e0e0gainsboro
#2e2c30darkslategray
Accent foreground
#474747darkslategray
#c7c4casilver
Destructive
#711e04maroon
#f86335tomato
Destructive foreground
#fcbeablightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdfaffwhite
#fdfaffwhite

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card19.77:1AAA
Primary button8.32:1AAA
Secondary button7.06:1AAA
Muted text5.41:1AA
Accent7.06:1AAA
Destructive6.93:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.54:1AAA
Primary button8.32:1AAA
Secondary button8.04:1AAA
Muted text6.74:1AA
Accent8.04:1AAA
Destructive6.80:1AA

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.141 0.035 309.089);
  --muted: oklch(0.924 0.011 17.347);
  --muted-foreground: oklch(0.472 0.017 17.782);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.13 0.03 310.351);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.13 0.03 310.351);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.989 0.007 310.374);
  --primary-foreground: oklch(0.447 0.234 299.772);
  --secondary: oklch(0.908 0 180);
  --secondary-foreground: oklch(0.399 0 180);
  --accent: oklch(0.908 0 180);
  --accent-foreground: oklch(0.399 0 180);
  --destructive: oklch(0.368 0.122 35.907);
  --destructive-foreground: oklch(0.853 0.076 37.605);
  --ring: oklch(0.989 0.007 310.374);
  --chart-1: oklch(0.989 0.007 310.374);
  --chart-2: oklch(0.908 0 180);
  --chart-3: oklch(0.908 0 180);
  --chart-4: oklch(0.931 0 180);
  --chart-5: oklch(0.989 0.007 310.372);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.012 311.581);
  --foreground: oklch(0.975 0.005 310.393);
  --muted: oklch(0.194 0.021 309.443);
  --muted-foreground: oklch(0.697 0.021 310.162);
  --popover: oklch(0.107 0.015 311.581);
  --popover-foreground: oklch(0.983 0.003 310.409);
  --card: oklch(0.107 0.015 311.581);
  --card-foreground: oklch(0.983 0.003 310.409);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.989 0.007 310.374);
  --primary-foreground: oklch(0.447 0.234 299.772);
  --secondary: oklch(0.296 0.009 310.158);
  --secondary-foreground: oklch(0.825 0.008 310.342);
  --accent: oklch(0.296 0.009 310.158);
  --accent-foreground: oklch(0.825 0.008 310.342);
  --destructive: oklch(0.683 0.192 37.053);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.989 0.007 310.374);
  --chart-1: oklch(0.989 0.007 310.374);
  --chart-2: oklch(0.296 0.009 310.158);
  --chart-3: oklch(0.296 0.009 310.158);
  --chart-4: oklch(0.326 0.01 310.148);
  --chart-5: oklch(0.989 0.007 310.372);
}