Electronic Misty Haze is a shadcn/ui theme built around a muted light orange primary color (#d1ccc7) with muted light blue accents (#c7ccd1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light orange primary (#d1ccc7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040301black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #d1ccc7lightgrey | #d1ccc7lightgrey |
| Primary foreground | #38332edarkslategray | #38332edarkslategray |
| Secondary | #c7ccd1lightgrey | #c7ccd1lightgrey |
| Secondary foreground | #2e3338darkslategray | #2e3338darkslategray |
| Muted | #e8eaedlavender | #121417black |
| Muted foreground | #40474fdarkslategray | #b0b7bfsilver |
| Accent | #c7ccd1lightgrey | #c7ccd1lightgrey |
| Accent foreground | #2e3338darkslategray | #2e3338darkslategray |
| Destructive | #6d2503maroon | #ef5006orangered |
| Destructive foreground | #fdc1a5lightpink | #ffffffwhite |
| Border | #e9e6e2gainsboro | #25211dblack |
| Input | #e9e6e2gainsboro | #25211dblack |
| Ring | #d1ccc7lightgrey | #d1ccc7lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 9.10:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Electronic Misty Haze in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.096 0.012 80.031);
--muted: oklch(0.937 0.005 251.494);
--muted-foreground: oklch(0.394 0.016 251.745);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.926 0.006 71.396);
--input: oklch(0.926 0.006 71.396);
--primary: oklch(0.848 0.008 71.366);
--primary-foreground: oklch(0.325 0.01 71.142);
--secondary: oklch(0.842 0.008 251.53);
--secondary-foreground: oklch(0.318 0.011 251.702);
--accent: oklch(0.842 0.008 251.53);
--accent-foreground: oklch(0.318 0.011 251.702);
--destructive: oklch(0.369 0.111 40.818);
--destructive-foreground: oklch(0.858 0.078 46.014);
--ring: oklch(0.848 0.008 71.366);
--chart-1: oklch(0.848 0.008 71.366);
--chart-2: oklch(0.842 0.008 251.53);
--chart-3: oklch(0.842 0.008 251.53);
--chart-4: oklch(0.866 0.007 251.516);
--chart-5: oklch(0.849 0.011 71.336);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 71.446);
--muted: oklch(0.191 0.007 251.743);
--muted-foreground: oklch(0.777 0.013 251.584);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.252 0.01 71.035);
--input: oklch(0.252 0.01 71.035);
--primary: oklch(0.848 0.008 71.366);
--primary-foreground: oklch(0.325 0.01 71.142);
--secondary: oklch(0.842 0.008 251.53);
--secondary-foreground: oklch(0.318 0.011 251.702);
--accent: oklch(0.842 0.008 251.53);
--accent-foreground: oklch(0.318 0.011 251.702);
--destructive: oklch(0.644 0.206 38.623);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.848 0.008 71.366);
--chart-1: oklch(0.848 0.008 71.366);
--chart-2: oklch(0.842 0.008 251.53);
--chart-3: oklch(0.842 0.008 251.53);
--chart-4: oklch(0.866 0.007 251.516);
--chart-5: oklch(0.849 0.011 71.336);
}