Humour is a shadcn/ui theme built around a deep orange primary color (#4d371e) with deep yellow accents (#4c4d1e). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep orange primary (#4d371e) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #070503black |
| Foreground | #080502black | #ffffffwhite |
| Card | #fcfaf8snow | #0b0805black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fcfaf8snow | #0b0805black |
| Popover foreground | #040301black | #ffffffwhite |
| Primary | #4d371edarkolivegreen | #4d371edarkolivegreen |
| Primary foreground | #e4d0b9wheat | #e4d0b9wheat |
| Secondary | #4d201emaroon | #4d201emaroon |
| Secondary foreground | #e4bbb9lightpink | #e4bbb9lightpink |
| Muted | #f1eeeewhitesmoke | #110e0eblack |
| Muted foreground | #6a4f4edimgray | #b19695rosybrown |
| Accent | #4c4d1edarkolivegreen | #4c4d1edarkolivegreen |
| Accent foreground | #e2e4b9palegoldenrod | #e2e4b9palegoldenrod |
| Destructive | #99290asaddlebrown | #dd3b0eorangered |
| Destructive foreground | #fde0d9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d371edarkolivegreen | #4d371edarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.92:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 6.71:1 | AA |
| Destructive | 6.27:1 | AA |
| Text on background | 20.32:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 7.01:1 | AAA |
| Accent | 6.71:1 | AA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Humour in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 71.436);
--foreground: oklch(0.12 0.015 79.896);
--muted: oklch(0.952 0.003 19.648);
--muted-foreground: oklch(0.455 0.036 20.848);
--popover: oklch(0.986 0.003 71.42);
--popover-foreground: oklch(0.096 0.012 79.896);
--card: oklch(0.986 0.003 71.42);
--card-foreground: oklch(0.096 0.012 79.896);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.356 0.05 68.776);
--primary-foreground: oklch(0.868 0.038 71.007);
--secondary: oklch(0.308 0.069 23.981);
--secondary-foreground: oklch(0.827 0.048 20.48);
--accent: oklch(0.408 0.068 110.803);
--accent-foreground: oklch(0.907 0.056 109.041);
--destructive: oklch(0.456 0.153 34.781);
--destructive-foreground: oklch(0.929 0.033 35.944);
--ring: oklch(0.356 0.05 68.776);
--chart-1: oklch(0.356 0.05 68.776);
--chart-2: oklch(0.308 0.069 23.981);
--chart-3: oklch(0.408 0.068 110.803);
--chart-4: oklch(0.335 0.078 24.134);
--chart-5: oklch(0.358 0.053 68.455);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.009 76.928);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.005 19.996);
--muted-foreground: oklch(0.698 0.032 20.286);
--popover: oklch(0.136 0.011 76.834);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.011 76.834);
--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.356 0.05 68.776);
--primary-foreground: oklch(0.868 0.038 71.007);
--secondary: oklch(0.308 0.069 23.981);
--secondary-foreground: oklch(0.827 0.048 20.48);
--accent: oklch(0.408 0.068 110.803);
--accent-foreground: oklch(0.907 0.056 109.041);
--destructive: oklch(0.592 0.204 34.407);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.356 0.05 68.776);
--chart-1: oklch(0.356 0.05 68.776);
--chart-2: oklch(0.308 0.069 23.981);
--chart-3: oklch(0.408 0.068 110.803);
--chart-4: oklch(0.335 0.078 24.134);
--chart-5: oklch(0.358 0.053 68.455);
}