Howard is a shadcn/ui theme built around a deep blue primary color (#1a1d37) with deep green accents (#1d371a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#1a1d37) on a blue-tinted background (#05060a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05060ablack |
| Foreground | #050610black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #07080dblack |
| Card foreground | #04040cblack | #ffffffwhite |
| Popover | #ffffffwhite | #05060ablack |
| Popover foreground | #050610black | #fcfcfdwhite |
| Primary | #1a1d37midnightblue | #1a1d37midnightblue |
| Primary foreground | #acb0d8lightsteelblue | #acb0d8lightsteelblue |
| Secondary | #371a1dblack | #371a1dblack |
| Secondary foreground | #d8acb0silver | #d8acb0silver |
| Muted | #ece4e5linen | #1b1314black |
| Muted foreground | #464444darkslategray | #bbb9basilver |
| Accent | #1d371adarkgreen | #1d371adarkgreen |
| Accent foreground | #b0d8acsilver | #b0d8acsilver |
| Destructive | #9b270dbrown | #e63a14orangered |
| Destructive foreground | #fce4demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a1d37midnightblue | #1a1d37midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 8.17:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Howard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.023 276.144);
--muted: oklch(0.926 0.009 10.288);
--muted-foreground: oklch(0.389 0.002 10.187);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.023 276.144);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.114 0.02 275.96);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.243 0.05 277.156);
--primary-foreground: oklch(0.768 0.057 279.992);
--secondary: oklch(0.261 0.047 14.47);
--secondary-foreground: oklch(0.785 0.052 11.591);
--accent: oklch(0.309 0.06 141.85);
--accent-foreground: oklch(0.842 0.073 142.268);
--destructive: oklch(0.457 0.155 33.539);
--destructive-foreground: oklch(0.936 0.028 32.694);
--ring: oklch(0.243 0.05 277.156);
--chart-1: oklch(0.243 0.05 277.156);
--chart-2: oklch(0.261 0.047 14.47);
--chart-3: oklch(0.309 0.06 141.85);
--chart-4: oklch(0.289 0.054 14.697);
--chart-5: oklch(0.24 0.055 276.683);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.012 278.47);
--foreground: oklch(0.991 0.002 281.252);
--muted: oklch(0.197 0.013 11.584);
--muted-foreground: oklch(0.788 0.002 10.122);
--popover: oklch(0.122 0.012 278.47);
--popover-foreground: oklch(0.991 0.002 281.252);
--card: oklch(0.134 0.013 278.666);
--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.243 0.05 277.156);
--primary-foreground: oklch(0.768 0.057 279.992);
--secondary: oklch(0.261 0.047 14.47);
--secondary-foreground: oklch(0.785 0.052 11.591);
--accent: oklch(0.309 0.06 141.85);
--accent-foreground: oklch(0.842 0.073 142.268);
--destructive: oklch(0.609 0.213 33.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.243 0.05 277.156);
--chart-1: oklch(0.243 0.05 277.156);
--chart-2: oklch(0.261 0.047 14.47);
--chart-3: oklch(0.309 0.06 141.85);
--chart-4: oklch(0.289 0.054 14.697);
--chart-5: oklch(0.24 0.055 276.683);
}