Utter is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#020302). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-black primary (#030203) on a neutral background (#060308).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060308black |
| Foreground | #070209black | #fdfcfdwhite |
| Card | #fbf7fdghostwhite | #0a040bblack |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #fbf7fdghostwhite | #0a040bblack |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #030203black | #030203black |
| Primary foreground | #a883b4darkgray | #a883b4darkgray |
| Secondary | #020302black | #020302black |
| Secondary foreground | #8fb483darkseagreen | #8fb483darkseagreen |
| Muted | #dcead7gainsboro | #1a2815black |
| Muted foreground | #484d47darkslategray | #b4b8b2silver |
| Accent | #020302black | #020302black |
| Accent foreground | #8fb483darkseagreen | #8fb483darkseagreen |
| Destructive | #cb140bfirebrick | #da160bred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030203black | #030203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 8.86:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 8.86:1 | AAA |
| Destructive | 5.73:1 | AA |
| Text on background | 20.06:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 8.86:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 8.86:1 | AAA |
| Destructive | 5.12:1 | AA |
Paste this into your globals.css to use Utter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 317.756);
--foreground: oklch(0.103 0.029 320.145);
--muted: oklch(0.921 0.03 137.818);
--muted-foreground: oklch(0.414 0.011 137.81);
--popover: oklch(0.981 0.009 317.748);
--popover-foreground: oklch(0.082 0.023 320.145);
--card: oklch(0.981 0.009 317.748);
--card-foreground: oklch(0.082 0.023 320.145);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.088 0.008 318.582);
--primary-foreground: oklch(0.662 0.083 317.545);
--secondary: oklch(0.095 0.008 136.989);
--secondary-foreground: oklch(0.731 0.081 137.991);
--accent: oklch(0.095 0.008 136.989);
--accent-foreground: oklch(0.731 0.081 137.991);
--destructive: oklch(0.536 0.211 29.462);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.088 0.008 318.582);
--chart-1: oklch(0.088 0.008 318.582);
--chart-2: oklch(0.095 0.008 136.989);
--chart-3: oklch(0.095 0.008 136.989);
--chart-4: oklch(0.151 0.013 137.312);
--chart-5: oklch(0.088 0.009 318.684);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.02 319.425);
--foreground: oklch(0.992 0.002 317.76);
--muted: oklch(0.258 0.039 138.128);
--muted-foreground: oklch(0.777 0.01 137.784);
--popover: oklch(0.122 0.024 319.252);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.024 319.252);
--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.088 0.008 318.582);
--primary-foreground: oklch(0.662 0.083 317.545);
--secondary: oklch(0.095 0.008 136.989);
--secondary-foreground: oklch(0.731 0.081 137.991);
--accent: oklch(0.095 0.008 136.989);
--accent-foreground: oklch(0.731 0.081 137.991);
--destructive: oklch(0.564 0.223 29.473);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.088 0.008 318.582);
--chart-1: oklch(0.088 0.008 318.582);
--chart-2: oklch(0.095 0.008 136.989);
--chart-3: oklch(0.095 0.008 136.989);
--chart-4: oklch(0.151 0.013 137.312);
--chart-5: oklch(0.088 0.009 318.684);
}