Cold for shadcn/ui

Cold is a shadcn/ui theme built around a muted orange primary color (#6b5343) with muted yellow accents (#6b6743). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#6b5343) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#040201black
#faf7f5whitesmoke
Card
#ffffffwhite
#040201black
Card foreground
#040201black
#faf7f5whitesmoke
Popover
#ffffffwhite
#040201black
Popover foreground
#040201black
#faf7f5whitesmoke
Primary
#6b5343darkolivegreen
#6b5343darkolivegreen
Primary foreground
#f3efeclinen
#f3efeclinen
Secondary
#6b4346darkolivegreen
#6b4346darkolivegreen
Secondary foreground
#f3ecedlinen
#f3ecedlinen
Muted
#e5dcddgainsboro
#231a1bblack
Muted foreground
#6c5658dimgray
#a99395rosybrown
Accent
#6b6743darkolivegreen
#6b6743darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7f300bsaddlebrown
#d34f12chocolate
Destructive foreground
#fad4c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6b5343darkolivegreen
#6b5343darkolivegreen

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button6.22:1AA
Secondary button7.19:1AAA
Muted text5.01:1AA
Accent5.74:1AA
Destructive6.57:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button6.22:1AA
Secondary button7.19:1AAA
Muted text5.90:1AA
Accent5.74:1AA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.093 0.013 69.112);
  --muted: oklch(0.901 0.01 11.495);
  --muted-foreground: oklch(0.476 0.028 12.562);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.093 0.013 69.112);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.093 0.013 69.112);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.463 0.04 57.063);
  --primary-foreground: oklch(0.955 0.006 58.276);
  --secondary: oklch(0.429 0.056 14.22);
  --secondary-foreground: oklch(0.949 0.008 11.426);
  --accent: oklch(0.508 0.054 103.686);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.416 0.119 41.412);
  --destructive-foreground: oklch(0.896 0.049 46.318);
  --ring: oklch(0.463 0.04 57.063);
  --chart-1: oklch(0.463 0.04 57.063);
  --chart-2: oklch(0.429 0.056 14.22);
  --chart-3: oklch(0.508 0.054 103.686);
  --chart-4: oklch(0.455 0.06 14.261);
  --chart-5: oklch(0.464 0.046 56.862);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.01 66.584);
  --foreground: oklch(0.978 0.004 58.309);
  --muted: oklch(0.229 0.015 12.663);
  --muted-foreground: oklch(0.684 0.026 12.069);
  --popover: oklch(0.093 0.01 66.584);
  --popover-foreground: oklch(0.978 0.004 58.309);
  --card: oklch(0.093 0.01 66.584);
  --card-foreground: oklch(0.978 0.004 58.309);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.463 0.04 57.063);
  --primary-foreground: oklch(0.955 0.006 58.276);
  --secondary: oklch(0.429 0.056 14.22);
  --secondary-foreground: oklch(0.949 0.008 11.426);
  --accent: oklch(0.508 0.054 103.686);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.599 0.178 40.536);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.463 0.04 57.063);
  --chart-1: oklch(0.463 0.04 57.063);
  --chart-2: oklch(0.429 0.056 14.22);
  --chart-3: oklch(0.508 0.054 103.686);
  --chart-4: oklch(0.455 0.06 14.261);
  --chart-5: oklch(0.464 0.046 56.862);
}