Cirrus for shadcn/ui

Cirrus is a shadcn/ui theme built around a near-white primary color (#fefdfb) with near-white accents (#fbfcfe). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the near-white primary (#fefdfb) on a yellow-tinted background (#0b0a04).

Color palette

TokenLightDark
Background
#fdfcf7snow
#0b0a04black
Foreground
#000000black
#ffffffwhite
Card
#fcfaf3floralwhite
#0f0d05black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfcf7snow
#0b0a04black
Popover foreground
#000000black
#ffffffwhite
Primary
#fefdfbsnow
#fefdfbsnow
Primary foreground
#494018darkolivegreen
#494018darkolivegreen
Secondary
#fbfcfewhite
#fbfcfewhite
Secondary foreground
#314396darkslateblue
#314396darkslateblue
Muted
#dadce7gainsboro
#181b25black
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#fbfcfewhite
#fbfcfewhite
Accent foreground
#314396darkslateblue
#314396darkslateblue
Destructive
#642107maroon
#f05d24chocolate
Destructive foreground
#f9bca4lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fefdfbsnow
#fefdfbsnow

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.11:1AAA
Primary button10.19:1AAA
Secondary button8.59:1AAA
Muted text4.90:1AA
Accent8.59:1AAA
Destructive7.21:1AAA
Dark mode
Text on background19.81:1AAA
Text on card19.40:1AAA
Primary button10.19:1AAA
Secondary button8.59:1AAA
Muted text6.83:1AA
Accent8.59:1AAA
Destructive6.30:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 96.247);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.897 0.015 275.95);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.99 0.006 96.247);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.01 96.288);
  --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.995 0.003 96.201);
  --primary-foreground: oklch(0.372 0.059 96.725);
  --secondary: oklch(0.99 0.003 276.128);
  --secondary-foreground: oklch(0.418 0.137 269.953);
  --accent: oklch(0.99 0.003 276.128);
  --accent-foreground: oklch(0.418 0.137 269.953);
  --destructive: oklch(0.348 0.103 39.365);
  --destructive-foreground: oklch(0.845 0.077 42.553);
  --ring: oklch(0.995 0.003 96.201);
  --chart-1: oklch(0.995 0.003 96.201);
  --chart-2: oklch(0.99 0.003 276.128);
  --chart-3: oklch(0.99 0.003 276.128);
  --chart-4: oklch(1.02 0.006 96.235);
  --chart-5: oklch(0.995 0.003 96.204);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.016 99.499);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.021 274.747);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.144 0.016 99.499);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.018 98.199);
  --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.995 0.003 96.201);
  --primary-foreground: oklch(0.372 0.059 96.725);
  --secondary: oklch(0.99 0.003 276.128);
  --secondary-foreground: oklch(0.418 0.137 269.953);
  --accent: oklch(0.99 0.003 276.128);
  --accent-foreground: oklch(0.418 0.137 269.953);
  --destructive: oklch(0.663 0.192 39.489);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.995 0.003 96.201);
  --chart-1: oklch(0.995 0.003 96.201);
  --chart-2: oklch(0.99 0.003 276.128);
  --chart-3: oklch(0.99 0.003 276.128);
  --chart-4: oklch(1.02 0.006 96.235);
  --chart-5: oklch(0.995 0.003 96.204);
}