Courageous is a shadcn/ui theme built around a muted blue primary color (#4b5a86) with muted yellow accents (#86774b). The light mode uses a neutral background (#f6f8fd). Dark mode keeps the muted blue primary (#4b5a86) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f8fdghostwhite | #020204black |
| Foreground | #010204black | #ffffffwhite |
| Card | #f6f8fdghostwhite | #020204black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #f6f8fdghostwhite | #020204black |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #4b5a86darkslateblue | #4b5a86darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #86774bdimgray | #86774bdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #deddd9gainsboro | #262521black |
| Muted foreground | #595446darkolivegreen | #b9b5a6darkgray |
| Accent | #86774bdimgray | #86774bdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #af0e08firebrick | #f4130bred |
| Destructive foreground | #feececlinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4b5a86darkslateblue | #4b5a86darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 4.41:1 | AA Large |
| Muted text | 5.53:1 | AA |
| Accent | 4.41:1 | AA Large |
| Destructive | 6.36:1 | AA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.74:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 4.41:1 | AA Large |
| Muted text | 7.46:1 | AAA |
| Accent | 4.41:1 | AA Large |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Courageous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 271.342);
--foreground: oklch(0.08 0.016 261.16);
--muted: oklch(0.896 0.005 91.46);
--muted-foreground: oklch(0.445 0.023 91.76);
--popover: oklch(0.98 0.007 271.342);
--popover-foreground: oklch(0.08 0.016 261.16);
--card: oklch(0.98 0.007 271.342);
--card-foreground: oklch(0.08 0.016 261.16);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.474 0.074 269.395);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.573 0.064 91.697);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.573 0.064 91.697);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.479 0.19 29.199);
--destructive-foreground: oklch(0.958 0.02 19.898);
--ring: oklch(0.474 0.074 269.395);
--chart-1: oklch(0.474 0.074 269.395);
--chart-2: oklch(0.573 0.064 91.697);
--chart-3: oklch(0.573 0.064 91.697);
--chart-4: oklch(0.602 0.068 91.691);
--chart-5: oklch(0.47 0.082 269.104);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.009 266.36);
--foreground: oklch(1 0 180);
--muted: oklch(0.264 0.007 91.621);
--muted-foreground: oklch(0.772 0.021 91.62);
--popover: oklch(0.085 0.009 266.36);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.085 0.009 266.36);
--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.474 0.074 269.395);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.573 0.064 91.697);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.573 0.064 91.697);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.611 0.245 29.27);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.474 0.074 269.395);
--chart-1: oklch(0.474 0.074 269.395);
--chart-2: oklch(0.573 0.064 91.697);
--chart-3: oklch(0.573 0.064 91.697);
--chart-4: oklch(0.602 0.068 91.691);
--chart-5: oklch(0.47 0.082 269.104);
}