Milky for shadcn/ui

Milky is a shadcn/ui theme built around a muted red primary color (#9c636d) with muted orange accents (#9c7663). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted red primary (#9c636d) on a red-tinted background (#0a0506).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0a0506black
Foreground
#000000black
#faf5f6whitesmoke
Card
#fefbfcsnow
#0a0506black
Card foreground
#000000black
#faf5f6whitesmoke
Popover
#fefbfcsnow
#0a0506black
Popover foreground
#000000black
#faf5f6whitesmoke
Primary
#9c636dgray
#9c636dgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9c6389gray
#9c6389gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae6e9lavender
#191518black
Muted foreground
#60575ddimgray
#a89fa5darkgray
Accent
#9c7663gray
#9c7663gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c13e01firebrick
#fe6620tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9c636dgray
#9c636dgray

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button4.74:1AA
Secondary button4.59:1AA
Muted text5.62:1AA
Accent4.05:1AA Large
Destructive5.32:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button4.74:1AA
Secondary button4.59:1AA
Muted text7.04:1AAA
Accent4.05:1AA Large
Destructive7.13:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 5.517);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.929 0.006 337.404);
  --muted-foreground: oklch(0.468 0.015 337.908);
  --popover: oklch(0.991 0.003 5.517);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 5.517);
  --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.565 0.074 8.809);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.088 340.141);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.598 0.055 47.785);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.547 0.176 38.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.565 0.074 8.809);
  --chart-1: oklch(0.565 0.074 8.809);
  --chart-2: oklch(0.574 0.088 340.141);
  --chart-3: oklch(0.598 0.055 47.785);
  --chart-4: oklch(0.6 0.082 339.838);
  --chart-5: oklch(0.562 0.084 9.335);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.011 5.732);
  --foreground: oklch(0.974 0.005 5.578);
  --muted: oklch(0.201 0.009 338.183);
  --muted-foreground: oklch(0.711 0.014 337.65);
  --popover: oklch(0.126 0.011 5.732);
  --popover-foreground: oklch(0.974 0.005 5.578);
  --card: oklch(0.126 0.011 5.732);
  --card-foreground: oklch(0.974 0.005 5.578);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.565 0.074 8.809);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.088 340.141);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.598 0.055 47.785);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.695 0.2 41.237);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.565 0.074 8.809);
  --chart-1: oklch(0.565 0.074 8.809);
  --chart-2: oklch(0.574 0.088 340.141);
  --chart-3: oklch(0.598 0.055 47.785);
  --chart-4: oklch(0.6 0.082 339.838);
  --chart-5: oklch(0.562 0.084 9.335);
}