Calf for shadcn/ui

Calf is a shadcn/ui theme built around a muted light blue primary color (#d3d6de) with muted light green accents (#d6ded3). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted light blue primary (#d3d6de) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#000000black
Foreground
#010309black
#ffffffwhite
Card
#f4f5fbwhitesmoke
#030303black
Card foreground
#010104black
#ffffffwhite
Popover
#f8f9fcghostwhite
#000000black
Popover foreground
#010309black
#ffffffwhite
Primary
#d3d6degainsboro
#d3d6degainsboro
Primary foreground
#373a49darkslategray
#373a49darkslategray
Secondary
#ded3d6gainsboro
#ded3d6gainsboro
Secondary foreground
#49373adarkslategray
#49373adarkslategray
Muted
#ede3e5linen
#1c1214black
Muted foreground
#6f5258dimgray
#ad9095rosybrown
Accent
#d6ded3gainsboro
#d6ded3gainsboro
Accent foreground
#3a4937darkslategray
#3a4937darkslategray
Destructive
#612105maroon
#ed500corangered
Destructive foreground
#faba9elightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3d6degainsboro
#d3d6degainsboro

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.18:1AAA
Primary button7.73:1AAA
Secondary button7.63:1AAA
Muted text5.53:1AA
Accent6.96:1AA
Destructive7.30:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.73:1AAA
Secondary button7.63:1AAA
Muted text6.28:1AA
Accent6.96:1AA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 274.972);
  --foreground: oklch(0.098 0.021 264.975);
  --muted: oklch(0.924 0.011 3.513);
  --muted-foreground: oklch(0.472 0.04 5.399);
  --popover: oklch(0.981 0.005 274.972);
  --popover-foreground: oklch(0.098 0.021 264.975);
  --card: oklch(0.972 0.007 274.94);
  --card-foreground: oklch(0.078 0.017 264.975);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.876 0.012 274.865);
  --primary-foreground: oklch(0.352 0.025 274.034);
  --secondary: oklch(0.877 0.012 3.557);
  --secondary-foreground: oklch(0.357 0.026 5.108);
  --accent: oklch(0.891 0.017 139.439);
  --accent-foreground: oklch(0.386 0.035 139.435);
  --destructive: oklch(0.341 0.1 40.414);
  --destructive-foreground: oklch(0.84 0.084 44.214);
  --ring: oklch(0.876 0.012 274.865);
  --chart-1: oklch(0.876 0.012 274.865);
  --chart-2: oklch(0.877 0.012 3.557);
  --chart-3: oklch(0.891 0.017 139.439);
  --chart-4: oklch(0.902 0.01 3.472);
  --chart-5: oklch(0.874 0.015 274.826);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.017 5.499);
  --muted-foreground: oklch(0.68 0.036 4.579);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.876 0.012 274.865);
  --primary-foreground: oklch(0.352 0.025 274.034);
  --secondary: oklch(0.877 0.012 3.557);
  --secondary-foreground: oklch(0.357 0.026 5.108);
  --accent: oklch(0.891 0.017 139.439);
  --accent-foreground: oklch(0.386 0.035 139.435);
  --destructive: oklch(0.642 0.204 38.389);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.876 0.012 274.865);
  --chart-1: oklch(0.876 0.012 274.865);
  --chart-2: oklch(0.877 0.012 3.557);
  --chart-3: oklch(0.891 0.017 139.439);
  --chart-4: oklch(0.902 0.01 3.472);
  --chart-5: oklch(0.874 0.015 274.826);
}