Odd is a shadcn/ui theme built around a neutral gray primary color (#4c4b43) with neutral gray accents (#484c43). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#4c4b43) on a yellow-tinted background (#0b0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0b04black |
| Foreground | #000000black | #fdfdfbsnow |
| Card | #ffffffwhite | #0b0b04black |
| Card foreground | #000000black | #fdfdfbsnow |
| Popover | #ffffffwhite | #0b0b04black |
| Popover foreground | #000000black | #fdfdfbsnow |
| Primary | #4c4b43darkslategray | #4c4b43darkslategray |
| Primary foreground | #e2e2dfgainsboro | #e2e2dfgainsboro |
| Secondary | #4c4743darkslategray | #4c4743darkslategray |
| Secondary foreground | #e2e0dfgainsboro | #e2e0dfgainsboro |
| Muted | #f4f2f0whitesmoke | #0f0d0bblack |
| Muted foreground | #6a635cdimgray | #a39b95darkgray |
| Accent | #484c43darkslategray | #484c43darkslategray |
| Accent foreground | #e1e2dfgainsboro | #e1e2dfgainsboro |
| Destructive | #780907maroon | #f32e2bcrimson |
| Destructive foreground | #fbb8b7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c4b43darkslategray | #4c4b43darkslategray |
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 | 6.73:1 | AA |
| Secondary button | 6.96:1 | AA |
| Muted text | 5.30:1 | AA |
| Accent | 6.78:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 6.73:1 | AA |
| Secondary button | 6.96:1 | AA |
| Muted text | 7.10:1 | AAA |
| Accent | 6.78:1 | AA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Odd in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.963 0.004 64.041);
--muted-foreground: oklch(0.505 0.014 63.732);
--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.412 0.013 105.364);
--primary-foreground: oklch(0.912 0.005 104.899);
--secondary: oklch(0.401 0.009 63.799);
--secondary-foreground: oklch(0.909 0.003 64.045);
--accent: oklch(0.409 0.015 127.566);
--accent-foreground: oklch(0.911 0.005 127.183);
--destructive: oklch(0.366 0.143 28.677);
--destructive-foreground: oklch(0.844 0.078 19.941);
--ring: oklch(0.412 0.013 105.364);
--chart-1: oklch(0.412 0.013 105.364);
--chart-2: oklch(0.401 0.009 63.799);
--chart-3: oklch(0.409 0.015 127.566);
--chart-4: oklch(0.43 0.01 63.795);
--chart-5: oklch(0.418 0.02 105.609);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.015 106.759);
--foreground: oklch(0.995 0.003 104.854);
--muted: oklch(0.159 0.006 63.612);
--muted-foreground: oklch(0.694 0.013 63.853);
--popover: oklch(0.145 0.015 106.759);
--popover-foreground: oklch(0.995 0.003 104.854);
--card: oklch(0.145 0.015 106.759);
--card-foreground: oklch(0.995 0.003 104.854);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.412 0.013 105.364);
--primary-foreground: oklch(0.912 0.005 104.899);
--secondary: oklch(0.401 0.009 63.799);
--secondary-foreground: oklch(0.909 0.003 64.045);
--accent: oklch(0.409 0.015 127.566);
--accent-foreground: oklch(0.911 0.005 127.183);
--destructive: oklch(0.623 0.23 27.739);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.412 0.013 105.364);
--chart-1: oklch(0.412 0.013 105.364);
--chart-2: oklch(0.401 0.009 63.799);
--chart-3: oklch(0.409 0.015 127.566);
--chart-4: oklch(0.43 0.01 63.795);
--chart-5: oklch(0.418 0.02 105.609);
}