Cheesecake for shadcn/ui

Cheesecake is a shadcn/ui theme built around a light yellow primary color (#f6f4db) with light indigo accents (#dbdcf6). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the light yellow primary (#f6f4db) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#040401black
Foreground
#000000black
#ffffffwhite
Card
#fcfbf8snow
#080802black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfbf8snow
#080802black
Popover foreground
#000000black
#ffffffwhite
Primary
#f6f4dbbeige
#f6f4dbbeige
Primary foreground
#2d2b0cblack
#2d2b0cblack
Secondary
#dbdcf6lavender
#dbdcf6lavender
Secondary foreground
#20257emidnightblue
#20257emidnightblue
Muted
#dedfedlavender
#121321black
Muted foreground
#3d3d4ddarkslategray
#b2b3c2silver
Accent
#dbdcf6lavender
#dbdcf6lavender
Accent foreground
#20257emidnightblue
#20257emidnightblue
Destructive
#d52e10firebrick
#df3011orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6f4dbbeige
#f6f4dbbeige

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.32:1AAA
Primary button12.91:1AAA
Secondary button9.55:1AAA
Muted text8.05:1AAA
Accent9.55:1AAA
Destructive4.95:1AA
Dark mode
Text on background20.53:1AAA
Text on card20.09:1AAA
Primary button12.91:1AAA
Secondary button9.55:1AAA
Muted text8.86:1AAA
Accent9.55:1AAA
Destructive4.60:1AA

CSS variables

Paste this into your globals.css to use Cheesecake in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 104.007);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.018 283.614);
  --muted-foreground: oklch(0.367 0.027 282.616);
  --popover: oklch(0.988 0.004 104.042);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 104.042);
  --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.962 0.034 104.555);
  --primary-foreground: oklch(0.283 0.048 106.259);
  --secondary: oklch(0.901 0.035 283.274);
  --secondary-foreground: oklch(0.328 0.146 272.701);
  --accent: oklch(0.901 0.035 283.274);
  --accent-foreground: oklch(0.328 0.146 272.701);
  --destructive: oklch(0.569 0.207 31.983);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.962 0.034 104.555);
  --chart-1: oklch(0.962 0.034 104.555);
  --chart-2: oklch(0.901 0.035 283.274);
  --chart-3: oklch(0.901 0.035 283.274);
  --chart-4: oklch(0.934 0.023 283.534);
  --chart-5: oklch(0.964 0.035 104.582);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.014 106.715);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.194 0.027 281.197);
  --muted-foreground: oklch(0.77 0.022 283.459);
  --popover: oklch(0.13 0.018 106.715);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.018 106.715);
  --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.962 0.034 104.555);
  --primary-foreground: oklch(0.283 0.048 106.259);
  --secondary: oklch(0.901 0.035 283.274);
  --secondary-foreground: oklch(0.328 0.146 272.701);
  --accent: oklch(0.901 0.035 283.274);
  --accent-foreground: oklch(0.328 0.146 272.701);
  --destructive: oklch(0.588 0.214 31.964);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.962 0.034 104.555);
  --chart-1: oklch(0.962 0.034 104.555);
  --chart-2: oklch(0.901 0.035 283.274);
  --chart-3: oklch(0.901 0.035 283.274);
  --chart-4: oklch(0.934 0.023 283.534);
  --chart-5: oklch(0.964 0.035 104.582);
}