Hood is a shadcn/ui theme built around a purple primary color (#b856b3) with teal accents (#56b3b8). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#b856b3) on a purple-tinted background (#0f060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f060eblack |
| Foreground | #120211black | #fdfbfdsnow |
| Card | #fcfcfcsnow | #120712black |
| Card foreground | #0e020dblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #120712black |
| Popover foreground | #0e020dblack | #ffffffwhite |
| Primary | #b856b3mediumorchid | #b856b3mediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b3b856darkkhaki | #b3b856darkkhaki |
| Secondary foreground | #2d2f14darkslategray | #2d2f14darkslategray |
| Muted | #e8e8d8gainsboro | #262717black |
| Muted foreground | #6c6d54dimgray | #a9ab92darkgray |
| Accent | #56b3b8cadetblue | #56b3b8cadetblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #b83514firebrick | #e14119orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b856b3mediumorchid | #b856b3mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 4.17:1 | AA Large |
| Secondary button | 6.50:1 | AA |
| Muted text | 4.29:1 | AA Large |
| Accent | 8.56:1 | AAA |
| Destructive | 5.91:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 4.17:1 | AA Large |
| Secondary button | 6.50:1 | AA |
| Muted text | 6.47:1 | AA |
| Accent | 8.56:1 | AAA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Hood in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.048 329.508);
--muted: oklch(0.927 0.021 109.129);
--muted-foreground: oklch(0.528 0.038 109.993);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.121 0.042 329.271);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.042 329.271);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.608 0.171 329.356);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.759 0.122 111.572);
--secondary-foreground: oklch(0.295 0.044 111.335);
--accent: oklch(0.713 0.089 199.985);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.523 0.172 34.415);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.608 0.171 329.356);
--chart-1: oklch(0.608 0.171 329.356);
--chart-2: oklch(0.759 0.122 111.572);
--chart-3: oklch(0.713 0.089 199.985);
--chart-4: oklch(0.774 0.116 111.366);
--chart-5: oklch(0.61 0.182 329.485);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.026 328.481);
--foreground: oklch(0.991 0.003 327.069);
--muted: oklch(0.265 0.028 110.565);
--muted-foreground: oklch(0.732 0.035 109.581);
--popover: oklch(0.152 0.03 328.656);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.03 328.656);
--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.608 0.171 329.356);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.759 0.122 111.572);
--secondary-foreground: oklch(0.295 0.044 111.335);
--accent: oklch(0.713 0.089 199.985);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.606 0.203 34.292);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.608 0.171 329.356);
--chart-1: oklch(0.608 0.171 329.356);
--chart-2: oklch(0.759 0.122 111.572);
--chart-3: oklch(0.713 0.089 199.985);
--chart-4: oklch(0.774 0.116 111.366);
--chart-5: oklch(0.61 0.182 329.485);
}