Objection is a shadcn/ui theme built around a vivid light yellow primary color (#ffefad) with muted light yellow accents (#ccc9bd). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid light yellow primary (#ffefad) on a neutral background (#080703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #080703black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fcfaf3floralwhite | #0b0a04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfcf7snow | #080703black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #ffefadmoccasin | #ffefadmoccasin |
| Primary foreground | #141000black | #141000black |
| Secondary | #d6d5d1lightgrey | #302e27darkslategray |
| Secondary foreground | #3e3d37darkslategray | #cbc8besilver |
| Muted | #eae8e1beige | #1e1c15black |
| Muted foreground | #484537darkslategray | #c8c4b7silver |
| Accent | #ccc9bdsilver | #46422fdarkslategray |
| Accent foreground | #312f26darkslategray | #dcd9cblightgrey |
| Destructive | #c30c09firebrick | #f41e1ared |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffefadmoccasin | #ffefadmoccasin |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 16.45:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 16.45:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 9.74:1 | AAA |
| Accent | 7.14:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Objection in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 95.115);
--foreground: oklch(0.103 0.016 100.226);
--muted: oklch(0.931 0.01 95.159);
--muted-foreground: oklch(0.388 0.022 95.591);
--popover: oklch(0.99 0.007 95.115);
--popover-foreground: oklch(0.103 0.016 100.226);
--card: oklch(0.985 0.01 95.154);
--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.949 0.084 95.764);
--primary-foreground: oklch(0.174 0.036 98.718);
--secondary: oklch(0.873 0.006 95.112);
--secondary-foreground: oklch(0.359 0.01 95.332);
--accent: oklch(0.835 0.017 95.264);
--accent-foreground: oklch(0.303 0.016 95.56);
--destructive: oklch(0.516 0.207 29.008);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.949 0.084 95.764);
--chart-1: oklch(0.949 0.084 95.764);
--chart-2: oklch(0.873 0.006 95.112);
--chart-3: oklch(0.835 0.017 95.264);
--chart-4: oklch(0.896 0.005 95.096);
--chart-5: oklch(0.951 0.087 95.77);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 98.79);
--foreground: oklch(1 0 180);
--muted: oklch(0.227 0.014 95.623);
--muted-foreground: oklch(0.82 0.019 95.287);
--popover: oklch(0.125 0.013 98.79);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.015 98.501);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.949 0.084 95.764);
--primary-foreground: oklch(0.174 0.036 98.718);
--secondary: oklch(0.301 0.014 95.499);
--secondary-foreground: oklch(0.833 0.014 95.231);
--accent: oklch(0.377 0.031 95.737);
--accent-foreground: oklch(0.884 0.019 95.276);
--destructive: oklch(0.616 0.241 28.623);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.949 0.084 95.764);
--chart-1: oklch(0.949 0.084 95.764);
--chart-2: oklch(0.301 0.014 95.499);
--chart-3: oklch(0.377 0.031 95.737);
--chart-4: oklch(0.334 0.016 95.513);
--chart-5: oklch(0.951 0.087 95.77);
}