Helmet is a shadcn/ui theme built around a near-black primary color (#1d1c1b) with near-black accents (#1c1b1d). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the near-black primary (#1d1c1b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #000000black |
| Foreground | #000000black | #f8f8f7whitesmoke |
| Card | #faf9f5whitesmoke | #030303black |
| Card foreground | #000000black | #fafaf9snow |
| Popover | #fcfbf8snow | #000000black |
| Popover foreground | #000000black | #f8f8f7whitesmoke |
| Primary | #1d1c1bblack | #1d1c1bblack |
| Primary foreground | #b7b6b4silver | #b7b6b4silver |
| Secondary | #1b1d1cblack | #1b1d1cblack |
| Secondary foreground | #b4b7b6silver | #b4b7b6silver |
| Muted | #e3edeblavender | #121c1ablack |
| Muted foreground | #4a645edimgray | #9bb5afdarkgray |
| Accent | #1c1b1dblack | #1c1b1dblack |
| Accent foreground | #b6b4b7silver | #b6b4b7silver |
| Destructive | #d91908red | #f72f1dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d1c1bblack | #1d1c1bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 5.36:1 | AA |
| Accent | 8.30:1 | AAA |
| Destructive | 5.14:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Helmet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 92.692);
--foreground: oklch(0 0 0);
--muted: oklch(0.938 0.011 180.622);
--muted-foreground: oklch(0.479 0.032 178.89);
--popover: oklch(0.987 0.004 92.692);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.005 92.71);
--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.228 0.002 92.729);
--primary-foreground: oklch(0.776 0.003 92.698);
--secondary: oklch(0.228 0.002 180.74);
--secondary-foreground: oklch(0.775 0.003 180.835);
--accent: oklch(0.226 0.003 318.319);
--accent-foreground: oklch(0.771 0.005 318.324);
--destructive: oklch(0.562 0.221 30.053);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.228 0.002 92.729);
--chart-1: oklch(0.228 0.002 92.729);
--chart-2: oklch(0.228 0.002 180.74);
--chart-3: oklch(0.226 0.003 318.319);
--chart-4: oklch(0.26 0.002 180.723);
--chart-5: oklch(0.23 0.004 92.828);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.002 92.675);
--muted: oklch(0.216 0.015 178.775);
--muted-foreground: oklch(0.753 0.03 179.801);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.002 92.675);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.001 92.668);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.228 0.002 92.729);
--primary-foreground: oklch(0.776 0.003 92.698);
--secondary: oklch(0.228 0.002 180.74);
--secondary-foreground: oklch(0.775 0.003 180.835);
--accent: oklch(0.226 0.003 318.319);
--accent-foreground: oklch(0.771 0.005 318.324);
--destructive: oklch(0.63 0.235 30.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.228 0.002 92.729);
--chart-1: oklch(0.228 0.002 92.729);
--chart-2: oklch(0.228 0.002 180.74);
--chart-3: oklch(0.226 0.003 318.319);
--chart-4: oklch(0.26 0.002 180.723);
--chart-5: oklch(0.23 0.004 92.828);
}