Odd is a shadcn/ui theme built around a muted yellow primary color (#c5c1a0) with muted green accents (#b7c5a0). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the muted yellow primary (#c5c1a0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #000000black |
| Foreground | #000000black | #fbfbf9snow |
| Card | #fdfcf7snow | #000000black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #fdfcf7snow | #000000black |
| Popover foreground | #000000black | #fbfbf9snow |
| Primary | #c5c1a0tan | #c5c1a0tan |
| Primary foreground | #201e13black | #201e13black |
| Secondary | #c5aea0tan | #c5aea0tan |
| Secondary foreground | #201813black | #201813black |
| Muted | #edeae8linen | #171412black |
| Muted foreground | #685c55dimgray | #aa9e97darkgray |
| Accent | #b7c5a0darkgray | #b7c5a0darkgray |
| Accent foreground | #1b2013black | #1b2013black |
| Destructive | #93320bsaddlebrown | #f06c38tomato |
| Destructive foreground | #fcdfd4antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c5c1a0tan | #c5c1a0tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 9.12:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 9.10:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 9.12:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 9.10:1 | AAA |
| Destructive | 6.90:1 | AA |
Paste this into your globals.css to use Odd in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 100.435);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.004 54.45);
--muted-foreground: oklch(0.484 0.019 53.979);
--popover: oklch(0.991 0.007 100.435);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.007 100.435);
--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.805 0.044 101.105);
--primary-foreground: oklch(0.234 0.02 101.44);
--secondary: oklch(0.767 0.033 53.93);
--secondary-foreground: oklch(0.217 0.015 53.57);
--accent: oklch(0.802 0.053 124.633);
--accent-foreground: oklch(0.233 0.024 125.215);
--destructive: oklch(0.454 0.139 38.667);
--destructive-foreground: oklch(0.925 0.035 42.835);
--ring: oklch(0.805 0.044 101.105);
--chart-1: oklch(0.805 0.044 101.105);
--chart-2: oklch(0.767 0.033 53.93);
--chart-3: oklch(0.802 0.053 124.633);
--chart-4: oklch(0.791 0.029 54.006);
--chart-5: oklch(0.81 0.05 101.181);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.002 100.368);
--muted: oklch(0.193 0.006 54.11);
--muted-foreground: oklch(0.709 0.017 54.176);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.002 100.368);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.002 100.368);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.805 0.044 101.105);
--primary-foreground: oklch(0.234 0.02 101.44);
--secondary: oklch(0.767 0.033 53.93);
--secondary-foreground: oklch(0.217 0.015 53.57);
--accent: oklch(0.802 0.053 124.633);
--accent-foreground: oklch(0.233 0.024 125.215);
--destructive: oklch(0.684 0.176 40.703);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.805 0.044 101.105);
--chart-1: oklch(0.805 0.044 101.105);
--chart-2: oklch(0.767 0.033 53.93);
--chart-3: oklch(0.802 0.053 124.633);
--chart-4: oklch(0.791 0.029 54.006);
--chart-5: oklch(0.81 0.05 101.181);
}