Hidden is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#d8cbcb). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0505black |
| Foreground | #0d0202black | #fdfcfcsnow |
| Card | #ffffffwhite | #0a0505black |
| Card foreground | #0d0202black | #fdfcfcsnow |
| Popover | #ffffffwhite | #0a0505black |
| Popover foreground | #0d0202black | #fdfcfcsnow |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #ece9e9linen | #1e1515black |
| Secondary foreground | #574c4cdarkslategray | #c0a5a5darkgray |
| Muted | #ece9e9linen | #161313black |
| Muted foreground | #564d4ddarkslategray | #b2a9a9darkgray |
| Accent | #d8cbcblightgrey | #331f1fblack |
| Accent foreground | #403030darkslategray | #d1b3b3silver |
| Destructive | #8d1201darkred | #fd290dorangered |
| Destructive foreground | #fec9c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 6.80:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Hidden in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.114 0.029 22.711);
--muted: oklch(0.937 0.003 17.205);
--muted-foreground: oklch(0.429 0.013 17.674);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.114 0.029 22.711);
--card: oklch(1 0 180);
--card-foreground: oklch(0.114 0.029 22.711);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.937 0.003 17.212);
--secondary-foreground: oklch(0.428 0.015 17.768);
--accent: oklch(0.852 0.014 17.439);
--accent-foreground: oklch(0.328 0.023 18.392);
--destructive: oklch(0.413 0.159 31.191);
--destructive-foreground: oklch(0.882 0.061 27.061);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.937 0.003 17.212);
--chart-3: oklch(0.852 0.014 17.439);
--chart-4: oklch(0.961 0.002 17.191);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 19.05);
--foreground: oklch(0.992 0.001 17.17);
--muted: oklch(0.19 0.004 17.508);
--muted-foreground: oklch(0.741 0.011 17.412);
--popover: oklch(0.124 0.013 19.05);
--popover-foreground: oklch(0.992 0.001 17.17);
--card: oklch(0.124 0.013 19.05);
--card-foreground: oklch(0.992 0.001 17.17);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.207 0.015 18.445);
--secondary-foreground: oklch(0.745 0.032 17.901);
--accent: oklch(0.264 0.032 19.426);
--accent-foreground: oklch(0.792 0.035 17.925);
--destructive: oklch(0.636 0.244 30.78);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.207 0.015 18.445);
--chart-3: oklch(0.264 0.032 19.426);
--chart-4: oklch(0.238 0.019 18.581);
--chart-5: oklch(1 0 180);
}