Normal is a shadcn/ui theme built around a muted deep purple primary color (#0b090b) with muted deep green accents (#090b09). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#0b090b) on a purple-tinted background (#0d070d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d070dblack |
| Foreground | #150416black | #fdfcfdwhite |
| Card | #ffffffwhite | #0d070dblack |
| Card foreground | #150416black | #fdfcfdwhite |
| Popover | #ffffffwhite | #0d070dblack |
| Popover foreground | #150416black | #fdfcfdwhite |
| Primary | #0b090bblack | #0b090bblack |
| Primary foreground | #ad99addarkgray | #ad99addarkgray |
| Secondary | #090b09black | #090b09black |
| Secondary foreground | #9aad99darkseagreen | #9aad99darkseagreen |
| Muted | #d1ebd1gainsboro | #152e14black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #090b09black | #090b09black |
| Accent foreground | #9aad99darkseagreen | #9aad99darkseagreen |
| Destructive | #b31a09firebrick | #f32812orangered |
| Destructive foreground | #fef2f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b090bblack | #0b090bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.73:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Normal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.15 0.049 326.485);
--muted: oklch(0.914 0.045 144.298);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.15 0.049 326.485);
--card: oklch(1 0 180);
--card-foreground: oklch(0.15 0.049 326.485);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.144 0.006 324.895);
--primary-foreground: oklch(0.707 0.036 324.941);
--secondary: oklch(0.148 0.006 144.31);
--secondary-foreground: oklch(0.728 0.036 144.294);
--accent: oklch(0.148 0.006 144.31);
--accent-foreground: oklch(0.728 0.036 144.294);
--destructive: oklch(0.492 0.188 30.477);
--destructive-foreground: oklch(0.97 0.014 25.108);
--ring: oklch(0.144 0.006 324.895);
--chart-1: oklch(0.144 0.006 324.895);
--chart-2: oklch(0.148 0.006 144.31);
--chart-3: oklch(0.148 0.006 144.31);
--chart-4: oklch(0.185 0.01 144.268);
--chart-5: oklch(0.144 0.008 324.974);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.017 325.399);
--foreground: oklch(0.992 0.002 324.633);
--muted: oklch(0.274 0.057 143.176);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.141 0.017 325.399);
--popover-foreground: oklch(0.992 0.002 324.633);
--card: oklch(0.141 0.017 325.399);
--card-foreground: oklch(0.992 0.002 324.633);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.144 0.006 324.895);
--primary-foreground: oklch(0.707 0.036 324.941);
--secondary: oklch(0.148 0.006 144.31);
--secondary-foreground: oklch(0.728 0.036 144.294);
--accent: oklch(0.148 0.006 144.31);
--accent-foreground: oklch(0.728 0.036 144.294);
--destructive: oklch(0.618 0.235 30.481);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.144 0.006 324.895);
--chart-1: oklch(0.144 0.006 324.895);
--chart-2: oklch(0.148 0.006 144.31);
--chart-3: oklch(0.148 0.006 144.31);
--chart-4: oklch(0.185 0.01 144.268);
--chart-5: oklch(0.144 0.008 324.974);
}