Utter is a shadcn/ui theme built around an indigo primary color (#6d73b0) with violet accents (#896db0). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#6d73b0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #02030eblack | #f8f9fbghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #010209black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #010209black | #fcfcfdwhite |
| Primary | #6d73b0lightslategray | #6d73b0lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6d94b0cadetblue | #6d94b0cadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #eff3f5whitesmoke | #0a0d10black |
| Muted foreground | #5b5c5ddimgray | #a2a3a4darkgray |
| Accent | #896db0lightslategray | #896db0lightslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a93c0asaddlebrown | #d94d0dchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d73b0lightslategray | #6d73b0lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.54:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 4.44:1 | AA Large |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.99:1 | AA |
| Accent | 4.29:1 | AA Large |
| Destructive | 6.30:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 4.44:1 | AA Large |
| Secondary button | 6.54:1 | AA |
| Muted text | 7.70:1 | AAA |
| Accent | 4.29:1 | AA Large |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Utter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.032 272.142);
--muted: oklch(0.961 0.005 238.438);
--muted-foreground: oklch(0.474 0.002 238.417);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.089 0.027 272.122);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.089 0.027 272.122);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.576 0.095 278.999);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.649 0.06 239.933);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.589 0.105 302.491);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.505 0.153 40.163);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.576 0.095 278.999);
--chart-1: oklch(0.576 0.095 278.999);
--chart-2: oklch(0.649 0.06 239.933);
--chart-3: oklch(0.589 0.105 302.491);
--chart-4: oklch(0.674 0.056 239.725);
--chart-5: oklch(0.569 0.104 278.571);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 282.149);
--muted: oklch(0.158 0.008 239.121);
--muted-foreground: oklch(0.716 0.002 238.395);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.991 0.002 282.181);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.002 282.181);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.576 0.095 278.999);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.649 0.06 239.933);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.589 0.105 302.491);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.606 0.186 39.722);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.576 0.095 278.999);
--chart-1: oklch(0.576 0.095 278.999);
--chart-2: oklch(0.649 0.06 239.933);
--chart-3: oklch(0.589 0.105 302.491);
--chart-4: oklch(0.674 0.056 239.725);
--chart-5: oklch(0.569 0.104 278.571);
}