Milky for shadcn/ui

Milky is a shadcn/ui theme built around a vivid yellow primary color (#ecdc5f) with vivid green accents (#b6ec5f). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid yellow primary (#ecdc5f) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#fefdfbsnow
#070703black
Foreground
#040401black
#fdfdfcwhite
Card
#fdfcf7snow
#0b0a04black
Card foreground
#000000black
#ffffffwhite
Popover
#fefdfbsnow
#070703black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#ecdc5fkhaki
#ecdc5fkhaki
Primary foreground
#171403black
#171403black
Secondary
#ec955fsandybrown
#ec955fsandybrown
Secondary foreground
#170a03black
#170a03black
Muted
#ecded5gainsboro
#2a1c13black
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#b6ec5fgreenyellow
#b6ec5fgreenyellow
Accent foreground
#0f1703black
#0f1703black
Destructive
#e25103orangered
#fc6b1dchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecdc5fkhaki
#ecdc5fkhaki

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.42:1AAA
Primary button13.14:1AAA
Secondary button8.37:1AAA
Muted text6.41:1AA
Accent13.27:1AAA
Destructive3.87:1AA Large
Dark mode
Text on background19.82:1AAA
Text on card19.78:1AAA
Primary button13.14:1AAA
Secondary button8.37:1AAA
Muted text7.86:1AAA
Accent13.27:1AAA
Destructive7.23:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 100.379);
  --foreground: oklch(0.102 0.013 103.566);
  --muted: oklch(0.909 0.019 54.215);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.995 0.003 100.379);
  --popover-foreground: oklch(0.102 0.013 103.566);
  --card: oklch(0.99 0.006 100.428);
  --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.884 0.145 101.826);
  --primary-foreground: oklch(0.191 0.034 102.77);
  --secondary: oklch(0.749 0.126 51.635);
  --secondary-foreground: oklch(0.162 0.029 58.906);
  --accent: oklch(0.879 0.179 127.419);
  --accent-foreground: oklch(0.19 0.041 126.078);
  --destructive: oklch(0.625 0.193 40.586);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.884 0.145 101.826);
  --chart-1: oklch(0.884 0.145 101.826);
  --chart-2: oklch(0.749 0.126 51.635);
  --chart-3: oklch(0.879 0.179 127.419);
  --chart-4: oklch(0.769 0.115 52.133);
  --chart-5: oklch(0.89 0.149 101.808);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.014 103.17);
  --foreground: oklch(0.993 0.001 100.344);
  --muted: oklch(0.241 0.027 52.9);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.126 0.014 103.17);
  --popover-foreground: oklch(0.993 0.001 100.344);
  --card: oklch(0.145 0.016 102.957);
  --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.884 0.145 101.826);
  --primary-foreground: oklch(0.191 0.034 102.77);
  --secondary: oklch(0.749 0.126 51.635);
  --secondary-foreground: oklch(0.162 0.029 58.906);
  --accent: oklch(0.879 0.179 127.419);
  --accent-foreground: oklch(0.19 0.041 126.078);
  --destructive: oklch(0.698 0.194 43.466);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.884 0.145 101.826);
  --chart-1: oklch(0.884 0.145 101.826);
  --chart-2: oklch(0.749 0.126 51.635);
  --chart-3: oklch(0.879 0.179 127.419);
  --chart-4: oklch(0.769 0.115 52.133);
  --chart-5: oklch(0.89 0.149 101.808);
}