Oddball is a shadcn/ui theme built around a light green primary color (#9be99b) with light teal accents (#9be9c2). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the light green primary (#9be99b) on a neutral background (#020802).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #020802black |
| Foreground | #000000black | #f8fcf8mintcream |
| Card | #f3fcf3honeydew | #030c03black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f7fdf7mintcream | #020802black |
| Popover foreground | #000000black | #f8fcf8mintcream |
| Primary | #9be99blightgreen | #9be99blightgreen |
| Primary foreground | #0f430fdarkgreen | #0f430fdarkgreen |
| Secondary | #c2e99bpalegreen | #c2e99bpalegreen |
| Secondary foreground | #29430fdarkgreen | #29430fdarkgreen |
| Muted | #e3e8degainsboro | #1c2117black |
| Muted foreground | #52574cdarkolivegreen | #adb3a8darkgray |
| Accent | #9be9c2aquamarine | #9be9c2aquamarine |
| Accent foreground | #0f4329darkslategray | #0f4329darkslategray |
| Destructive | #d2320ffirebrick | #ef411aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9be99blightgreen | #9be99blightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.99:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Oddball in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.009 145.504);
--foreground: oklch(0 0 0);
--muted: oklch(0.924 0.014 128.627);
--muted-foreground: oklch(0.449 0.02 128.956);
--popover: oklch(0.987 0.009 145.504);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.014 145.466);
--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.864 0.132 144.33);
--primary-foreground: oklch(0.336 0.098 143.016);
--secondary: oklch(0.887 0.111 129.99);
--secondary-foreground: oklch(0.349 0.084 132.361);
--accent: oklch(0.872 0.095 161.842);
--accent-foreground: oklch(0.341 0.071 156.961);
--destructive: oklch(0.566 0.2 33.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.132 144.33);
--chart-1: oklch(0.864 0.132 144.33);
--chart-2: oklch(0.887 0.111 129.99);
--chart-3: oklch(0.872 0.095 161.842);
--chart-4: oklch(0.901 0.097 129.755);
--chart-5: oklch(0.867 0.137 144.276);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.024 143.929);
--foreground: oklch(0.986 0.006 145.529);
--muted: oklch(0.239 0.019 129.39);
--muted-foreground: oklch(0.759 0.017 128.716);
--popover: oklch(0.122 0.024 143.929);
--popover-foreground: oklch(0.986 0.006 145.529);
--card: oklch(0.14 0.028 143.92);
--card-foreground: oklch(0.993 0.003 145.553);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.864 0.132 144.33);
--primary-foreground: oklch(0.336 0.098 143.016);
--secondary: oklch(0.887 0.111 129.99);
--secondary-foreground: oklch(0.349 0.084 132.361);
--accent: oklch(0.872 0.095 161.842);
--accent-foreground: oklch(0.341 0.071 156.961);
--destructive: oklch(0.631 0.216 33.497);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.132 144.33);
--chart-1: oklch(0.864 0.132 144.33);
--chart-2: oklch(0.887 0.111 129.99);
--chart-3: oklch(0.872 0.095 161.842);
--chart-4: oklch(0.901 0.097 129.755);
--chart-5: oklch(0.867 0.137 144.276);
}