DI - 5 is a shadcn/ui theme built around a deep yellow primary color (#584910) with light yellow accents (#ecd495). The light mode uses a neutral background (#ffffff). Dark mode switches to a yellow primary (#88743a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0c0a03black | #ffffffwhite |
| Card | #fcfbf8snow | #030303black |
| Card foreground | #080702black | #ffffffwhite |
| Popover | #fcfbf8snow | #030303black |
| Popover foreground | #080702black | #ffffffwhite |
| Primary | #584910darkolivegreen | #88743asienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #87743asienna | #272725darkslategray |
| Secondary foreground | #ffffffwhite | #c1c0bdsilver |
| Muted | #f4f1e6linen | #19150bblack |
| Muted foreground | #4a483fdarkslategray | #c0bdb5silver |
| Accent | #ecd495khaki | #272725darkslategray |
| Accent foreground | #3b3b3adarkslategray | #c1c0bdsilver |
| Destructive | #631c09maroon | #d83d13orangered |
| Destructive foreground | #f7b7a6lightpink | #ffffffwhite |
| Border | #ecebe9linen | #23221fblack |
| Input | #ecebe9linen | #23221fblack |
| Ring | #88743asienna | #88743asienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 8.84:1 | AAA |
| Secondary button | 4.57:1 | AA |
| Muted text | 8.09:1 | AAA |
| Accent | 7.69:1 | AAA |
| Destructive | 7.24:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.55:1 | AA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 9.68:1 | AAA |
| Accent | 8.22:1 | AAA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use DI - 5 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.019 95.986);
--muted: oklch(0.957 0.014 91.535);
--muted-foreground: oklch(0.4 0.014 91.674);
--popover: oklch(0.987 0.003 91.439);
--popover-foreground: oklch(0.126 0.017 96.751);
--card: oklch(0.987 0.003 91.439);
--card-foreground: oklch(0.126 0.017 96.751);
--border: oklch(0.941 0.003 91.433);
--input: oklch(0.941 0.003 91.433);
--primary: oklch(0.41 0.075 93.547);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.081 91.535);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.875 0.085 89.553);
--accent-foreground: oklch(0.352 0.002 91.448);
--destructive: oklch(0.338 0.106 35.571);
--destructive-foreground: oklch(0.835 0.079 36.035);
--ring: oklch(0.565 0.081 91.245);
--chart-1: oklch(0.41 0.075 93.547);
--chart-2: oklch(0.564 0.081 91.535);
--chart-3: oklch(0.875 0.085 89.553);
--chart-4: oklch(0.596 0.086 91.515);
--chart-5: oklch(0.413 0.077 93.329);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.02 91.763);
--muted-foreground: oklch(0.798 0.012 91.535);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.253 0.006 91.592);
--input: oklch(0.253 0.006 91.592);
--primary: oklch(0.565 0.081 91.245);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.272 0.003 91.511);
--secondary-foreground: oklch(0.808 0.004 91.454);
--accent: oklch(0.272 0.003 91.511);
--accent-foreground: oklch(0.808 0.004 91.454);
--destructive: oklch(0.587 0.197 34.788);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.565 0.081 91.245);
--chart-1: oklch(0.565 0.081 91.245);
--chart-2: oklch(0.272 0.003 91.511);
--chart-3: oklch(0.272 0.003 91.511);
--chart-4: oklch(0.303 0.004 91.515);
--chart-5: oklch(0.571 0.086 91.076);
}