Cheery is a shadcn/ui theme built around a muted light green primary color (#e5ebe0) with muted light green accents (#e0ebe1). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted light green primary (#e5ebe0) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020302black |
| Foreground | #0a1103black | #ffffffwhite |
| Card | #fcfefbwhite | #020302black |
| Card foreground | #0a1103black | #ffffffwhite |
| Popover | #fcfefbwhite | #020302black |
| Popover foreground | #0a1103black | #ffffffwhite |
| Primary | #e5ebe0gainsboro | #e5ebe0gainsboro |
| Primary foreground | #191f14black | #191f14black |
| Secondary | #eaebe0beige | #eaebe0beige |
| Secondary foreground | #1e1f14black | #1e1f14black |
| Muted | #e2e2d4gainsboro | #2a2b1ddarkslategray |
| Muted foreground | #6a6b57dimgray | #a7a894darkgray |
| Accent | #e0ebe1gainsboro | #e0ebe1gainsboro |
| Accent foreground | #3d5c3fdarkslategray | #3d5c3fdarkslategray |
| Destructive | #610905maroon | #f6453ctomato |
| Destructive foreground | #faa29elightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5ebe0gainsboro | #e5ebe0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 13.82:1 | AAA |
| Secondary button | 13.81:1 | AAA |
| Muted text | 4.17:1 | AA Large |
| Accent | 6.10:1 | AA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 13.82:1 | AAA |
| Secondary button | 13.81:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 6.10:1 | AA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Cheery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 130.481);
--foreground: oklch(0.165 0.032 130.403);
--muted: oklch(0.91 0.019 109.095);
--muted-foreground: oklch(0.52 0.029 109.731);
--popover: oklch(0.995 0.005 130.481);
--popover-foreground: oklch(0.165 0.032 130.403);
--card: oklch(0.995 0.005 130.481);
--card-foreground: oklch(0.165 0.032 130.403);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.932 0.015 130.588);
--primary-foreground: oklch(0.228 0.021 131.347);
--secondary: oklch(0.936 0.014 108.977);
--secondary-foreground: oklch(0.234 0.019 110.139);
--accent: oklch(0.928 0.017 146.868);
--accent-foreground: oklch(0.441 0.059 145.681);
--destructive: oklch(0.317 0.121 29.543);
--destructive-foreground: oklch(0.799 0.106 22.985);
--ring: oklch(0.932 0.015 130.588);
--chart-1: oklch(0.932 0.015 130.588);
--chart-2: oklch(0.936 0.014 108.977);
--chart-3: oklch(0.928 0.017 146.868);
--chart-4: oklch(0.955 0.009 108.892);
--chart-5: oklch(0.933 0.017 130.61);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 129.658);
--foreground: oklch(1 0 180);
--muted: oklch(0.283 0.025 110.271);
--muted-foreground: oklch(0.725 0.027 109.395);
--popover: oklch(0.097 0.009 129.658);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.097 0.009 129.658);
--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.932 0.015 130.588);
--primary-foreground: oklch(0.228 0.021 131.347);
--secondary: oklch(0.936 0.014 108.977);
--secondary-foreground: oklch(0.234 0.019 110.139);
--accent: oklch(0.928 0.017 146.868);
--accent-foreground: oklch(0.441 0.059 145.681);
--destructive: oklch(0.649 0.214 27.832);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.932 0.015 130.588);
--chart-1: oklch(0.932 0.015 130.588);
--chart-2: oklch(0.936 0.014 108.977);
--chart-3: oklch(0.928 0.017 146.868);
--chart-4: oklch(0.955 0.009 108.892);
--chart-5: oklch(0.933 0.017 130.61);
}