Creamy is a shadcn/ui theme built around a light blue primary color (#abb5e2) with light violet accents (#beabe2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#abb5e2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030512black | #f5f6fawhitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #030512black | #f5f6fawhitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030512black | #f5f6fawhitesmoke |
| Primary | #abb5e2lightsteelblue | #abb5e2lightsteelblue |
| Primary foreground | #171f44midnightblue | #171f44midnightblue |
| Secondary | #abd0e2lightblue | #abd0e2lightblue |
| Secondary foreground | #173544darkslategray | #173544darkslategray |
| Muted | #d5e4ebgainsboro | #14222ablack |
| Muted foreground | #4d5051darkslategray | #aeb0b2darkgray |
| Accent | #beabe2lightsteelblue | #beabe2lightsteelblue |
| Accent foreground | #261744midnightblue | #261744midnightblue |
| Destructive | #be170efirebrick | #ef382ecrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #abb5e2lightsteelblue | #abb5e2lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.97:1 | AA Large |
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.121 0.032 267.862);
--muted: oklch(0.91 0.019 229.031);
--muted-foreground: oklch(0.428 0.003 228.85);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.121 0.032 267.862);
--card: oklch(1 0 180);
--card-foreground: oklch(0.121 0.032 267.862);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.78 0.066 275.934);
--primary-foreground: oklch(0.255 0.071 271.987);
--secondary: oklch(0.837 0.047 229.631);
--secondary-foreground: oklch(0.315 0.045 232.367);
--accent: oklch(0.777 0.08 299.821);
--accent-foreground: oklch(0.253 0.081 295.37);
--destructive: oklch(0.511 0.198 29.363);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.78 0.066 275.934);
--chart-1: oklch(0.78 0.066 275.934);
--chart-2: oklch(0.837 0.047 229.631);
--chart-3: oklch(0.777 0.08 299.821);
--chart-4: oklch(0.859 0.04 229.462);
--chart-5: oklch(0.778 0.07 275.835);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.972 0.006 277.174);
--muted: oklch(0.243 0.024 230.75);
--muted-foreground: oklch(0.757 0.003 228.799);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.972 0.006 277.174);
--card: oklch(0 0 0);
--card-foreground: oklch(0.972 0.006 277.174);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.78 0.066 275.934);
--primary-foreground: oklch(0.255 0.071 271.987);
--secondary: oklch(0.837 0.047 229.631);
--secondary-foreground: oklch(0.315 0.045 232.367);
--accent: oklch(0.777 0.08 299.821);
--accent-foreground: oklch(0.253 0.081 295.37);
--destructive: oklch(0.625 0.22 28.469);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.78 0.066 275.934);
--chart-1: oklch(0.78 0.066 275.934);
--chart-2: oklch(0.837 0.047 229.631);
--chart-3: oklch(0.777 0.08 299.821);
--chart-4: oklch(0.859 0.04 229.462);
--chart-5: oklch(0.778 0.07 275.835);
}