Dull is a shadcn/ui theme built around a near-black primary color (#040b06) with near-black accents (#0b040a). The light mode uses a neutral background (#fbfefc). Dark mode keeps the near-black primary (#040b06) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030704black |
| Foreground | #031707black | #ffffffwhite |
| Card | #fbfefcwhite | #030704black |
| Card foreground | #031707black | #ffffffwhite |
| Popover | #fbfefcwhite | #030704black |
| Popover foreground | #031707black | #ffffffwhite |
| Primary | #040b06black | #040b06black |
| Primary foreground | #76cb89darkseagreen | #76cb89darkseagreen |
| Secondary | #0b040ablack | #0b040ablack |
| Secondary foreground | #cb76b9orchid | #cb76b9orchid |
| Muted | #e9d8e5gainsboro | #271624black |
| Muted foreground | #5d4658dimgray | #b9a2b4darkgray |
| Accent | #0b040ablack | #0b040ablack |
| Accent foreground | #cb76b9orchid | #cb76b9orchid |
| Destructive | #810909maroon | #e01010red |
| Destructive foreground | #fbc1c1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040b06black | #040b06black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.28:1 | AAA |
| Text on card | 18.28:1 | AAA |
| Primary button | 10.10:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 6.19:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 10.10:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 7.25:1 | AAA |
| Accent | 6.58:1 | AA |
| Destructive | 4.93:1 | AA |
Paste this into your globals.css to use Dull in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 152.558);
--foreground: oklch(0.181 0.043 149.62);
--muted: oklch(0.899 0.027 333.072);
--muted-foreground: oklch(0.426 0.042 334.057);
--popover: oklch(0.994 0.004 152.558);
--popover-foreground: oklch(0.181 0.043 149.62);
--card: oklch(0.994 0.004 152.558);
--card-foreground: oklch(0.181 0.043 149.62);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.139 0.019 151.934);
--primary-foreground: oklch(0.771 0.126 149.63);
--secondary: oklch(0.125 0.021 333.416);
--secondary-foreground: oklch(0.681 0.135 335.456);
--accent: oklch(0.125 0.021 333.416);
--accent-foreground: oklch(0.681 0.135 335.456);
--destructive: oklch(0.383 0.15 28.284);
--destructive-foreground: oklch(0.863 0.066 18.525);
--ring: oklch(0.139 0.019 151.934);
--chart-1: oklch(0.139 0.019 151.934);
--chart-2: oklch(0.125 0.021 333.416);
--chart-3: oklch(0.125 0.021 333.416);
--chart-4: oklch(0.163 0.032 335.331);
--chart-5: oklch(0.139 0.02 151.875);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.012 152.157);
--foreground: oklch(1 0 180);
--muted: oklch(0.229 0.037 334.968);
--muted-foreground: oklch(0.738 0.036 333.36);
--popover: oklch(0.12 0.012 152.157);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.012 152.157);
--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.139 0.019 151.934);
--primary-foreground: oklch(0.771 0.126 149.63);
--secondary: oklch(0.125 0.021 333.416);
--secondary-foreground: oklch(0.681 0.135 335.456);
--accent: oklch(0.125 0.021 333.416);
--accent-foreground: oklch(0.681 0.135 335.456);
--destructive: oklch(0.574 0.23 28.703);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.139 0.019 151.934);
--chart-1: oklch(0.139 0.019 151.934);
--chart-2: oklch(0.125 0.021 333.416);
--chart-3: oklch(0.125 0.021 333.416);
--chart-4: oklch(0.163 0.032 335.331);
--chart-5: oklch(0.139 0.02 151.875);
}