Cold Horizon for shadcn/ui

Cold Horizon is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted deep blue accents (#3d4152). The light mode uses a blue-tinted background (#1c1e26). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#1c1e26).

Color palette

TokenLightDark
Background
#1c1e26black
#1c1e26black
Foreground
#ffffffwhite
#ffffffwhite
Card
#181a20black
#181a20black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#16171dblack
#16171dblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#262831darkslategray
#262831darkslategray
Muted foreground
#a1a5b5darkgray
#a1a5b5darkgray
Accent
#3d4152darkslategray
#3d4152darkslategray
Accent foreground
#dcdee5gainsboro
#dcdee5gainsboro
Destructive
#f05038tomato
#f05038tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2c2d30darkslategray
#2c2d30darkslategray
Input
#333438darkslategray
#333438darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background16.59:1AAA
Text on card17.45:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.97:1AA
Accent7.53:1AAA
Destructive3.54:1AA Large
Dark mode
Text on background16.59:1AAA
Text on card17.45:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.97:1AA
Accent7.53:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.237 0.016 274.131);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.279 0.016 274.278);
  --muted-foreground: oklch(0.723 0.024 274.609);
  --popover: oklch(0.207 0.012 274.218);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.217 0.013 274.185);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.296 0.007 274.746);
  --input: oklch(0.325 0.008 274.735);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.378 0.03 273.921);
  --accent-foreground: oklch(0.9 0.01 274.895);
  --destructive: oklch(0.65 0.2 31.504);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.378 0.03 273.921);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.237 0.016 274.131);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.279 0.016 274.278);
  --muted-foreground: oklch(0.723 0.024 274.609);
  --popover: oklch(0.207 0.012 274.218);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.217 0.013 274.185);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.296 0.007 274.746);
  --input: oklch(0.325 0.008 274.735);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.378 0.03 273.921);
  --accent-foreground: oklch(0.9 0.01 274.895);
  --destructive: oklch(0.65 0.2 31.504);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.378 0.03 273.921);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}