Diffuse is a shadcn/ui theme built around a vivid deep yellow primary color (#7e8410) with vivid deep green accents (#448410). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid deep yellow primary (#7e8410) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070703black |
| Foreground | #131406black | #fbfcf8snow |
| Card | #fefefbwhite | #070703black |
| Card foreground | #131406black | #fbfcf8snow |
| Popover | #fefefbwhite | #070703black |
| Popover foreground | #131406black | #fbfcf8snow |
| Primary | #7e8410olive | #7e8410olive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #845010saddlebrown | #845010saddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efebe6linen | #191510black |
| Muted foreground | #615a51dimgray | #aea79edarkgray |
| Accent | #448410forestgreen | #448410forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #770e09maroon | #f0463dtomato |
| Destructive foreground | #fabbb8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e8410olive | #7e8410olive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.39:1 | AAA |
| Text on card | 18.39:1 | AAA |
| Primary button | 4.05:1 | AA Large |
| Secondary button | 6.72:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 4.63:1 | AA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 4.05:1 | AA Large |
| Secondary button | 6.72:1 | AA |
| Muted text | 7.63:1 | AAA |
| Accent | 4.63:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Diffuse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 108.79);
--foreground: oklch(0.184 0.026 111.095);
--muted: oklch(0.942 0.009 73.151);
--muted-foreground: oklch(0.472 0.017 72.914);
--popover: oklch(0.996 0.004 108.79);
--popover-foreground: oklch(0.184 0.026 111.095);
--card: oklch(0.996 0.004 108.79);
--card-foreground: oklch(0.184 0.026 111.095);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.588 0.126 112.834);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.48 0.1 64.873);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.548 0.154 135.393);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.365 0.138 29.149);
--destructive-foreground: oklch(0.849 0.073 22.149);
--ring: oklch(0.588 0.126 112.834);
--chart-1: oklch(0.588 0.126 112.834);
--chart-2: oklch(0.48 0.1 64.873);
--chart-3: oklch(0.548 0.154 135.393);
--chart-4: oklch(0.514 0.108 64.629);
--chart-5: oklch(0.595 0.129 112.902);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.014 110.154);
--foreground: oklch(0.989 0.005 108.795);
--muted: oklch(0.199 0.013 72.57);
--muted-foreground: oklch(0.73 0.015 73.056);
--popover: oklch(0.127 0.014 110.154);
--popover-foreground: oklch(0.989 0.005 108.795);
--card: oklch(0.127 0.014 110.154);
--card-foreground: oklch(0.989 0.005 108.795);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.588 0.126 112.834);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.48 0.1 64.873);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.548 0.154 135.393);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.64 0.209 27.724);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.588 0.126 112.834);
--chart-1: oklch(0.588 0.126 112.834);
--chart-2: oklch(0.48 0.1 64.873);
--chart-3: oklch(0.548 0.154 135.393);
--chart-4: oklch(0.514 0.108 64.629);
--chart-5: oklch(0.595 0.129 112.902);
}