Permafrost for shadcn/ui

Permafrost is a shadcn/ui theme built around a deep blue primary color (#122c3b) with muted light blue accents (#b8c8d1). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the deep blue primary (#122c3b) on a blue-tinted background (#05080a).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#05080ablack
Foreground
#03090cblack
#ffffffwhite
Card
#f2f9fcaliceblue
#060b0eblack
Card foreground
#020608black
#ffffffwhite
Popover
#f7fbfdghostwhite
#05080ablack
Popover foreground
#03090cblack
#ffffffwhite
Primary
#122c3bdarkslategray
#122c3bdarkslategray
Primary foreground
#9dc8e1lightsteelblue
#9dc8e1lightsteelblue
Secondary
#d0d8dclightgrey
#2a2c2ddarkslategray
Secondary foreground
#344046darkslategray
#c2c5c7silver
Muted
#d2e1eagainsboro
#15242ddarkslategray
Muted foreground
#3e474cdarkslategray
#b3bcc1silver
Accent
#b8c8d1lightsteelblue
#303a40darkslategray
Accent foreground
#222e34darkslategray
#cbd3d8lightgrey
Destructive
#700801maroon
#fe382aorangered
Destructive foreground
#ffaaa4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#122c3bdarkslategray
#122c3bdarkslategray

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.09:1AAA
Primary button8.16:1AAA
Secondary button7.38:1AAA
Muted text7.10:1AAA
Accent8.07:1AAA
Destructive6.71:1AA
Dark mode
Text on background20.05:1AAA
Text on card19.74:1AAA
Primary button8.16:1AAA
Secondary button8.11:1AAA
Muted text8.19:1AAA
Accent7.65:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.006 232.658);
  --foreground: oklch(0.133 0.014 226.705);
  --muted: oklch(0.901 0.021 232.917);
  --muted-foreground: oklch(0.391 0.014 233.136);
  --popover: oklch(0.985 0.006 232.658);
  --popover-foreground: oklch(0.133 0.014 226.705);
  --card: oklch(0.977 0.008 232.699);
  --card-foreground: oklch(0.116 0.012 225.91);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.279 0.042 236.343);
  --primary-foreground: oklch(0.811 0.057 233.792);
  --secondary: oklch(0.877 0.01 232.75);
  --secondary-foreground: oklch(0.362 0.019 233.434);
  --accent: oklch(0.822 0.021 232.962);
  --accent-foreground: oklch(0.293 0.02 233.74);
  --destructive: oklch(0.346 0.136 30.56);
  --destructive-foreground: oklch(0.818 0.101 24.001);
  --ring: oklch(0.279 0.042 236.343);
  --chart-1: oklch(0.279 0.042 236.343);
  --chart-2: oklch(0.877 0.01 232.75);
  --chart-3: oklch(0.822 0.021 232.962);
  --chart-4: oklch(0.9 0.008 232.713);
  --chart-5: oklch(0.28 0.044 236.657);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.009 228.132);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.027 234.738);
  --muted-foreground: oklch(0.79 0.012 232.799);
  --popover: oklch(0.133 0.009 228.132);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.01 231.343);
  --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.279 0.042 236.343);
  --primary-foreground: oklch(0.811 0.057 233.792);
  --secondary: oklch(0.291 0.004 232.772);
  --secondary-foreground: oklch(0.822 0.004 232.649);
  --accent: oklch(0.342 0.017 233.355);
  --accent-foreground: oklch(0.861 0.011 232.762);
  --destructive: oklch(0.65 0.234 29.298);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.279 0.042 236.343);
  --chart-1: oklch(0.279 0.042 236.343);
  --chart-2: oklch(0.291 0.004 232.772);
  --chart-3: oklch(0.342 0.017 233.355);
  --chart-4: oklch(0.321 0.004 232.779);
  --chart-5: oklch(0.28 0.044 236.657);
}