Cheer is a shadcn/ui theme built around a vivid orange primary color (#ca3b07) with vivid violet accents (#3b07ca). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid orange primary (#ca3b07) on an orange-tinted background (#0c0603).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0c0603black |
| Foreground | #040201black | #fdfcfcsnow |
| Card | #fefcfbsnow | #0c0603black |
| Card foreground | #040201black | #fdfcfcsnow |
| Popover | #fefcfbsnow | #0c0603black |
| Popover foreground | #040201black | #fdfcfcsnow |
| Primary | #ca3b07firebrick | #ca3b07firebrick |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #07ca3blimegreen | #07ca3blimegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d6ebdcgainsboro | #14291ablack |
| Muted foreground | #556259dimgray | #9daaa0darkgray |
| Accent | #3b07camediumblue | #3b07camediumblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #842606saddlebrown | #f66b3ctomato |
| Destructive foreground | #fccfc0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ca3b07firebrick | #ca3b07firebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 5.07:1 | AA |
| Secondary button | 2.21:1 | Fail |
| Muted text | 5.11:1 | AA |
| Accent | 10.14:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 5.07:1 | AA |
| Secondary button | 2.21:1 | Fail |
| Muted text | 6.38:1 | AA |
| Accent | 10.14:1 | AAA |
| Destructive | 7.06:1 | AAA |
Paste this into your globals.css to use Cheer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 41.286);
--foreground: oklch(0.089 0.011 49.631);
--muted: oklch(0.92 0.03 153.937);
--muted-foreground: oklch(0.483 0.022 153.705);
--popover: oklch(0.992 0.002 41.286);
--popover-foreground: oklch(0.089 0.011 49.631);
--card: oklch(0.992 0.002 41.286);
--card-foreground: oklch(0.089 0.011 49.631);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.56 0.187 36.367);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.729 0.227 145.191);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.408 0.247 277.423);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.411 0.134 36.484);
--destructive-foreground: oklch(0.889 0.055 39.258);
--ring: oklch(0.56 0.187 36.367);
--chart-1: oklch(0.56 0.187 36.367);
--chart-2: oklch(0.729 0.227 145.191);
--chart-3: oklch(0.408 0.247 277.423);
--chart-4: oklch(0.769 0.239 145.141);
--chart-5: oklch(0.564 0.191 36.02);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.016 48.895);
--foreground: oklch(0.992 0.001 41.293);
--muted: oklch(0.258 0.039 151.379);
--muted-foreground: oklch(0.724 0.02 154.037);
--popover: oklch(0.129 0.016 48.895);
--popover-foreground: oklch(0.992 0.001 41.293);
--card: oklch(0.129 0.016 48.895);
--card-foreground: oklch(0.992 0.001 41.293);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.56 0.187 36.367);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.729 0.227 145.191);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.408 0.247 277.423);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.691 0.182 38.399);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.56 0.187 36.367);
--chart-1: oklch(0.56 0.187 36.367);
--chart-2: oklch(0.729 0.227 145.191);
--chart-3: oklch(0.408 0.247 277.423);
--chart-4: oklch(0.769 0.239 145.141);
--chart-5: oklch(0.564 0.191 36.02);
}