Latte for shadcn/ui

Latte is a shadcn/ui theme built around a vivid deep pink primary color (#5f0c38) with vivid deep blue accents (#0c385f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#5f0c38) on a pink-tinted background (#0f060b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f060bblack
Foreground
#11030bblack
#fdfcfcsnow
Card
#fcfcfcsnow
#12070dblack
Card foreground
#0d0208black
#ffffffwhite
Popover
#fcfcfcsnow
#12070dblack
Popover foreground
#0d0208black
#ffffffwhite
Primary
#5f0c38maroon
#5f0c38maroon
Primary foreground
#f4a9d1lightpink
#f4a9d1lightpink
Secondary
#385f0cdarkolivegreen
#385f0cdarkolivegreen
Secondary foreground
#d1f4a9palegoldenrod
#d1f4a9palegoldenrod
Muted
#ebf1e4beige
#151b0eblack
Muted foreground
#5f635adimgray
#a1a59cdarkgray
Accent
#0c385fmidnightblue
#0c385fmidnightblue
Accent foreground
#a9d1f4lightblue
#a9d1f4lightblue
Destructive
#671004maroon
#e6230aorangered
Destructive foreground
#fbaca2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f0c38maroon
#5f0c38maroon

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card19.96:1AAA
Primary button7.15:1AAA
Secondary button6.09:1AA
Muted text5.33:1AA
Accent7.47:1AAA
Destructive6.98:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.75:1AAA
Primary button7.15:1AAA
Secondary button6.09:1AA
Muted text7.01:1AAA
Accent7.47:1AAA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.034 345.825);
  --muted: oklch(0.95 0.018 127.352);
  --muted-foreground: oklch(0.493 0.016 127.507);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.12 0.03 343.878);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.12 0.03 343.878);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.327 0.122 354.332);
  --primary-foreground: oklch(0.818 0.102 346.356);
  --secondary: oklch(0.441 0.116 132.507);
  --secondary-foreground: oklch(0.925 0.105 128.616);
  --accent: oklch(0.335 0.083 249.692);
  --accent-foreground: oklch(0.844 0.065 245.092);
  --destructive: oklch(0.333 0.122 31.382);
  --destructive-foreground: oklch(0.819 0.095 27.629);
  --ring: oklch(0.327 0.122 354.332);
  --chart-1: oklch(0.327 0.122 354.332);
  --chart-2: oklch(0.441 0.116 132.507);
  --chart-3: oklch(0.335 0.083 249.692);
  --chart-4: oklch(0.484 0.129 132.654);
  --chart-5: oklch(0.329 0.124 354.795);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.021 345.131);
  --foreground: oklch(0.992 0.002 343.485);
  --muted: oklch(0.211 0.026 128.771);
  --muted-foreground: oklch(0.717 0.014 127.359);
  --popover: oklch(0.15 0.024 346.546);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.15 0.024 346.546);
  --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.327 0.122 354.332);
  --primary-foreground: oklch(0.818 0.102 346.356);
  --secondary: oklch(0.441 0.116 132.507);
  --secondary-foreground: oklch(0.925 0.105 128.616);
  --accent: oklch(0.335 0.083 249.692);
  --accent-foreground: oklch(0.844 0.065 245.092);
  --destructive: oklch(0.592 0.228 30.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.327 0.122 354.332);
  --chart-1: oklch(0.327 0.122 354.332);
  --chart-2: oklch(0.441 0.116 132.507);
  --chart-3: oklch(0.335 0.083 249.692);
  --chart-4: oklch(0.484 0.129 132.654);
  --chart-5: oklch(0.329 0.124 354.795);
}