Durian is a shadcn/ui theme built around a neutral gray primary color (#9c9c9c) with muted light red accents (#ddcaca). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#9c9c9c) on a neutral background (#080202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080202black |
| Foreground | #0c0303black | #fbf8f8snow |
| Card | #ffffffwhite | #080202black |
| Card foreground | #0c0303black | #fbf8f8snow |
| Popover | #ffffffwhite | #080202black |
| Popover foreground | #0c0303black | #fbf8f8snow |
| Primary | #9c9c9cdarkgray | #9c9c9cdarkgray |
| Primary foreground | #030303black | #030303black |
| Secondary | #e6dbdbgainsboro | #333333darkslategray |
| Secondary foreground | #543b3bdarkslategray | #cccccclightgrey |
| Muted | #ede8e8linen | #171212black |
| Muted foreground | #5f5858dimgray | #a7a0a0darkgray |
| Accent | #ddcacalightgrey | #494141darkslategray |
| Accent foreground | #482e2edarkslategray | #e0dcdcgainsboro |
| Destructive | #750000maroon | #ff1f1fred |
| Destructive foreground | #ffa8a8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9c9c9cdarkgray | #9c9c9cdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Durian in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.024 21.377);
--muted: oklch(0.935 0.005 17.252);
--muted-foreground: oklch(0.468 0.01 17.5);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.024 21.377);
--card: oklch(1 0 180);
--card-foreground: oklch(0.117 0.024 21.377);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.691 0 180);
--primary-foreground: oklch(0.092 0 180);
--secondary: oklch(0.9 0.011 17.369);
--secondary-foreground: oklch(0.381 0.034 18.791);
--accent: oklch(0.855 0.021 17.579);
--accent-foreground: oklch(0.331 0.038 19.299);
--destructive: oklch(0.354 0.145 29.234);
--destructive-foreground: oklch(0.817 0.103 19.518);
--ring: oklch(0.691 0 180);
--chart-1: oklch(0.691 0 180);
--chart-2: oklch(0.9 0.011 17.369);
--chart-3: oklch(0.855 0.021 17.579);
--chart-4: oklch(0.925 0.008 17.31);
--chart-5: oklch(0.687 0.007 17.327);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.019 20.998);
--foreground: oklch(0.983 0.003 17.209);
--muted: oklch(0.188 0.008 17.897);
--muted-foreground: oklch(0.71 0.009 17.358);
--popover: oklch(0.103 0.019 20.998);
--popover-foreground: oklch(0.983 0.003 17.209);
--card: oklch(0.103 0.019 20.998);
--card-foreground: oklch(0.983 0.003 17.209);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.691 0 180);
--primary-foreground: oklch(0.092 0 180);
--secondary: oklch(0.321 0 180);
--secondary-foreground: oklch(0.845 0 164.055);
--accent: oklch(0.383 0.011 17.66);
--accent-foreground: oklch(0.897 0.004 17.238);
--destructive: oklch(0.637 0.249 28.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.691 0 180);
--chart-1: oklch(0.691 0 180);
--chart-2: oklch(0.321 0 180);
--chart-3: oklch(0.383 0.011 17.66);
--chart-4: oklch(0.351 0 167.471);
--chart-5: oklch(0.687 0.007 17.327);
}