DI - 3 is a shadcn/ui theme built around a yellow primary color (#88743a) with light yellow accents (#ecd495). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#88743a) on a yellow-tinted background (#0b0905).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0905black |
| Foreground | #090701black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #0e0c06black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #ffffffwhite | #0b0905black |
| Popover foreground | #090701black | #fdfdfcwhite |
| Primary | #88743asienna | #88743asienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b8a266darkkhaki | #884e3asienna |
| Secondary foreground | #fcf9f8snow | #fcf9f8snow |
| Muted | #ded6d3gainsboro | #2c2421darkslategray |
| Muted foreground | #534641darkslategray | #beb1acdarkgray |
| Accent | #ecd495khaki | #74883aolivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ffdcdcmistyrose | #fa6833tomato |
| Destructive foreground | #ba4216firebrick | #000000black |
| Border | #f3f2f2whitesmoke | #1a1a19black |
| Input | #f3f2f2whitesmoke | #1a1a19black |
| Ring | #88743asienna | #88743asienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 4.55:1 | AA |
| Secondary button | 2.38:1 | Fail |
| Muted text | 6.32:1 | AA |
| Accent | 1.45:1 | Fail |
| Destructive | 4.25:1 | AA Large |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 4.55:1 | AA |
| Secondary button | 6.30:1 | AA |
| Muted text | 7.32:1 | AAA |
| Accent | 3.95:1 | AA Large |
| Destructive | 7.08:1 | AAA |
Paste this into your globals.css to use DI - 3 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.128 0.019 97.462);
--muted: oklch(0.882 0.01 39.44);
--muted-foreground: oklch(0.405 0.02 39.288);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.128 0.019 97.462);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.101 0.015 97.462);
--border: oklch(0.962 0.001 91.416);
--input: oklch(0.962 0.001 91.416);
--primary: oklch(0.565 0.081 91.245);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.718 0.083 90.051);
--secondary-foreground: oklch(0.984 0.004 39.484);
--accent: oklch(0.875 0.085 89.553);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.923 0.039 17.885);
--destructive-foreground: oklch(0.542 0.164 38.096);
--ring: oklch(0.565 0.081 91.245);
--chart-1: oklch(0.565 0.081 91.245);
--chart-2: oklch(0.718 0.083 90.051);
--chart-3: oklch(0.875 0.085 89.553);
--chart-4: oklch(0.737 0.078 90.152);
--chart-5: oklch(0.571 0.086 91.076);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.012 94.915);
--foreground: oklch(0.993 0.001 91.414);
--muted: oklch(0.267 0.013 39.286);
--muted-foreground: oklch(0.769 0.017 39.385);
--popover: oklch(0.14 0.012 94.915);
--popover-foreground: oklch(0.993 0.001 91.414);
--card: oklch(0.155 0.013 93.085);
--card-foreground: oklch(1 0 180);
--border: oklch(0.217 0.002 91.5);
--input: oklch(0.217 0.002 91.5);
--primary: oklch(0.565 0.081 91.245);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.486 0.084 39.141);
--secondary-foreground: oklch(0.984 0.004 39.484);
--accent: oklch(0.593 0.106 121.422);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.693 0.19 39.158);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.565 0.081 91.245);
--chart-1: oklch(0.565 0.081 91.245);
--chart-2: oklch(0.486 0.084 39.141);
--chart-3: oklch(0.593 0.106 121.422);
--chart-4: oklch(0.513 0.09 39.137);
--chart-5: oklch(0.571 0.086 91.076);
}