Cheery is a shadcn/ui theme built around a vivid teal primary color (#01bca9) with vivid blue accents (#0171bc). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid teal primary (#01bca9) on a neutral background (#020808).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #020808black |
| Foreground | #000000black | #f8fbfbghostwhite |
| Card | #f8fbfbghostwhite | #030c0bblack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f8fbfbghostwhite | #030c0bblack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #01bca9lightseagreen | #01bca9lightseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #01bc4climegreen | #01bc4climegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7eeealavender | #111814black |
| Muted foreground | #424d46darkslategray | #b2bdb6silver |
| Accent | #0171bcdarkcyan | #0171bcdarkcyan |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6e230cmaroon | #cf4217chocolate |
| Destructive foreground | #f7c5b6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #01bca9lightseagreen | #01bca9lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 8.74:1 | AAA |
| Secondary button | 2.53:1 | Fail |
| Muted text | 7.48:1 | AAA |
| Accent | 5.13:1 | AA |
| Destructive | 7.12:1 | AAA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 8.74:1 | AAA |
| Secondary button | 2.53:1 | Fail |
| Muted text | 9.32:1 | AAA |
| Accent | 5.13:1 | AA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use Cheery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 190.039);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.009 160.008);
--muted-foreground: oklch(0.408 0.019 159.151);
--popover: oklch(0.987 0.003 189.999);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.003 189.999);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.713 0.127 182.461);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.693 0.2 148.033);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.536 0.144 248.012);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.369 0.112 36.605);
--destructive-foreground: oklch(0.863 0.061 37.593);
--ring: oklch(0.713 0.127 182.461);
--chart-1: oklch(0.713 0.127 182.461);
--chart-2: oklch(0.693 0.2 148.033);
--chart-3: oklch(0.536 0.144 248.012);
--chart-4: oklch(0.734 0.213 147.942);
--chart-5: oklch(0.721 0.129 182.295);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.015 189.28);
--foreground: oklch(0.987 0.003 190.004);
--muted: oklch(0.2 0.013 158.6);
--muted-foreground: oklch(0.788 0.016 159.766);
--popover: oklch(0.144 0.017 188.732);
--popover-foreground: oklch(0.993 0.002 190.041);
--card: oklch(0.144 0.017 188.732);
--card-foreground: oklch(0.993 0.002 190.041);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.713 0.127 182.461);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.693 0.2 148.033);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.536 0.144 248.012);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.576 0.184 36.011);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.713 0.127 182.461);
--chart-1: oklch(0.713 0.127 182.461);
--chart-2: oklch(0.693 0.2 148.033);
--chart-3: oklch(0.536 0.144 248.012);
--chart-4: oklch(0.734 0.213 147.942);
--chart-5: oklch(0.721 0.129 182.295);
}