Agile is a shadcn/ui theme built around a neutral gray primary color (#bab0b9) with neutral gray accents (#b0bab2). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the neutral gray primary (#bab0b9) on a purple-tinted background (#0f060d).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #0f060dblack |
| Foreground | #0c040ablack | #faf9fasnow |
| Card | #fcf8fbsnow | #0f060dblack |
| Card foreground | #0c040ablack | #faf9fasnow |
| Popover | #fcf8fbsnow | #0f060dblack |
| Popover foreground | #0c040ablack | #faf9fasnow |
| Primary | #bab0b9silver | #bab0b9silver |
| Primary foreground | #1e1a1dblack | #1e1a1dblack |
| Secondary | #b0bab2darkgray | #b0bab2darkgray |
| Secondary foreground | #1a1e1bblack | #1a1e1bblack |
| Muted | #dcefdfgainsboro | #102313black |
| Muted foreground | #546d59dimgray | #92ab96darkseagreen |
| Accent | #b0bab2darkgray | #b0bab2darkgray |
| Accent foreground | #1a1e1bblack | #1a1e1bblack |
| Destructive | #ba3d03firebrick | #fc631dorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bab0b9silver | #bab0b9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 4.71:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 5.60:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 6.94:1 | AA |
Paste this into your globals.css to use Agile in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 330.889);
--foreground: oklch(0.124 0.025 332.023);
--muted: oklch(0.934 0.031 150.366);
--muted-foreground: oklch(0.51 0.044 149.554);
--popover: oklch(0.983 0.005 330.889);
--popover-foreground: oklch(0.124 0.025 332.023);
--card: oklch(0.983 0.005 330.889);
--card-foreground: oklch(0.124 0.025 332.023);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.768 0.017 331.114);
--primary-foreground: oklch(0.224 0.009 331.335);
--secondary: oklch(0.779 0.017 150.526);
--secondary-foreground: oklch(0.23 0.009 150.301);
--accent: oklch(0.779 0.017 150.526);
--accent-foreground: oklch(0.23 0.009 150.301);
--destructive: oklch(0.534 0.17 38.903);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.768 0.017 331.114);
--chart-1: oklch(0.768 0.017 331.114);
--chart-2: oklch(0.779 0.017 150.526);
--chart-3: oklch(0.779 0.017 150.526);
--chart-4: oklch(0.803 0.015 150.566);
--chart-5: oklch(0.766 0.024 331.239);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.024 332.518);
--foreground: oklch(0.984 0.002 330.842);
--muted: oklch(0.235 0.041 148.055);
--muted-foreground: oklch(0.715 0.041 150.004);
--popover: oklch(0.139 0.024 332.518);
--popover-foreground: oklch(0.984 0.002 330.842);
--card: oklch(0.139 0.024 332.518);
--card-foreground: oklch(0.984 0.002 330.842);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.768 0.017 331.114);
--primary-foreground: oklch(0.224 0.009 331.335);
--secondary: oklch(0.779 0.017 150.526);
--secondary-foreground: oklch(0.23 0.009 150.301);
--accent: oklch(0.779 0.017 150.526);
--accent-foreground: oklch(0.23 0.009 150.301);
--destructive: oklch(0.688 0.2 41.011);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.768 0.017 331.114);
--chart-1: oklch(0.768 0.017 331.114);
--chart-2: oklch(0.779 0.017 150.526);
--chart-3: oklch(0.779 0.017 150.526);
--chart-4: oklch(0.803 0.015 150.566);
--chart-5: oklch(0.766 0.024 331.239);
}