Cloudy is a shadcn/ui theme built around a red primary color (#8b1d39) with blue accents (#1d398b). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the red primary (#8b1d39) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #070304black |
| Foreground | #040102black | #ffffffwhite |
| Card | #fcf3f5lavenderblush | #0b0506black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf3f5lavenderblush | #0b0506black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #8b1d39brown | #8b1d39brown |
| Primary foreground | #f9e2e7mistyrose | #f9e2e7mistyrose |
| Secondary | #398b1dforestgreen | #398b1dforestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1eeddgainsboro | #152211black |
| Muted foreground | #5e685adimgray | #9ba597darkgray |
| Accent | #1d398bmidnightblue | #1d398bmidnightblue |
| Accent foreground | #e2e7f9lavender | #e2e7f9lavender |
| Destructive | #630803maroon | #ed1307red |
| Destructive foreground | #fca19clightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8b1d39brown | #8b1d39brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 4.85:1 | AA |
| Accent | 8.48:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 20.49:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 6.46:1 | AA |
| Accent | 8.48:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Cloudy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 0.053);
--foreground: oklch(0.084 0.014 359.794);
--muted: oklch(0.935 0.027 137.812);
--muted-foreground: oklch(0.503 0.025 137.849);
--popover: oklch(0.971 0.01 0.149);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.971 0.01 0.149);
--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.424 0.144 11.89);
--primary-foreground: oklch(0.932 0.027 0.657);
--secondary: oklch(0.564 0.163 139.357);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.377 0.141 265.81);
--accent-foreground: oklch(0.93 0.024 271.148);
--destructive: oklch(0.319 0.123 29.837);
--destructive-foreground: oklch(0.799 0.109 23.075);
--ring: oklch(0.424 0.144 11.89);
--chart-1: oklch(0.424 0.144 11.89);
--chart-2: oklch(0.564 0.163 139.357);
--chart-3: oklch(0.377 0.141 265.81);
--chart-4: oklch(0.6 0.174 139.389);
--chart-5: oklch(0.426 0.149 12.583);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.012 359.817);
--foreground: oklch(1 0 180);
--muted: oklch(0.235 0.037 138.144);
--muted-foreground: oklch(0.709 0.023 137.818);
--popover: oklch(0.124 0.014 359.841);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.014 359.841);
--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.424 0.144 11.89);
--primary-foreground: oklch(0.932 0.027 0.657);
--secondary: oklch(0.564 0.163 139.357);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.377 0.141 265.81);
--accent-foreground: oklch(0.93 0.024 271.148);
--destructive: oklch(0.599 0.24 29.521);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.424 0.144 11.89);
--chart-1: oklch(0.424 0.144 11.89);
--chart-2: oklch(0.564 0.163 139.357);
--chart-3: oklch(0.377 0.141 265.81);
--chart-4: oklch(0.6 0.174 139.389);
--chart-5: oklch(0.426 0.149 12.583);
}