Comedy is a shadcn/ui theme built around a vivid yellow primary color (#a6b10b) with muted light yellow accents (#d3d3ca). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid yellow primary (#a6b10b) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #040401black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fcfcf8snow | #080802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfefbwhite | #040401black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #a6b10bdarkgoldenrod | #a6b10bdarkgoldenrod |
| Primary foreground | #000000black | #000000black |
| Secondary | #e1e1e0gainsboro | #2f3027darkslategray |
| Secondary foreground | #484847darkslategray | #c9cabesilver |
| Muted | #f2f2edwhitesmoke | #11120dblack |
| Muted foreground | #5b5c4ddimgray | #b1b2a3darkgray |
| Accent | #d3d3calightgrey | #40412fdarkslategray |
| Accent foreground | #3a3b30darkslategray | #d7d8calightgrey |
| Destructive | #c52d07firebrick | #f74418orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a6b10bdarkgoldenrod | #a6b10bdarkgoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 8.95:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 6.07:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 5.59:1 | AA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 8.95:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 8.75:1 | AAA |
| Accent | 7.22:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Comedy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 109.532);
--foreground: oklch(0.105 0.016 111.266);
--muted: oklch(0.96 0.006 109.604);
--muted-foreground: oklch(0.468 0.024 110.403);
--popover: oklch(0.995 0.003 109.532);
--popover-foreground: oklch(0.105 0.016 111.266);
--card: oklch(0.99 0.006 109.587);
--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.162 114.211);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.909 0.001 109.495);
--secondary-foreground: oklch(0.402 0.002 109.588);
--accent: oklch(0.865 0.013 109.761);
--accent-foreground: oklch(0.348 0.018 110.425);
--destructive: oklch(0.538 0.192 33.401);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.162 114.211);
--chart-1: oklch(0.728 0.162 114.211);
--chart-2: oklch(0.909 0.001 109.495);
--chart-3: oklch(0.865 0.013 109.761);
--chart-4: oklch(0.932 0.001 109.491);
--chart-5: oklch(0.737 0.164 114.288);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.014 111.112);
--foreground: oklch(1 0 180);
--muted: oklch(0.179 0.01 110.471);
--muted-foreground: oklch(0.76 0.021 109.992);
--popover: oklch(0.104 0.014 111.112);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.018 111.112);
--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.728 0.162 114.211);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.304 0.015 110.386);
--secondary-foreground: oklch(0.836 0.016 109.834);
--accent: oklch(0.369 0.029 110.919);
--accent-foreground: oklch(0.879 0.02 109.896);
--destructive: oklch(0.646 0.221 34.058);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.162 114.211);
--chart-1: oklch(0.728 0.162 114.211);
--chart-2: oklch(0.304 0.015 110.386);
--chart-3: oklch(0.369 0.029 110.919);
--chart-4: oklch(0.337 0.017 110.417);
--chart-5: oklch(0.737 0.164 114.288);
}