Oddball is a shadcn/ui theme built around a neutral gray primary color (#787878) with neutral gray accents (#787878). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#787878) on a red-tinted background (#0e0606).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0e0606black |
| Foreground | #100505black | #fdfbfbsnow |
| Card | #fefbfbsnow | #0e0606black |
| Card foreground | #100505black | #fdfbfbsnow |
| Popover | #fefbfbsnow | #0e0606black |
| Popover foreground | #100505black | #fdfbfbsnow |
| Primary | #787878gray | #787878gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #787878gray | #787878gray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1d1d1lightgrey | #2e1e1eblack |
| Muted foreground | #4f4040darkslategray | #bfb0b0silver |
| Accent | #787878gray | #787878gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #882507saddlebrown | #f4592atomato |
| Destructive foreground | #fcd2c5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #787878gray | #787878gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 4.42:1 | AA Large |
| Secondary button | 4.42:1 | AA Large |
| Muted text | 6.63:1 | AA |
| Accent | 4.42:1 | AA Large |
| Destructive | 6.56:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 4.42:1 | AA Large |
| Secondary button | 4.42:1 | AA Large |
| Muted text | 7.59:1 | AAA |
| Accent | 4.42:1 | AA Large |
| Destructive | 6.29:1 | AA |
Paste this into your globals.css to use Oddball in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 17.205);
--foreground: oklch(0.133 0.022 20.4);
--muted: oklch(0.873 0.018 17.501);
--muted-foreground: oklch(0.387 0.02 18.042);
--popover: oklch(0.99 0.003 17.205);
--popover-foreground: oklch(0.133 0.022 20.4);
--card: oklch(0.99 0.003 17.205);
--card-foreground: oklch(0.133 0.022 20.4);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.572 0 180);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.572 0 180);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.572 0 180);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.419 0.138 35.626);
--destructive-foreground: oklch(0.896 0.051 37.594);
--ring: oklch(0.572 0 180);
--chart-1: oklch(0.572 0 180);
--chart-2: oklch(0.572 0 180);
--chart-3: oklch(0.572 0 180);
--chart-4: oklch(0.598 0 185.711);
--chart-5: oklch(0.566 0.009 17.419);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.016 19.292);
--foreground: oklch(0.991 0.002 17.193);
--muted: oklch(0.256 0.025 18.952);
--muted-foreground: oklch(0.771 0.016 17.514);
--popover: oklch(0.136 0.016 19.292);
--popover-foreground: oklch(0.991 0.002 17.193);
--card: oklch(0.136 0.016 19.292);
--card-foreground: oklch(0.991 0.002 17.193);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.572 0 180);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.572 0 180);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.572 0 180);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.664 0.199 36.663);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.572 0 180);
--chart-1: oklch(0.572 0 180);
--chart-2: oklch(0.572 0 180);
--chart-3: oklch(0.572 0 180);
--chart-4: oklch(0.598 0 185.711);
--chart-5: oklch(0.566 0.009 17.419);
}