Creamy is a shadcn/ui theme built around a vivid light yellow primary color (#f6f5ac) with vivid light purple accents (#f5acf6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#f6f5ac) on a yellow-tinted background (#101004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #101004black |
| Foreground | #0c0c04black | #ffffffwhite |
| Card | #fcfcfcsnow | #141405black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #fcfcfcsnow | #141405black |
| Popover foreground | #080802black | #ffffffwhite |
| Primary | #f6f5acpalegoldenrod | #f6f5acpalegoldenrod |
| Primary foreground | #090901black | #090901black |
| Secondary | #acf6f5paleturquoise | #acf6f5paleturquoise |
| Secondary foreground | #010909black | #010909black |
| Muted | #e5f0f0lavender | #0f1a1ablack |
| Muted foreground | #575c5cdimgray | #a3a8a8darkgray |
| Accent | #f5acf6plum | #f5acf6plum |
| Accent foreground | #640b66indigo | #640b66indigo |
| Destructive | #8f0904darkred | #e40e07red |
| Destructive foreground | #fdcac9pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6f5acpalegoldenrod | #f6f5acpalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 17.68:1 | AAA |
| Secondary button | 16.55:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 6.79:1 | AA |
| Destructive | 6.52:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 17.68:1 | AAA |
| Secondary button | 16.55:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 6.79:1 | AA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Creamy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.019 107.842);
--muted: oklch(0.947 0.011 195.767);
--muted-foreground: oklch(0.47 0.007 195.724);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.13 0.017 107.889);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.13 0.017 107.889);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.954 0.092 107.209);
--primary-foreground: oklch(0.136 0.025 108.728);
--secondary: oklch(0.925 0.073 194.645);
--secondary-foreground: oklch(0.129 0.019 194.088);
--accent: oklch(0.837 0.128 326.086);
--accent-foreground: oklch(0.36 0.156 327.442);
--destructive: oklch(0.413 0.164 29.359);
--destructive-foreground: oklch(0.884 0.058 20.616);
--ring: oklch(0.954 0.092 107.209);
--chart-1: oklch(0.954 0.092 107.209);
--chart-2: oklch(0.925 0.073 194.645);
--chart-3: oklch(0.837 0.128 326.086);
--chart-4: oklch(0.936 0.062 194.855);
--chart-5: oklch(0.958 0.096 107.252);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.169 0.025 107.991);
--foreground: oklch(1 0 180);
--muted: oklch(0.206 0.015 194.724);
--muted-foreground: oklch(0.729 0.006 195.828);
--popover: oklch(0.187 0.028 108.005);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.187 0.028 108.005);
--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.954 0.092 107.209);
--primary-foreground: oklch(0.136 0.025 108.728);
--secondary: oklch(0.925 0.073 194.645);
--secondary-foreground: oklch(0.129 0.019 194.088);
--accent: oklch(0.837 0.128 326.086);
--accent-foreground: oklch(0.36 0.156 327.442);
--destructive: oklch(0.579 0.233 29.323);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.954 0.092 107.209);
--chart-1: oklch(0.954 0.092 107.209);
--chart-2: oklch(0.925 0.073 194.645);
--chart-3: oklch(0.837 0.128 326.086);
--chart-4: oklch(0.936 0.062 194.855);
--chart-5: oklch(0.958 0.096 107.252);
}