Creamy for shadcn/ui

Creamy is a shadcn/ui theme built around a light yellow primary color (#fcfbf3) with light green accents (#f9fcf3). The light mode uses a neutral background (#fefefb). Dark mode keeps the light yellow primary (#fcfbf3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#141206black
#fbfbf9snow
Card
#fdfcf7snow
#030303black
Card foreground
#100e05black
#fdfdfcwhite
Popover
#fefefbwhite
#000000black
Popover foreground
#141206black
#fbfbf9snow
Primary
#fcfbf3floralwhite
#fcfbf3floralwhite
Primary foreground
#463f10darkolivegreen
#463f10darkolivegreen
Secondary
#fcf6f3floralwhite
#fcf6f3floralwhite
Secondary foreground
#462410maroon
#462410maroon
Muted
#e7e5e4gainsboro
#1b1918black
Muted foreground
#5d524bdarkolivegreen
#b4a8a2darkgray
Accent
#f9fcf3floralwhite
#f9fcf3floralwhite
Accent foreground
#334610darkolivegreen
#334610darkolivegreen
Destructive
#922f01saddlebrown
#fd590dorangered
Destructive foreground
#fed9c7bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfbf3floralwhite
#fcfbf3floralwhite

Contrast

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

Light mode
Text on background18.52:1AAA
Text on card18.82:1AAA
Primary button10.21:1AAA
Secondary button12.90:1AAA
Muted text6.03:1AA
Accent9.99:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.31:1AAA
Primary button10.21:1AAA
Secondary button12.90:1AAA
Muted text7.55:1AAA
Accent9.99:1AAA
Destructive6.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 99.393);
  --foreground: oklch(0.179 0.023 101.059);
  --muted: oklch(0.923 0.002 52.548);
  --muted-foreground: oklch(0.447 0.019 52.031);
  --popover: oklch(0.995 0.004 99.393);
  --popover-foreground: oklch(0.179 0.023 101.059);
  --card: oklch(0.991 0.007 99.445);
  --card-foreground: oklch(0.163 0.02 101.501);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.986 0.011 99.503);
  --primary-foreground: oklch(0.365 0.065 100.422);
  --secondary: oklch(0.977 0.008 52.47);
  --secondary-foreground: oklch(0.302 0.06 49.057);
  --accent: oklch(0.986 0.013 123.13);
  --accent-foreground: oklch(0.366 0.081 127.46);
  --destructive: oklch(0.45 0.142 39.512);
  --destructive-foreground: oklch(0.912 0.048 46.334);
  --ring: oklch(0.986 0.011 99.503);
  --chart-1: oklch(0.986 0.011 99.503);
  --chart-2: oklch(0.977 0.008 52.47);
  --chart-3: oklch(0.986 0.013 123.13);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.987 0.011 99.51);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.003 99.388);
  --muted: oklch(0.216 0.003 52.386);
  --muted-foreground: oklch(0.741 0.017 52.282);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.003 99.388);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 99.364);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.986 0.011 99.503);
  --primary-foreground: oklch(0.365 0.065 100.422);
  --secondary: oklch(0.977 0.008 52.47);
  --secondary-foreground: oklch(0.302 0.06 49.057);
  --accent: oklch(0.986 0.013 123.13);
  --accent-foreground: oklch(0.366 0.081 127.46);
  --destructive: oklch(0.676 0.212 39.251);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.986 0.011 99.503);
  --chart-1: oklch(0.986 0.011 99.503);
  --chart-2: oklch(0.977 0.008 52.47);
  --chart-3: oklch(0.986 0.013 123.13);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.987 0.011 99.51);
}