Mixed is a shadcn/ui theme built around a muted deep yellow primary color (#45432b) with muted deep green accents (#3a452b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#45432b) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080702black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #080702black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #080702black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #45432bdarkolivegreen | #45432bdarkolivegreen |
| Primary foreground | #dcdac7lightgrey | #dcdac7lightgrey |
| Secondary | #45362bdarkslategray | #45362bdarkslategray |
| Secondary foreground | #dcd0c7lightgrey | #dcd0c7lightgrey |
| Muted | #eae2dcgainsboro | #231b15black |
| Muted foreground | #443f3bdarkslategray | #c4bfbbsilver |
| Accent | #3a452bdarkslategray | #3a452bdarkslategray |
| Accent foreground | #d3dcc7lightgrey | #d3dcc7lightgrey |
| Destructive | #b84005firebrick | #ef5406orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #45432bdarkolivegreen | #45432bdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 8.12:1 | AAA |
| Accent | 7.18:1 | AAA |
| Destructive | 5.55:1 | AA |
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 9.28:1 | AAA |
| Accent | 7.18:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Mixed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.917 0.012 60.105);
--muted-foreground: oklch(0.372 0.01 59.93);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.379 0.038 104.596);
--primary-foreground: oklch(0.885 0.026 103.595);
--secondary: oklch(0.347 0.028 59.072);
--secondary-foreground: oklch(0.864 0.018 59.992);
--accent: oklch(0.373 0.044 127.458);
--accent-foreground: oklch(0.881 0.03 126.201);
--destructive: oklch(0.536 0.165 40.242);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.379 0.038 104.596);
--chart-1: oklch(0.379 0.038 104.596);
--chart-2: oklch(0.347 0.028 59.072);
--chart-3: oklch(0.373 0.044 127.458);
--chart-4: oklch(0.377 0.031 59.038);
--chart-5: oklch(0.384 0.043 104.717);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.016 105.854);
--foreground: oklch(1 0 180);
--muted: oklch(0.23 0.017 59.202);
--muted-foreground: oklch(0.807 0.008 60.15);
--popover: oklch(0.129 0.016 105.854);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.129 0.016 105.854);
--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.379 0.038 104.596);
--primary-foreground: oklch(0.885 0.026 103.595);
--secondary: oklch(0.347 0.028 59.072);
--secondary-foreground: oklch(0.864 0.018 59.992);
--accent: oklch(0.373 0.044 127.458);
--accent-foreground: oklch(0.881 0.03 126.201);
--destructive: oklch(0.648 0.203 39.67);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.379 0.038 104.596);
--chart-1: oklch(0.379 0.038 104.596);
--chart-2: oklch(0.347 0.028 59.072);
--chart-3: oklch(0.373 0.044 127.458);
--chart-4: oklch(0.377 0.031 59.038);
--chart-5: oklch(0.384 0.043 104.717);
}