Haunting is a shadcn/ui theme built around a near-black primary color (#040101) with near-black accents (#040301). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-black primary (#040101) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #000000black |
| Foreground | #000000black | #fcf9f8snow |
| Card | #fdf7f7snow | #000000black |
| Card foreground | #000000black | #fcf9f8snow |
| Popover | #fdf7f7snow | #000000black |
| Popover foreground | #000000black | #fcf9f8snow |
| Primary | #040101black | #040101black |
| Primary foreground | #d9685eindianred | #d9685eindianred |
| Secondary | #040102black | #040102black |
| Secondary foreground | #edb1calightpink | #edb1calightpink |
| Muted | #eee3e7linen | #1c1116black |
| Muted foreground | #735964dimgray | #a68c97rosybrown |
| Accent | #040301black | #040301black |
| Accent foreground | #d9a65esandybrown | #d9a65esandybrown |
| Destructive | #91370dsaddlebrown | #ed7035tomato |
| Destructive foreground | #fbe1d5antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040101black | #040101black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 11.62:1 | AAA |
| Muted text | 5.00:1 | AA |
| Accent | 9.39:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 6.02:1 | AA |
| Secondary button | 11.62:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 9.39:1 | AAA |
| Destructive | 6.96:1 | AA |
Paste this into your globals.css to use Haunting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 23.647);
--foreground: oklch(0 0 0);
--muted: oklch(0.924 0.013 350.074);
--muted-foreground: oklch(0.494 0.038 351.744);
--popover: oklch(0.981 0.007 23.647);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.007 23.647);
--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.084 0.014 29.178);
--primary-foreground: oklch(0.651 0.144 27.04);
--secondary: oklch(0.083 0.018 349.264);
--secondary-foreground: oklch(0.821 0.077 352.146);
--accent: oklch(0.097 0.012 84.445);
--accent-foreground: oklch(0.758 0.108 74.183);
--destructive: oklch(0.458 0.132 41.149);
--destructive-foreground: oklch(0.928 0.034 46.483);
--ring: oklch(0.084 0.014 29.178);
--chart-1: oklch(0.084 0.014 29.178);
--chart-2: oklch(0.083 0.018 349.264);
--chart-3: oklch(0.097 0.012 84.445);
--chart-4: oklch(0.134 0.029 351.412);
--chart-5: oklch(0.083 0.015 29.619);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 23.613);
--muted: oklch(0.196 0.02 352.382);
--muted-foreground: oklch(0.667 0.035 351.107);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 23.613);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 23.613);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.084 0.014 29.178);
--primary-foreground: oklch(0.651 0.144 27.04);
--secondary: oklch(0.083 0.018 349.264);
--secondary-foreground: oklch(0.821 0.077 352.146);
--accent: oklch(0.097 0.012 84.445);
--accent-foreground: oklch(0.758 0.108 74.183);
--destructive: oklch(0.685 0.171 43.193);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.084 0.014 29.178);
--chart-1: oklch(0.084 0.014 29.178);
--chart-2: oklch(0.083 0.018 349.264);
--chart-3: oklch(0.097 0.012 84.445);
--chart-4: oklch(0.134 0.029 351.412);
--chart-5: oklch(0.083 0.015 29.619);
}