Creamy for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.62:1AAA
Text on card19.64:1AAA
Primary button17.68:1AAA
Secondary button16.55:1AAA
Muted text5.83:1AA
Accent6.79:1AA
Destructive6.52:1AA
Dark mode
Text on background19.11:1AAA
Text on card18.53:1AAA
Primary button17.68:1AAA
Secondary button16.55:1AAA
Muted text7.39:1AAA
Accent6.79:1AA
Destructive4.82:1AA

CSS variables

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);
}