Courageous is a shadcn/ui theme built around a muted light green primary color (#bbd8be) with muted light purple accents (#d8bbd5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#bbd8be) on a green-tinted background (#040b05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b05black |
| Foreground | #041105black | #f5faf5whitesmoke |
| Card | #fcfcfcsnow | #050f07black |
| Card foreground | #030c04black | #f8fcf9mintcream |
| Popover | #fcfcfcsnow | #050f07black |
| Popover foreground | #030c04black | #f8fcf9mintcream |
| Primary | #bbd8besilver | #bbd8besilver |
| Primary foreground | #233e26darkslategray | #233e26darkslategray |
| Secondary | #d8bbd5thistle | #d8bbd5thistle |
| Secondary foreground | #3e233adarkslategray | #3e233adarkslategray |
| Muted | #ead2e7gainsboro | #2d152ablack |
| Muted foreground | #4f4a4edarkslategray | #b5b0b4darkgray |
| Accent | #d8bbd5thistle | #d8bbd5thistle |
| Accent foreground | #3e233adarkslategray | #3e233adarkslategray |
| Destructive | #7f160amaroon | #ec2d18orangered |
| Destructive foreground | #fac7c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bbd8besilver | #bbd8besilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 18.81:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 4.22: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.159 0.033 147.337);
--muted: oklch(0.889 0.038 329.626);
--muted-foreground: oklch(0.416 0.009 329.381);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.141 0.028 147.701);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.141 0.028 147.701);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.854 0.047 148.47);
--primary-foreground: oklch(0.334 0.052 147.09);
--secondary: oklch(0.824 0.047 329.785);
--secondary-foreground: oklch(0.301 0.054 331.077);
--accent: oklch(0.824 0.047 329.785);
--accent-foreground: oklch(0.301 0.054 331.077);
--destructive: oklch(0.388 0.141 30.505);
--destructive-foreground: oklch(0.874 0.059 25.679);
--ring: oklch(0.854 0.047 148.47);
--chart-1: oklch(0.854 0.047 148.47);
--chart-2: oklch(0.824 0.047 329.785);
--chart-3: oklch(0.824 0.047 329.785);
--chart-4: oklch(0.85 0.04 329.674);
--chart-5: oklch(0.856 0.052 148.396);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.021 148.104);
--foreground: oklch(0.98 0.008 149.038);
--muted: oklch(0.24 0.052 331.439);
--muted-foreground: oklch(0.763 0.008 329.25);
--popover: oklch(0.155 0.024 147.792);
--popover-foreground: oklch(0.986 0.005 149.07);
--card: oklch(0.155 0.024 147.792);
--card-foreground: oklch(0.986 0.005 149.07);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.854 0.047 148.47);
--primary-foreground: oklch(0.334 0.052 147.09);
--secondary: oklch(0.824 0.047 329.785);
--secondary-foreground: oklch(0.301 0.054 331.077);
--accent: oklch(0.824 0.047 329.785);
--accent-foreground: oklch(0.301 0.054 331.077);
--destructive: oklch(0.61 0.227 30.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.854 0.047 148.47);
--chart-1: oklch(0.854 0.047 148.47);
--chart-2: oklch(0.824 0.047 329.785);
--chart-3: oklch(0.824 0.047 329.785);
--chart-4: oklch(0.85 0.04 329.674);
--chart-5: oklch(0.856 0.052 148.396);
}