Cloudy for shadcn/ui

Cloudy is a shadcn/ui theme built around a muted yellow primary color (#8b8e5d) with muted indigo accents (#605d8e). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted yellow primary (#8b8e5d) on a yellow-tinted background (#101004).

Color palette

TokenLightDark
Background
#fefefbwhite
#101004black
Foreground
#151603black
#fbfbf8snow
Card
#fefefbwhite
#101004black
Card foreground
#151603black
#fbfbf8snow
Popover
#fefefbwhite
#101004black
Popover foreground
#151603black
#fbfbf8snow
Primary
#8b8e5dgray
#8b8e5dgray
Primary foreground
#000000black
#000000black
Secondary
#605d8eslategray
#605d8eslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3e2eelavender
#12111dblack
Muted foreground
#595865dimgray
#9b9aa7darkgray
Accent
#605d8eslategray
#605d8eslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b42208firebrick
#f43f1forangered
Destructive foreground
#fef2f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8b8e5dgray
#8b8e5dgray

Contrast

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

Light mode
Text on background18.08:1AAA
Text on card18.08:1AAA
Primary button6.11:1AA
Secondary button6.10:1AA
Muted text5.43:1AA
Accent6.10:1AA
Destructive6.02:1AA
Dark mode
Text on background18.43:1AAA
Text on card18.43:1AAA
Primary button6.11:1AA
Secondary button6.10:1AA
Muted text6.75:1AA
Accent6.10:1AA
Destructive3.75: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.996 0.004 109.55);
  --foreground: oklch(0.194 0.035 112.493);
  --muted: oklch(0.917 0.017 289.134);
  --muted-foreground: oklch(0.465 0.021 288.605);
  --popover: oklch(0.996 0.004 109.55);
  --popover-foreground: oklch(0.194 0.035 112.493);
  --card: oklch(0.996 0.004 109.55);
  --card-foreground: oklch(0.194 0.035 112.493);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.631 0.069 111.444);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.501 0.078 286.286);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.501 0.078 286.286);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.499 0.184 31.845);
  --destructive-foreground: oklch(0.971 0.013 29.517);
  --ring: oklch(0.631 0.069 111.444);
  --chart-1: oklch(0.631 0.069 111.444);
  --chart-2: oklch(0.501 0.078 286.286);
  --chart-3: oklch(0.501 0.078 286.286);
  --chart-4: oklch(0.524 0.082 286.26);
  --chart-5: oklch(0.641 0.077 111.656);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.169 0.026 111.834);
  --foreground: oklch(0.988 0.004 109.549);
  --muted: oklch(0.184 0.025 286.703);
  --muted-foreground: oklch(0.691 0.019 288.953);
  --popover: oklch(0.169 0.026 111.834);
  --popover-foreground: oklch(0.988 0.004 109.549);
  --card: oklch(0.169 0.026 111.834);
  --card-foreground: oklch(0.988 0.004 109.549);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.631 0.069 111.444);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.501 0.078 286.286);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.501 0.078 286.286);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.222 32.249);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.069 111.444);
  --chart-1: oklch(0.631 0.069 111.444);
  --chart-2: oklch(0.501 0.078 286.286);
  --chart-3: oklch(0.501 0.078 286.286);
  --chart-4: oklch(0.524 0.082 286.26);
  --chart-5: oklch(0.641 0.077 111.656);
}