Doughnut is a shadcn/ui theme built around a muted teal primary color (#8daaa2) with muted cyan accents (#8da5aa). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted teal primary (#8daaa2) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #010403black |
| Foreground | #02120dblack | #f9fbfamintcream |
| Card | #fbfefdwhite | #010403black |
| Card foreground | #02120dblack | #f9fbfamintcream |
| Popover | #fbfefdwhite | #010403black |
| Popover foreground | #02120dblack | #f9fbfamintcream |
| Primary | #8daaa2darkseagreen | #8daaa2darkseagreen |
| Primary foreground | #020303black | #020303black |
| Secondary | #8daa93darkseagreen | #8daa93darkseagreen |
| Secondary foreground | #020302black | #020302black |
| Muted | #e9f1ebwhitesmoke | #0e160fblack |
| Muted foreground | #424d44darkslategray | #b2bdb4silver |
| Accent | #8da5aadarkgray | #8da5aadarkgray |
| Accent foreground | #020303black | #020303black |
| Destructive | #a22d07firebrick | #dc3e09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8daaa2darkseagreen | #8daaa2darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.90:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 8.28:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 8.28:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 9.50:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use Doughnut in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 176.549);
--foreground: oklch(0.166 0.027 173.253);
--muted: oklch(0.951 0.012 151.811);
--muted-foreground: oklch(0.407 0.021 151.205);
--popover: oklch(0.995 0.004 176.549);
--popover-foreground: oklch(0.166 0.027 173.253);
--card: oklch(0.995 0.004 176.549);
--card-foreground: oklch(0.166 0.027 173.253);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.714 0.035 175.134);
--primary-foreground: oklch(0.094 0.003 176.714);
--secondary: oklch(0.71 0.048 150.951);
--secondary-foreground: oklch(0.093 0.004 151.771);
--accent: oklch(0.704 0.028 214.509);
--accent-foreground: oklch(0.093 0.003 213.056);
--destructive: oklch(0.475 0.158 35.999);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.714 0.035 175.134);
--chart-1: oklch(0.714 0.035 175.134);
--chart-2: oklch(0.71 0.048 150.951);
--chart-3: oklch(0.704 0.028 214.509);
--chart-4: oklch(0.733 0.044 151.075);
--chart-5: oklch(0.719 0.042 174.834);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.012 176.842);
--foreground: oklch(0.986 0.002 176.607);
--muted: oklch(0.189 0.018 150.462);
--muted-foreground: oklch(0.788 0.018 151.66);
--popover: oklch(0.099 0.012 176.842);
--popover-foreground: oklch(0.986 0.002 176.607);
--card: oklch(0.099 0.012 176.842);
--card-foreground: oklch(0.986 0.002 176.607);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.714 0.035 175.134);
--primary-foreground: oklch(0.094 0.003 176.714);
--secondary: oklch(0.71 0.048 150.951);
--secondary-foreground: oklch(0.093 0.004 151.771);
--accent: oklch(0.704 0.028 214.509);
--accent-foreground: oklch(0.093 0.003 213.056);
--destructive: oklch(0.595 0.202 35.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.714 0.035 175.134);
--chart-1: oklch(0.714 0.035 175.134);
--chart-2: oklch(0.71 0.048 150.951);
--chart-3: oklch(0.704 0.028 214.509);
--chart-4: oklch(0.733 0.044 151.075);
--chart-5: oklch(0.719 0.042 174.834);
}