Cloudy for shadcn/ui

Cloudy is a shadcn/ui theme built around a muted purple primary color (#684565) with muted pink accents (#684553). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the muted purple primary (#684565) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#070307black
Foreground
#0c040bblack
#ffffffwhite
Card
#fdfbfdsnow
#070307black
Card foreground
#0c040bblack
#ffffffwhite
Popover
#fdfbfdsnow
#070307black
Popover foreground
#0c040bblack
#ffffffwhite
Primary
#684565dimgray
#684565dimgray
Primary foreground
#f3edf2whitesmoke
#f3edf2whitesmoke
Secondary
#5a4568dimgray
#5a4568dimgray
Secondary foreground
#f0edf3whitesmoke
#f0edf3whitesmoke
Muted
#dbcfe3gainsboro
#281c30darkslategray
Muted foreground
#454446darkslategray
#bab9bbsilver
Accent
#684553dimgray
#684553dimgray
Accent foreground
#f3edefwhitesmoke
#f3edefwhitesmoke
Destructive
#a71311firebrick
#ec3f3ctomato
Destructive foreground
#fdedeclinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#684565dimgray
#684565dimgray

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button6.90:1AA
Secondary button7.25:1AAA
Muted text6.46:1AA
Accent7.05:1AAA
Destructive6.73:1AA
Dark mode
Text on background20.47:1AAA
Text on card20.47:1AAA
Primary button6.90:1AA
Secondary button7.25:1AAA
Muted text8.24:1AAA
Accent7.05:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 328.629);
  --foreground: oklch(0.124 0.026 329.979);
  --muted: oklch(0.87 0.03 312.103);
  --muted-foreground: oklch(0.389 0.003 312.309);
  --popover: oklch(0.991 0.003 328.629);
  --popover-foreground: oklch(0.124 0.026 329.979);
  --card: oklch(0.991 0.003 328.629);
  --card-foreground: oklch(0.124 0.026 329.979);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.442 0.066 330.141);
  --primary-foreground: oklch(0.951 0.01 328.706);
  --secondary: oklch(0.428 0.062 311.272);
  --secondary-foreground: oklch(0.95 0.009 312.287);
  --accent: oklch(0.435 0.052 353.781);
  --accent-foreground: oklch(0.95 0.007 350.841);
  --destructive: oklch(0.465 0.18 28.473);
  --destructive-foreground: oklch(0.958 0.018 18.651);
  --ring: oklch(0.442 0.066 330.141);
  --chart-1: oklch(0.442 0.066 330.141);
  --chart-2: oklch(0.428 0.062 311.272);
  --chart-3: oklch(0.435 0.052 353.781);
  --chart-4: oklch(0.453 0.066 311.258);
  --chart-5: oklch(0.441 0.076 330.355);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.017 329.468);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.252 0.04 311.143);
  --muted-foreground: oklch(0.788 0.002 312.338);
  --popover: oklch(0.111 0.017 329.468);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.017 329.468);
  --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.442 0.066 330.141);
  --primary-foreground: oklch(0.951 0.01 328.706);
  --secondary: oklch(0.428 0.062 311.272);
  --secondary-foreground: oklch(0.95 0.009 312.287);
  --accent: oklch(0.435 0.052 353.781);
  --accent-foreground: oklch(0.95 0.007 350.841);
  --destructive: oklch(0.626 0.21 26.451);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.442 0.066 330.141);
  --chart-1: oklch(0.442 0.066 330.141);
  --chart-2: oklch(0.428 0.062 311.272);
  --chart-3: oklch(0.435 0.052 353.781);
  --chart-4: oklch(0.453 0.066 311.258);
  --chart-5: oklch(0.441 0.076 330.355);
}