Cuddly is a shadcn/ui theme built around a near-black primary color (#010402) with near-black accents (#040103). The light mode uses a neutral background (#fbfefc). Dark mode keeps the near-black primary (#010402) on a green-tinted background (#060f08).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #060f08black |
| Foreground | #000000black | #f7f8f7whitesmoke |
| Card | #fbfefcwhite | #060f08black |
| Card foreground | #000000black | #f7f8f7whitesmoke |
| Popover | #fbfefcwhite | #060f08black |
| Popover foreground | #000000black | #f7f8f7whitesmoke |
| Primary | #010402black | #010402black |
| Primary foreground | #71c689darkseagreen | #71c689darkseagreen |
| Secondary | #040103black | #040103black |
| Secondary foreground | #c671aepalevioletred | #c671aepalevioletred |
| Muted | #eedde9mistyrose | #22111dblack |
| Muted foreground | #453a42darkslategray | #c5bac2silver |
| Accent | #040103black | #040103black |
| Accent foreground | #c671aepalevioletred | #c671aepalevioletred |
| Destructive | #8c2908saddlebrown | #f25621chocolate |
| Destructive foreground | #fcd6cabisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010402black | #010402black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.64:1 | AAA |
| Primary button | 9.95:1 | AAA |
| Secondary button | 6.29:1 | AA |
| Muted text | 8.32:1 | AAA |
| Accent | 6.29:1 | AA |
| Destructive | 6.41:1 | AA |
| Text on background | 18.29:1 | AAA |
| Text on card | 18.29:1 | AAA |
| Primary button | 9.95:1 | AAA |
| Secondary button | 6.29:1 | AA |
| Muted text | 9.59:1 | AAA |
| Accent | 6.29:1 | AA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Cuddly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 155.13);
--foreground: oklch(0 0 0);
--muted: oklch(0.914 0.026 335.696);
--muted-foreground: oklch(0.364 0.021 336.202);
--popover: oklch(0.994 0.003 155.13);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 155.13);
--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.096 0.012 154.777);
--primary-foreground: oklch(0.757 0.122 151.695);
--secondary: oklch(0.087 0.013 335.641);
--secondary-foreground: oklch(0.662 0.132 338.534);
--accent: oklch(0.087 0.013 335.641);
--accent-foreground: oklch(0.662 0.132 338.534);
--destructive: oklch(0.431 0.139 36.511);
--destructive-foreground: oklch(0.906 0.045 39.285);
--ring: oklch(0.096 0.012 154.777);
--chart-1: oklch(0.096 0.012 154.777);
--chart-2: oklch(0.087 0.013 335.641);
--chart-3: oklch(0.087 0.013 335.641);
--chart-4: oklch(0.139 0.022 336.948);
--chart-5: oklch(0.097 0.013 154.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.021 153.907);
--foreground: oklch(0.978 0.002 155.146);
--muted: oklch(0.207 0.037 338.2);
--muted-foreground: oklch(0.799 0.017 335.576);
--popover: oklch(0.155 0.021 153.907);
--popover-foreground: oklch(0.978 0.002 155.146);
--card: oklch(0.155 0.021 153.907);
--card-foreground: oklch(0.978 0.002 155.146);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.096 0.012 154.777);
--primary-foreground: oklch(0.757 0.122 151.695);
--secondary: oklch(0.087 0.013 335.641);
--secondary-foreground: oklch(0.662 0.132 338.534);
--accent: oklch(0.087 0.013 335.641);
--accent-foreground: oklch(0.662 0.132 338.534);
--destructive: oklch(0.657 0.202 37.213);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.096 0.012 154.777);
--chart-1: oklch(0.096 0.012 154.777);
--chart-2: oklch(0.087 0.013 335.641);
--chart-3: oklch(0.087 0.013 335.641);
--chart-4: oklch(0.139 0.022 336.948);
--chart-5: oklch(0.097 0.013 154.749);
}