Courageous is a shadcn/ui theme built around a red primary color (#d5a5a5) with indigo accents (#a5a5d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#d5a5a5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #150404black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #110404black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #150404black | #ffffffwhite |
| Primary | #d5a5a5tan | #d5a5a5tan |
| Primary foreground | #311717black | #311717black |
| Secondary | #a5d5a5lightgreen | #a5d5a5lightgreen |
| Secondary foreground | #173117black | #173117black |
| Muted | #dfe2dfgainsboro | #1d201dblack |
| Muted foreground | #485148darkslategray | #aeb7aedarkgray |
| Accent | #a5a5d5lightsteelblue | #a5a5d5lightsteelblue |
| Accent foreground | #171731black | #171731black |
| Destructive | #e30202red | #fd1c1cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d5a5a5tan | #d5a5a5tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 4.90:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Courageous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.033 22.133);
--muted: oklch(0.91 0.006 145.524);
--muted-foreground: oklch(0.424 0.019 145.23);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.033 22.133);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.13 0.029 21.841);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.765 0.057 18.466);
--primary-foreground: oklch(0.241 0.042 20.602);
--secondary: oklch(0.825 0.083 144.78);
--secondary-foreground: oklch(0.283 0.056 143.925);
--accent: oklch(0.738 0.069 284.596);
--accent-foreground: oklch(0.219 0.05 281.515);
--destructive: oklch(0.576 0.236 29.16);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.057 18.466);
--chart-1: oklch(0.765 0.057 18.466);
--chart-2: oklch(0.825 0.083 144.78);
--chart-3: oklch(0.738 0.069 284.596);
--chart-4: oklch(0.845 0.073 144.895);
--chart-5: oklch(0.763 0.062 18.595);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.24 0.009 145.296);
--muted-foreground: oklch(0.77 0.016 145.414);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.765 0.057 18.466);
--primary-foreground: oklch(0.241 0.042 20.602);
--secondary: oklch(0.825 0.083 144.78);
--secondary-foreground: oklch(0.283 0.056 143.925);
--accent: oklch(0.738 0.069 284.596);
--accent-foreground: oklch(0.219 0.05 281.515);
--destructive: oklch(0.631 0.248 28.334);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.057 18.466);
--chart-1: oklch(0.765 0.057 18.466);
--chart-2: oklch(0.825 0.083 144.78);
--chart-3: oklch(0.738 0.069 284.596);
--chart-4: oklch(0.845 0.073 144.895);
--chart-5: oklch(0.763 0.062 18.595);
}