Hilarious is a shadcn/ui theme built around a deep red primary color (#0e0706) with deep indigo accents (#07060e). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#0e0706) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0a0505black |
| Foreground | #080202black | #fcf8f8snow |
| Card | #fefbfbsnow | #0a0505black |
| Card foreground | #080202black | #fcf8f8snow |
| Popover | #fefbfbsnow | #0a0505black |
| Popover foreground | #080202black | #fcf8f8snow |
| Primary | #0e0706black | #0e0706black |
| Primary foreground | #c58281rosybrown | #c58281rosybrown |
| Secondary | #060e07black | #060e07black |
| Secondary foreground | #81c582darkseagreen | #81c582darkseagreen |
| Muted | #dee8degainsboro | #172117black |
| Muted foreground | #5d695edimgray | #96a296darkgray |
| Accent | #07060eblack | #07060eblack |
| Accent foreground | #c8c7e5thistle | #c8c7e5thistle |
| Destructive | #b94a0esienna | #df5911chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e0706black | #0e0706black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 9.53:1 | AAA |
| Muted text | 4.57:1 | AA |
| Accent | 12.23:1 | AAA |
| Destructive | 5.19:1 | AA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 9.53:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 12.23:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Hilarious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 18.403);
--foreground: oklch(0.103 0.02 22.718);
--muted: oklch(0.92 0.016 145.91);
--muted-foreground: oklch(0.508 0.023 145.672);
--popover: oklch(0.991 0.003 18.403);
--popover-foreground: oklch(0.103 0.02 22.718);
--card: oklch(0.991 0.003 18.403);
--card-foreground: oklch(0.103 0.02 22.718);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.137 0.014 20.43);
--primary-foreground: oklch(0.676 0.083 20.543);
--secondary: oklch(0.152 0.021 144.95);
--secondary-foreground: oklch(0.761 0.117 144.699);
--accent: oklch(0.13 0.018 284.568);
--accent-foreground: oklch(0.84 0.042 286.226);
--destructive: oklch(0.55 0.157 42.824);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.137 0.014 20.43);
--chart-1: oklch(0.137 0.014 20.43);
--chart-2: oklch(0.152 0.021 144.95);
--chart-3: oklch(0.13 0.018 284.568);
--chart-4: oklch(0.194 0.032 144.598);
--chart-5: oklch(0.137 0.016 20.663);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.011 20.06);
--foreground: oklch(0.982 0.004 18.429);
--muted: oklch(0.234 0.022 145.236);
--muted-foreground: oklch(0.698 0.022 145.798);
--popover: oklch(0.125 0.011 20.06);
--popover-foreground: oklch(0.982 0.004 18.429);
--card: oklch(0.125 0.011 20.06);
--card-foreground: oklch(0.982 0.004 18.429);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.137 0.014 20.43);
--primary-foreground: oklch(0.676 0.083 20.543);
--secondary: oklch(0.152 0.021 144.95);
--secondary-foreground: oklch(0.761 0.117 144.699);
--accent: oklch(0.13 0.018 284.568);
--accent-foreground: oklch(0.84 0.042 286.226);
--destructive: oklch(0.63 0.182 42.494);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.137 0.014 20.43);
--chart-1: oklch(0.137 0.014 20.43);
--chart-2: oklch(0.152 0.021 144.95);
--chart-3: oklch(0.13 0.018 284.568);
--chart-4: oklch(0.194 0.032 144.598);
--chart-5: oklch(0.137 0.016 20.663);
}