Cheery is a shadcn/ui theme built around a near-black primary color (#0f0009) with near-black accents (#000f06). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the near-black primary (#0f0009) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #000000black |
| Foreground | #090106black | #ffffffwhite |
| Card | #fdf7fbsnow | #000000black |
| Card foreground | #090106black | #ffffffwhite |
| Popover | #fdf7fbsnow | #000000black |
| Popover foreground | #090106black | #ffffffwhite |
| Primary | #0f0009black | #0f0009black |
| Primary foreground | #fd44b3hotpink | #fd44b3hotpink |
| Secondary | #000f06black | #000f06black |
| Secondary foreground | #02d958springgreen | #02d958springgreen |
| Muted | #d6e6dcgainsboro | #192920black |
| Muted foreground | #424342darkslategray | #bcbdbdsilver |
| Accent | #000f06black | #000f06black |
| Accent foreground | #02d958springgreen | #02d958springgreen |
| Destructive | #8d2f07saddlebrown | #f6743ctomato |
| Destructive foreground | #fcd9c9bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f0009black | #0f0009black |
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 | 6.49:1 | AA |
| Secondary button | 10.32:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 10.32:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 10.32:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 10.32:1 | AAA |
| Destructive | 7.46:1 | AAA |
Paste this into your globals.css to use Cheery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 340.426);
--foreground: oklch(0.103 0.029 340.43);
--muted: oklch(0.91 0.021 159.688);
--muted-foreground: oklch(0.381 0.002 160.1);
--popover: oklch(0.981 0.008 340.426);
--popover-foreground: oklch(0.103 0.029 340.43);
--card: oklch(0.981 0.008 340.426);
--card-foreground: oklch(0.103 0.029 340.43);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.114 0.048 341.707);
--primary-foreground: oklch(0.689 0.241 348.556);
--secondary: oklch(0.149 0.034 159.02);
--secondary-foreground: oklch(0.772 0.224 147.944);
--accent: oklch(0.149 0.034 159.02);
--accent-foreground: oklch(0.772 0.224 147.944);
--destructive: oklch(0.441 0.136 39.22);
--destructive-foreground: oklch(0.91 0.045 44.549);
--ring: oklch(0.114 0.048 341.707);
--chart-1: oklch(0.114 0.048 341.707);
--chart-2: oklch(0.149 0.034 159.02);
--chart-3: oklch(0.149 0.034 159.02);
--chart-4: oklch(0.208 0.052 154.193);
--chart-5: oklch(0.114 0.05 341.779);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.264 0.028 157.496);
--muted-foreground: oklch(0.798 0.002 160.18);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.114 0.048 341.707);
--primary-foreground: oklch(0.689 0.241 348.556);
--secondary: oklch(0.149 0.034 159.02);
--secondary-foreground: oklch(0.772 0.224 147.944);
--accent: oklch(0.149 0.034 159.02);
--accent-foreground: oklch(0.772 0.224 147.944);
--destructive: oklch(0.704 0.174 42.124);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.114 0.048 341.707);
--chart-1: oklch(0.114 0.048 341.707);
--chart-2: oklch(0.149 0.034 159.02);
--chart-3: oklch(0.149 0.034 159.02);
--chart-4: oklch(0.208 0.052 154.193);
--chart-5: oklch(0.114 0.05 341.779);
}