Evocation is a shadcn/ui theme built around a yellow primary color (#dda822) with violet accents (#a822dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#dda822) on a yellow-tinted background (#100c05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100c05black |
| Foreground | #050301black | #fdfdfcwhite |
| Card | #ffffffwhite | #100c05black |
| Card foreground | #050301black | #fdfdfcwhite |
| Popover | #ffffffwhite | #100c05black |
| Popover foreground | #050301black | #fdfdfcwhite |
| Primary | #dda822goldenrod | #dda822goldenrod |
| Primary foreground | #2c2207black | #2c2207black |
| Secondary | #22dda8lightseagreen | #22dda8lightseagreen |
| Secondary foreground | #072c22black | #072c22black |
| Muted | #d7e4e1gainsboro | #1b2824black |
| Muted foreground | #4b625cdimgray | #9db4addarkgray |
| Accent | #a822dddarkorchid | #a822dddarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c03502firebrick | #f24202orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dda822goldenrod | #dda822goldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 5.33:1 | AA |
| Destructive | 5.61:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 5.33:1 | AA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Evocation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.017 96.025);
--muted: oklch(0.909 0.015 177.229);
--muted-foreground: oklch(0.476 0.029 175.809);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.102 0.017 96.025);
--card: oklch(1 0 180);
--card-foreground: oklch(0.102 0.017 96.025);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.76 0.148 84.36);
--primary-foreground: oklch(0.256 0.044 87.192);
--secondary: oklch(0.798 0.158 167.156);
--secondary-foreground: oklch(0.264 0.046 170.08);
--accent: oklch(0.562 0.259 313.184);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.536 0.183 35.969);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.76 0.148 84.36);
--chart-1: oklch(0.76 0.148 84.36);
--chart-2: oklch(0.798 0.158 167.156);
--chart-3: oklch(0.562 0.259 313.184);
--chart-4: oklch(0.806 0.153 168.214);
--chart-5: oklch(0.767 0.151 83.903);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.018 91.078);
--foreground: oklch(0.993 0.001 88.798);
--muted: oklch(0.262 0.02 175.33);
--muted-foreground: oklch(0.749 0.026 176.653);
--popover: oklch(0.158 0.018 91.078);
--popover-foreground: oklch(0.993 0.001 88.798);
--card: oklch(0.158 0.018 91.078);
--card-foreground: oklch(0.993 0.001 88.798);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.76 0.148 84.36);
--primary-foreground: oklch(0.256 0.044 87.192);
--secondary: oklch(0.798 0.158 167.156);
--secondary-foreground: oklch(0.264 0.046 170.08);
--accent: oklch(0.562 0.259 313.184);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.637 0.22 35.513);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.76 0.148 84.36);
--chart-1: oklch(0.76 0.148 84.36);
--chart-2: oklch(0.798 0.158 167.156);
--chart-3: oklch(0.562 0.259 313.184);
--chart-4: oklch(0.806 0.153 168.214);
--chart-5: oklch(0.767 0.151 83.903);
}