Courageous is a shadcn/ui theme built around a vivid purple primary color (#e208c2) with vivid pink accents (#e20855). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#e208c2) on a purple-tinted background (#0e060d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e060dblack |
| Foreground | #040103black | #ffffffwhite |
| Card | #fcfcfcsnow | #110810black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #110810black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e208c2deeppink | #e208c2deeppink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9608e2darkviolet | #9608e2darkviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9e5eblavender | #18141ablack |
| Muted foreground | #55485bdarkslategray | #b0a4b7darkgray |
| Accent | #e20855crimson | #e20855crimson |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a82200firebrick | #f53100orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e208c2deeppink | #e208c2deeppink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.77:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.15:1 | AA Large |
| Secondary button | 6.11:1 | AA |
| Muted text | 6.84:1 | AA |
| Accent | 4.75:1 | AA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 4.15:1 | AA Large |
| Secondary button | 6.11:1 | AA |
| Muted text | 7.67:1 | AAA |
| Accent | 4.75:1 | AA |
| Destructive | 3.95: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.086 0.018 331.279);
--muted: oklch(0.927 0.01 314.162);
--muted-foreground: oklch(0.421 0.036 313.753);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.624 0.273 336.77);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.533 0.271 306.754);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.231 12.488);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.476 0.174 33.336);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.624 0.273 336.77);
--chart-1: oklch(0.624 0.273 336.77);
--chart-2: oklch(0.533 0.271 306.754);
--chart-3: oklch(0.584 0.231 12.488);
--chart-4: oklch(0.558 0.284 306.674);
--chart-5: oklch(0.631 0.276 336.915);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.02 331.63);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.014 313.826);
--muted-foreground: oklch(0.734 0.031 313.986);
--popover: oklch(0.153 0.023 332.003);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.023 332.003);
--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.624 0.273 336.77);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.533 0.271 306.754);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.231 12.488);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.627 0.233 32.672);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.624 0.273 336.77);
--chart-1: oklch(0.624 0.273 336.77);
--chart-2: oklch(0.533 0.271 306.754);
--chart-3: oklch(0.584 0.231 12.488);
--chart-4: oklch(0.558 0.284 306.674);
--chart-5: oklch(0.631 0.276 336.915);
}