Cuddly is a shadcn/ui theme built around a neutral gray primary color (#b8b9b6) with neutral gray accents (#b7b9b6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#b8b9b6) on a green-tinted background (#0d0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0e06black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #ffffffwhite | #0d0e06black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0d0e06black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #b8b9b6silver | #b8b9b6silver |
| Primary foreground | #1f1f1eblack | #1f1f1eblack |
| Secondary | #b9b8b6silver | #b9b8b6silver |
| Secondary foreground | #1f1f1eblack | #1f1f1eblack |
| Muted | #eeebe2beige | #1d1911black |
| Muted foreground | #565143darkolivegreen | #bcb7a9darkgray |
| Accent | #b7b9b6silver | #b7b9b6silver |
| Accent foreground | #1e1f1eblack | #1e1f1eblack |
| Destructive | #b03103firebrick | #fc581dorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8b9b6silver | #b8b9b6silver |
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.37:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 8.71:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 6.54:1 | AA |
Paste this into your globals.css to use Cuddly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.012 88.867);
--muted-foreground: oklch(0.435 0.024 89.013);
--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.785 0.004 116.424);
--primary-foreground: oklch(0.239 0.002 116.507);
--secondary: oklch(0.783 0.003 88.816);
--secondary-foreground: oklch(0.239 0.002 88.837);
--accent: oklch(0.783 0.005 136.626);
--accent-foreground: oklch(0.239 0.003 136.642);
--destructive: oklch(0.504 0.17 36.25);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.785 0.004 116.424);
--chart-1: oklch(0.785 0.004 116.424);
--chart-2: oklch(0.783 0.003 88.816);
--chart-3: oklch(0.783 0.005 136.626);
--chart-4: oklch(0.807 0.003 88.813);
--chart-5: oklch(0.789 0.01 116.562);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.018 117.755);
--foreground: oklch(0.994 0.002 116.365);
--muted: oklch(0.216 0.016 88.998);
--muted-foreground: oklch(0.779 0.021 88.939);
--popover: oklch(0.16 0.018 117.755);
--popover-foreground: oklch(0.994 0.002 116.365);
--card: oklch(0.16 0.018 117.755);
--card-foreground: oklch(0.994 0.002 116.365);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.785 0.004 116.424);
--primary-foreground: oklch(0.239 0.002 116.507);
--secondary: oklch(0.783 0.003 88.816);
--secondary-foreground: oklch(0.239 0.002 88.837);
--accent: oklch(0.783 0.005 136.626);
--accent-foreground: oklch(0.239 0.003 136.642);
--destructive: oklch(0.675 0.209 37.783);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.785 0.004 116.424);
--chart-1: oklch(0.785 0.004 116.424);
--chart-2: oklch(0.783 0.003 88.816);
--chart-3: oklch(0.783 0.005 136.626);
--chart-4: oklch(0.807 0.003 88.813);
--chart-5: oklch(0.789 0.01 116.562);
}