Attentive is a shadcn/ui theme built around a muted light indigo primary color (#cccddb) with muted light indigo accents (#cfcfdd). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the muted light indigo primary (#cccddb) on a neutral background (#020208).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7fdghostwhite | #020208black |
| Foreground | #040510black | #ffffffwhite |
| Card | #f3f3fcaliceblue | #04040cblack |
| Card foreground | #03040cblack | #ffffffwhite |
| Popover | #f7f7fdghostwhite | #020208black |
| Popover foreground | #040510black | #ffffffwhite |
| Primary | #cccddblightgrey | #cccddblightgrey |
| Primary foreground | #313145darkslategray | #313145darkslategray |
| Secondary | #cfcfddlightgrey | #232324black |
| Secondary foreground | #333348darkslategray | #bcbcbdsilver |
| Muted | #d5d5e2gainsboro | #1d1d2ablack |
| Muted foreground | #3b3c4edarkslategray | #b1b1c4silver |
| Accent | #cfcfddlightgrey | #232324black |
| Accent foreground | #333348darkslategray | #bcbcbdsilver |
| Destructive | #8a220fsaddlebrown | #eb6047tomato |
| Destructive foreground | #fad7d1bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cccddblightgrey | #cccddblightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 20.64:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.27:1 | AA |
Paste this into your globals.css to use Attentive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0.008 285.463);
--foreground: oklch(0.121 0.028 280.318);
--muted: oklch(0.877 0.017 285.26);
--muted-foreground: oklch(0.362 0.033 283.888);
--popover: oklch(0.977 0.008 285.463);
--popover-foreground: oklch(0.121 0.028 280.318);
--card: oklch(0.966 0.013 285.381);
--card-foreground: oklch(0.109 0.024 280.53);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.851 0.02 285.19);
--primary-foreground: oklch(0.322 0.035 283.512);
--secondary: oklch(0.86 0.019 285.221);
--secondary-foreground: oklch(0.33 0.036 283.492);
--accent: oklch(0.86 0.019 285.221);
--accent-foreground: oklch(0.33 0.036 283.492);
--destructive: oklch(0.419 0.142 32.322);
--destructive-foreground: oklch(0.907 0.04 29.685);
--ring: oklch(0.851 0.02 285.19);
--chart-1: oklch(0.851 0.02 285.19);
--chart-2: oklch(0.86 0.019 285.221);
--chart-3: oklch(0.86 0.019 285.221);
--chart-4: oklch(0.887 0.015 285.309);
--chart-5: oklch(0.848 0.024 285.111);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.02 280.995);
--foreground: oklch(1 0 180);
--muted: oklch(0.239 0.024 283.658);
--muted-foreground: oklch(0.766 0.027 284.973);
--popover: oklch(0.097 0.02 280.995);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.111 0.023 280.971);
--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.851 0.02 285.19);
--primary-foreground: oklch(0.322 0.035 283.512);
--secondary: oklch(0.258 0.001 285.527);
--secondary-foreground: oklch(0.796 0.002 285.576);
--accent: oklch(0.258 0.001 285.527);
--accent-foreground: oklch(0.796 0.002 285.576);
--destructive: oklch(0.661 0.177 32.075);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.851 0.02 285.19);
--chart-1: oklch(0.851 0.02 285.19);
--chart-2: oklch(0.258 0.001 285.527);
--chart-3: oklch(0.258 0.001 285.527);
--chart-4: oklch(0.289 0.002 285.522);
--chart-5: oklch(0.848 0.024 285.111);
}