Cheerful is a shadcn/ui theme built around a vivid light blue primary color (#c8cff9) with vivid light violet accents (#d9c8f9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#c8cff9) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #000000black | #f8f9fcghostwhite |
| Card | #ffffffwhite | #010204black |
| Card foreground | #000000black | #f8f9fcghostwhite |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #000000black | #f8f9fcghostwhite |
| Primary | #c8cff9lightblue | #c8cff9lightblue |
| Primary foreground | #0f2080midnightblue | #0f2080midnightblue |
| Secondary | #c8e8f9paleturquoise | #c8e8f9paleturquoise |
| Secondary foreground | #041925black | #041925black |
| Muted | #cedfe9gainsboro | #162831darkslategray |
| Muted foreground | #50636ddimgray | #92a5afdarkgray |
| Accent | #d9c8f9lavender | #d9c8f9lavender |
| Accent foreground | #360f80indigo | #360f80indigo |
| Destructive | #ba4212firebrick | #e35116chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8cff9lightblue | #c8cff9lightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.96:1 | AAA |
| Secondary button | 13.94:1 | AAA |
| Muted text | 4.59:1 | AA |
| Accent | 8.84:1 | AAA |
| Destructive | 5.43:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 8.96:1 | AAA |
| Secondary button | 13.94:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 8.84:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Cheerful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.894 0.022 231.02);
--muted-foreground: oklch(0.487 0.027 231.573);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.864 0.058 277.261);
--primary-foreground: oklch(0.313 0.16 266.935);
--secondary: oklch(0.912 0.04 231.343);
--secondary-foreground: oklch(0.203 0.036 234.512);
--accent: oklch(0.863 0.068 300.962);
--accent-foreground: oklch(0.32 0.167 288.67);
--destructive: oklch(0.541 0.164 38.809);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.058 277.261);
--chart-1: oklch(0.864 0.058 277.261);
--chart-2: oklch(0.912 0.04 231.343);
--chart-3: oklch(0.863 0.068 300.962);
--chart-4: oklch(0.934 0.03 231.139);
--chart-5: oklch(0.862 0.06 277.214);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.08 0.013 272.304);
--foreground: oklch(0.982 0.004 278.261);
--muted: oklch(0.265 0.029 232.888);
--muted-foreground: oklch(0.71 0.025 231.192);
--popover: oklch(0.08 0.013 272.304);
--popover-foreground: oklch(0.982 0.004 278.261);
--card: oklch(0.08 0.013 272.304);
--card-foreground: oklch(0.982 0.004 278.261);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.864 0.058 277.261);
--primary-foreground: oklch(0.313 0.16 266.935);
--secondary: oklch(0.912 0.04 231.343);
--secondary-foreground: oklch(0.203 0.036 234.512);
--accent: oklch(0.863 0.068 300.962);
--accent-foreground: oklch(0.32 0.167 288.67);
--destructive: oklch(0.627 0.193 38.564);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.058 277.261);
--chart-1: oklch(0.864 0.058 277.261);
--chart-2: oklch(0.912 0.04 231.343);
--chart-3: oklch(0.863 0.068 300.962);
--chart-4: oklch(0.934 0.03 231.139);
--chart-5: oklch(0.862 0.06 277.214);
}