Imaginative is a shadcn/ui theme built around a neutral gray primary color (#61695d) with neutral gray accents (#665d69). The light mode uses a neutral background (#f9fcf7). Dark mode keeps the neutral gray primary (#61695d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf7mintcream | #000000black |
| Foreground | #091505black | #fcfdfcwhite |
| Card | #f6fbf4whitesmoke | #030303black |
| Card foreground | #071104black | #ffffffwhite |
| Popover | #f9fcf7mintcream | #000000black |
| Popover foreground | #091505black | #fcfdfcwhite |
| Primary | #61695ddimgray | #61695ddimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #665d69dimgray | #665d69dimgray |
| Secondary foreground | #fdfcfdwhite | #fdfcfdwhite |
| Muted | #e9e5eblavender | #18141ablack |
| Muted foreground | #493b4edarkslategray | #bfb1c4silver |
| Accent | #665d69dimgray | #665d69dimgray |
| Accent foreground | #fdfcfdwhite | #fdfcfdwhite |
| Destructive | #6c1b09maroon | #eb3c14orangered |
| Destructive foreground | #f8bdaflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #61695ddimgray | #61695ddimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.14:1 | AAA |
| Text on card | 18.34:1 | AAA |
| Primary button | 5.67:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 8.37:1 | AAA |
| Accent | 6.11:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.67:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 8.91:1 | AAA |
| Accent | 6.11:1 | AA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Imaginative in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 137.207);
--foreground: oklch(0.178 0.037 136.778);
--muted: oklch(0.928 0.009 317.168);
--muted-foreground: oklch(0.376 0.037 316.96);
--popover: oklch(0.988 0.008 137.207);
--popover-foreground: oklch(0.178 0.037 136.778);
--card: oklch(0.982 0.011 137.217);
--card-foreground: oklch(0.161 0.032 136.07);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.511 0.021 137.29);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.492 0.022 317.09);
--secondary-foreground: oklch(0.992 0 317.188);
--accent: oklch(0.492 0.022 317.09);
--accent-foreground: oklch(0.992 0 317.188);
--destructive: oklch(0.355 0.117 33.789);
--destructive-foreground: oklch(0.848 0.072 32.934);
--ring: oklch(0.511 0.021 137.29);
--chart-1: oklch(0.511 0.021 137.29);
--chart-2: oklch(0.492 0.022 317.09);
--chart-3: oklch(0.492 0.022 317.09);
--chart-4: oklch(0.519 0.023 317.089);
--chart-5: oklch(0.516 0.032 137.343);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 137.191);
--muted: oklch(0.199 0.012 317.047);
--muted-foreground: oklch(0.777 0.031 317.098);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 137.191);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.511 0.021 137.29);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.492 0.022 317.09);
--secondary-foreground: oklch(0.992 0 317.188);
--accent: oklch(0.492 0.022 317.09);
--accent-foreground: oklch(0.992 0 317.188);
--destructive: oklch(0.618 0.216 33.276);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.511 0.021 137.29);
--chart-1: oklch(0.511 0.021 137.29);
--chart-2: oklch(0.492 0.022 317.09);
--chart-3: oklch(0.492 0.022 317.09);
--chart-4: oklch(0.519 0.023 317.089);
--chart-5: oklch(0.516 0.032 137.343);
}