Utter is a shadcn/ui theme built around a vivid yellow primary color (#cba115) with vivid purple accents (#a115cb). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid yellow primary (#cba115) on a yellow-tinted background (#0f0d05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0f0d05black |
| Foreground | #120e02black | #fdfdfcwhite |
| Card | #fcfaf2floralwhite | #131007black |
| Card foreground | #0e0b02black | #ffffffwhite |
| Popover | #fdfcf7snow | #0f0d05black |
| Popover foreground | #120e02black | #fdfdfcwhite |
| Primary | #cba115goldenrod | #cba115goldenrod |
| Primary foreground | #120f02black | #120f02black |
| Secondary | #15cba1lightseagreen | #15cba1lightseagreen |
| Secondary foreground | #02120fblack | #02120fblack |
| Muted | #d8eee9gainsboro | #112722black |
| Muted foreground | #384c48darkslategray | #b3c7c2silver |
| Accent | #a115cbdarkviolet | #a115cbdarkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b62c11firebrick | #e53815orangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cba115goldenrod | #cba115goldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.73:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 9.21:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 6.03:1 | AA |
| Destructive | 6.07:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 9.21:1 | AAA |
| Muted text | 8.85:1 | AAA |
| Accent | 6.03:1 | AA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Utter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 92.725);
--foreground: oklch(0.166 0.028 95.809);
--muted: oklch(0.932 0.025 180.198);
--muted-foreground: oklch(0.399 0.026 178.973);
--popover: oklch(0.99 0.007 92.725);
--popover-foreground: oklch(0.166 0.028 95.809);
--card: oklch(0.985 0.01 92.758);
--card-foreground: oklch(0.149 0.024 97.58);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.727 0.144 88.98);
--primary-foreground: oklch(0.167 0.029 95.911);
--secondary: oklch(0.751 0.145 170.36);
--secondary-foreground: oklch(0.167 0.027 177.587);
--accent: oklch(0.533 0.251 315.632);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.511 0.178 32.802);
--destructive-foreground: oklch(0.991 0.004 31.05);
--ring: oklch(0.727 0.144 88.98);
--chart-1: oklch(0.727 0.144 88.98);
--chart-2: oklch(0.751 0.145 170.36);
--chart-3: oklch(0.533 0.251 315.632);
--chart-4: oklch(0.789 0.153 170.293);
--chart-5: oklch(0.734 0.147 88.602);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.017 94.731);
--foreground: oklch(0.994 0.002 92.676);
--muted: oklch(0.253 0.03 176.793);
--muted-foreground: oklch(0.812 0.023 180.158);
--popover: oklch(0.158 0.017 94.731);
--popover-foreground: oklch(0.994 0.002 92.676);
--card: oklch(0.174 0.019 93.766);
--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.727 0.144 88.98);
--primary-foreground: oklch(0.167 0.029 95.911);
--secondary: oklch(0.751 0.145 170.36);
--secondary-foreground: oklch(0.167 0.027 177.587);
--accent: oklch(0.533 0.251 315.632);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.604 0.213 32.695);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.727 0.144 88.98);
--chart-1: oklch(0.727 0.144 88.98);
--chart-2: oklch(0.751 0.145 170.36);
--chart-3: oklch(0.533 0.251 315.632);
--chart-4: oklch(0.789 0.153 170.293);
--chart-5: oklch(0.734 0.147 88.602);
}