Enchanted is a shadcn/ui theme built around a cyan primary color (#9dc1cd) with muted light cyan accents (#e0e4e6). The light mode uses a neutral background (#f6fcfd). Dark mode keeps the cyan primary (#9dc1cd) on a neutral background (#020708).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fcfdmintcream | #020708black |
| Foreground | #020708black | #f6f8f8whitesmoke |
| Card | #f6fcfdmintcream | #020708black |
| Card foreground | #020708black | #f6f8f8whitesmoke |
| Popover | #f6fcfdmintcream | #020708black |
| Popover foreground | #020708black | #f6f8f8whitesmoke |
| Primary | #9dc1cdlightsteelblue | #9dc1cdlightsteelblue |
| Primary foreground | #132125black | #132125black |
| Secondary | #e0e4e6gainsboro | #20292cdarkslategray |
| Secondary foreground | #434e51darkslategray | #b5c4c9silver |
| Muted | #e5eef1lavender | #0e171ablack |
| Muted foreground | #3c4244darkslategray | #bbc1c3silver |
| Accent | #e0e4e6gainsboro | #20292cdarkslategray |
| Accent foreground | #434e51darkslategray | #b5c4c9silver |
| Destructive | #ad0505darkred | #f82525crimson |
| Destructive foreground | #fee6e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9dc1cdlightsteelblue | #9dc1cdlightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 8.61:1 | AAA |
| Secondary button | 6.72:1 | AA |
| Muted text | 8.64:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 8.61:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 9.93:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Enchanted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 219.553);
--foreground: oklch(0.119 0.012 214.772);
--muted: oklch(0.942 0.01 219.59);
--muted-foreground: oklch(0.373 0.008 219.693);
--popover: oklch(0.987 0.006 219.553);
--popover-foreground: oklch(0.119 0.012 214.772);
--card: oklch(0.987 0.006 219.553);
--card-foreground: oklch(0.119 0.012 214.772);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.789 0.043 220.097);
--primary-foreground: oklch(0.236 0.021 220.82);
--secondary: oklch(0.917 0.005 219.547);
--secondary-foreground: oklch(0.414 0.015 219.86);
--accent: oklch(0.917 0.005 219.547);
--accent-foreground: oklch(0.414 0.015 219.86);
--destructive: oklch(0.472 0.191 28.921);
--destructive-foreground: oklch(0.945 0.026 17.627);
--ring: oklch(0.789 0.043 220.097);
--chart-1: oklch(0.789 0.043 220.097);
--chart-2: oklch(0.917 0.005 219.547);
--chart-3: oklch(0.917 0.005 219.547);
--chart-4: oklch(0.94 0.004 219.535);
--chart-5: oklch(0.791 0.046 220.171);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.012 214.629);
--foreground: oklch(0.978 0.002 219.52);
--muted: oklch(0.199 0.014 220.422);
--muted-foreground: oklch(0.807 0.007 219.571);
--popover: oklch(0.119 0.012 214.629);
--popover-foreground: oklch(0.978 0.002 219.52);
--card: oklch(0.119 0.012 214.629);
--card-foreground: oklch(0.978 0.002 219.52);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.789 0.043 220.097);
--primary-foreground: oklch(0.236 0.021 220.82);
--secondary: oklch(0.275 0.014 220.047);
--secondary-foreground: oklch(0.811 0.018 219.695);
--accent: oklch(0.275 0.014 220.047);
--accent-foreground: oklch(0.811 0.018 219.695);
--destructive: oklch(0.628 0.24 27.771);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0.043 220.097);
--chart-1: oklch(0.789 0.043 220.097);
--chart-2: oklch(0.275 0.014 220.047);
--chart-3: oklch(0.275 0.014 220.047);
--chart-4: oklch(0.307 0.016 220.081);
--chart-5: oklch(0.791 0.046 220.171);
}