Comedy is a shadcn/ui theme built around a near-black primary color (#0a0a0a) with near-black accents (#0a0a0a). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the near-black primary (#0a0a0a) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #030302black |
| Foreground | #080702black | #ffffffwhite |
| Card | #fcfbf8snow | #030302black |
| Card foreground | #080702black | #ffffffwhite |
| Popover | #fcfbf8snow | #030302black |
| Popover foreground | #080702black | #ffffffwhite |
| Primary | #0a0a0ablack | #0a0a0ablack |
| Primary foreground | #a4a4a2darkgray | #a4a4a2darkgray |
| Secondary | #0a0a0ablack | #0a0a0ablack |
| Secondary foreground | #a4a3a2darkgray | #a4a3a2darkgray |
| Muted | #ece7e4linen | #1b1613black |
| Muted foreground | #5d4e46darkolivegreen | #b9aaa2darkgray |
| Accent | #0a0a0ablack | #0a0a0ablack |
| Accent foreground | #a4a4a2darkgray | #a4a4a2darkgray |
| Destructive | #7f150bmaroon | #d32212firebrick |
| Destructive foreground | #fac7c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0a0ablack | #0a0a0ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 5.22:1 | AA |
Paste this into your globals.css to use Comedy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 97.312);
--foreground: oklch(0.128 0.017 101.422);
--muted: oklch(0.931 0.006 48.668);
--muted-foreground: oklch(0.436 0.024 48.149);
--popover: oklch(0.988 0.004 97.312);
--popover-foreground: oklch(0.128 0.017 101.422);
--card: oklch(0.988 0.004 97.312);
--card-foreground: oklch(0.128 0.017 101.422);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.146 0 97.345);
--primary-foreground: oklch(0.718 0.002 97.301);
--secondary: oklch(0.146 0 48.876);
--secondary-foreground: oklch(0.716 0.002 48.722);
--accent: oklch(0.146 0 121.486);
--accent-foreground: oklch(0.718 0.003 121.553);
--destructive: oklch(0.386 0.142 29.99);
--destructive-foreground: oklch(0.872 0.059 24.368);
--ring: oklch(0.146 0 97.345);
--chart-1: oklch(0.146 0 97.345);
--chart-2: oklch(0.146 0 48.876);
--chart-3: oklch(0.146 0 121.486);
--chart-4: oklch(0.181 0 48.72);
--chart-5: oklch(0.147 0.001 97.378);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.008 99.998);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.009 48.243);
--muted-foreground: oklch(0.747 0.021 48.428);
--popover: oklch(0.098 0.008 99.998);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.098 0.008 99.998);
--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.146 0 97.345);
--primary-foreground: oklch(0.718 0.002 97.301);
--secondary: oklch(0.146 0 48.876);
--secondary-foreground: oklch(0.716 0.002 48.722);
--accent: oklch(0.146 0 121.486);
--accent-foreground: oklch(0.718 0.003 121.553);
--destructive: oklch(0.557 0.211 30.083);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.146 0 97.345);
--chart-1: oklch(0.146 0 97.345);
--chart-2: oklch(0.146 0 48.876);
--chart-3: oklch(0.146 0 121.486);
--chart-4: oklch(0.181 0 48.72);
--chart-5: oklch(0.147 0.001 97.378);
}