Permafrost for shadcn/ui

Permafrost is a shadcn/ui theme built around a deep green primary color (#566510) with deep purple accents (#651056). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep green primary (#566510) on a green-tinted background (#0e1004).

Color palette

TokenLightDark
Background
#fefefbwhite
#0e1004black
Foreground
#040401black
#f9faf5whitesmoke
Card
#fcfdf6snow
#111406black
Card foreground
#000000black
#fbfcf8snow
Popover
#fcfdf6snow
#111406black
Popover foreground
#000000black
#fbfcf8snow
Primary
#566510darkolivegreen
#566510darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#105665darkslategray
#105665darkslategray
Secondary foreground
#b4e8f3paleturquoise
#b4e8f3paleturquoise
Muted
#e8f1f3lavender
#0c1517black
Muted foreground
#455154darkslategray
#abb7badarkgray
Accent
#651056purple
#651056purple
Accent foreground
#f3b4e8plum
#f3b4e8plum
Destructive
#90310esaddlebrown
#ea602echocolate
Destructive foreground
#fbdfd5antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#566510darkolivegreen
#566510darkolivegreen

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.57:1AAA
Primary button6.40:1AA
Secondary button6.22:1AA
Muted text7.13:1AAA
Accent7.08:1AAA
Destructive6.32:1AA
Dark mode
Text on background18.30:1AAA
Text on card18.09:1AAA
Primary button6.40:1AA
Secondary button6.22:1AA
Muted text8.97:1AAA
Accent7.08:1AAA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 114.909);
  --foreground: oklch(0.105 0.018 115.624);
  --muted: oklch(0.951 0.01 212.673);
  --muted-foreground: oklch(0.426 0.016 212.775);
  --popover: oklch(0.992 0.009 114.995);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.009 114.995);
  --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.479 0.107 120.108);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.419 0.069 217.189);
  --secondary-foreground: oklch(0.898 0.055 212.958);
  --accent: oklch(0.356 0.14 337.057);
  --accent-foreground: oklch(0.844 0.099 332.976);
  --destructive: oklch(0.448 0.136 38.111);
  --destructive-foreground: oklch(0.924 0.034 41.069);
  --ring: oklch(0.479 0.107 120.108);
  --chart-1: oklch(0.479 0.107 120.108);
  --chart-2: oklch(0.419 0.069 217.189);
  --chart-3: oklch(0.356 0.14 337.057);
  --chart-4: oklch(0.456 0.076 217.373);
  --chart-5: oklch(0.484 0.109 120.274);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.166 0.024 116.799);
  --foreground: oklch(0.983 0.008 114.965);
  --muted: oklch(0.189 0.014 213.108);
  --muted-foreground: oklch(0.772 0.014 212.691);
  --popover: oklch(0.183 0.028 117.376);
  --popover-foreground: oklch(0.989 0.005 114.917);
  --card: oklch(0.183 0.028 117.376);
  --card-foreground: oklch(0.989 0.005 114.917);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.479 0.107 120.108);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.419 0.069 217.189);
  --secondary-foreground: oklch(0.898 0.055 212.958);
  --accent: oklch(0.356 0.14 337.057);
  --accent-foreground: oklch(0.844 0.099 332.976);
  --destructive: oklch(0.659 0.182 39.098);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.479 0.107 120.108);
  --chart-1: oklch(0.479 0.107 120.108);
  --chart-2: oklch(0.419 0.069 217.189);
  --chart-3: oklch(0.356 0.14 337.057);
  --chart-4: oklch(0.456 0.076 217.373);
  --chart-5: oklch(0.484 0.109 120.274);
}