Cheery is a shadcn/ui theme built around a muted light orange primary color (#e0dbd7) with muted light violet accents (#dbd7e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light orange primary (#e0dbd7) on an orange-tinted background (#0c0704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0704black |
| Foreground | #0c0704black | #f8f7f6whitesmoke |
| Card | #ffffffwhite | #0c0704black |
| Card foreground | #0c0704black | #f8f7f6whitesmoke |
| Popover | #ffffffwhite | #0c0704black |
| Popover foreground | #0c0704black | #f8f7f6whitesmoke |
| Primary | #e0dbd7gainsboro | #e0dbd7gainsboro |
| Primary foreground | #4a413adarkslategray | #4a413adarkslategray |
| Secondary | #d7e0dbgainsboro | #d7e0dbgainsboro |
| Secondary foreground | #3a4a41darkslategray | #3a4a41darkslategray |
| Muted | #eff1f0whitesmoke | #0e100fblack |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #dbd7e0gainsboro | #dbd7e0gainsboro |
| Accent foreground | #413a4adarkslategray | #413a4adarkslategray |
| Destructive | #ac1411firebrick | #d51815firebrick |
| Destructive foreground | #fef1f1lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0dbd7gainsboro | #e0dbd7gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 7.79:1 | AAA |
| Accent | 7.66:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 18.74:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 9.29:1 | AAA |
| Accent | 7.66:1 | AAA |
| Destructive | 5.26:1 | AA |
Paste this into your globals.css to use Cheery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.134 0.013 65.567);
--muted: oklch(0.955 0.003 160.944);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.134 0.013 65.567);
--card: oklch(1 0 180);
--card-foreground: oklch(0.134 0.013 65.567);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.007 58.248);
--primary-foreground: oklch(0.383 0.017 57.743);
--secondary: oklch(0.897 0.011 160.711);
--secondary-foreground: oklch(0.393 0.026 159.381);
--accent: oklch(0.885 0.012 304.854);
--accent-foreground: oklch(0.363 0.028 303.963);
--destructive: oklch(0.475 0.184 28.494);
--destructive-foreground: oklch(0.969 0.013 18.574);
--ring: oklch(0.893 0.007 58.248);
--chart-1: oklch(0.893 0.007 58.248);
--chart-2: oklch(0.897 0.011 160.711);
--chart-3: oklch(0.885 0.012 304.854);
--chart-4: oklch(0.92 0.009 160.784);
--chart-5: oklch(0.893 0.009 58.219);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.014 65.96);
--foreground: oklch(0.977 0.002 58.335);
--muted: oklch(0.172 0.004 160.413);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.134 0.014 65.96);
--popover-foreground: oklch(0.977 0.002 58.335);
--card: oklch(0.134 0.014 65.96);
--card-foreground: oklch(0.977 0.002 58.335);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.893 0.007 58.248);
--primary-foreground: oklch(0.383 0.017 57.743);
--secondary: oklch(0.897 0.011 160.711);
--secondary-foreground: oklch(0.393 0.026 159.381);
--accent: oklch(0.885 0.012 304.854);
--accent-foreground: oklch(0.363 0.028 303.963);
--destructive: oklch(0.557 0.218 28.632);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.007 58.248);
--chart-1: oklch(0.893 0.007 58.248);
--chart-2: oklch(0.897 0.011 160.711);
--chart-3: oklch(0.885 0.012 304.854);
--chart-4: oklch(0.92 0.009 160.784);
--chart-5: oklch(0.893 0.009 58.219);
}