Odd is a shadcn/ui theme built around a yellow primary color (#a7b120) with indigo accents (#2a20b1). The light mode uses a neutral background (#fdfefb). Dark mode keeps the yellow primary (#a7b120) on a yellow-tinted background (#0e0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0e0e06black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fdfefbwhite | #0e0e06black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fdfefbwhite | #0e0e06black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #a7b120yellowgreen | #a7b120yellowgreen |
| Primary foreground | #040401black | #040401black |
| Secondary | #2a20b1darkslateblue | #2a20b1darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4d3e9gainsboro | #18162cblack |
| Muted foreground | #3c3b44darkslategray | #bbbbc4silver |
| Accent | #2a20b1darkslateblue | #2a20b1darkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #db1406red | #f91706red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7b120yellowgreen | #a7b120yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.70:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 10.81:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 10.81:1 | AAA |
| Destructive | 5.11:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 10.81:1 | AAA |
| Muted text | 9.25:1 | AAA |
| Accent | 10.81:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Odd in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 109.532);
--foreground: oklch(0 0 0);
--muted: oklch(0.874 0.03 288.826);
--muted-foreground: oklch(0.357 0.015 288.66);
--popover: oklch(0.995 0.003 109.532);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.995 0.003 109.532);
--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.728 0.155 113.695);
--primary-foreground: oklch(0.106 0.017 111.392);
--secondary: oklch(0.383 0.212 272.928);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.383 0.212 272.928);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.564 0.225 29.782);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.155 113.695);
--chart-1: oklch(0.728 0.155 113.695);
--chart-2: oklch(0.383 0.212 272.928);
--chart-3: oklch(0.383 0.212 272.928);
--chart-4: oklch(0.403 0.224 272.747);
--chart-5: oklch(0.737 0.158 113.789);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.017 111.157);
--foreground: oklch(0.993 0.001 109.501);
--muted: oklch(0.215 0.042 285.287);
--muted-foreground: oklch(0.795 0.012 289.182);
--popover: oklch(0.161 0.017 111.157);
--popover-foreground: oklch(0.993 0.001 109.501);
--card: oklch(0.161 0.017 111.157);
--card-foreground: oklch(0.993 0.001 109.501);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.728 0.155 113.695);
--primary-foreground: oklch(0.106 0.017 111.392);
--secondary: oklch(0.383 0.212 272.928);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.383 0.212 272.928);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.621 0.248 29.748);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.155 113.695);
--chart-1: oklch(0.728 0.155 113.695);
--chart-2: oklch(0.383 0.212 272.928);
--chart-3: oklch(0.383 0.212 272.928);
--chart-4: oklch(0.403 0.224 272.747);
--chart-5: oklch(0.737 0.158 113.789);
}