Arctic for shadcn/ui

Arctic is a shadcn/ui theme built around a muted orange primary color (#c5beba) with muted blue accents (#bac1c5). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted orange primary (#c5beba) on a neutral background (#080402).

Color palette

TokenLightDark
Background
#fefcfbsnow
#080402black
Foreground
#090402black
#fdfcfcsnow
Card
#fdf9f7snow
#0c0603black
Card foreground
#040201black
#ffffffwhite
Popover
#fdf9f7snow
#0c0603black
Popover foreground
#040201black
#ffffffwhite
Primary
#c5bebasilver
#c5bebasilver
Primary foreground
#2a2523darkslategray
#2a2523darkslategray
Secondary
#bac1c5silver
#bac1c5silver
Secondary foreground
#23272adarkslategray
#23272adarkslategray
Muted
#e3eaedlavender
#12181cblack
Muted foreground
#3b4144darkslategray
#bbc1c4silver
Accent
#bac1c5silver
#bac1c5silver
Accent foreground
#23272adarkslategray
#23272adarkslategray
Destructive
#a62b0cfirebrick
#f16441tomato
Destructive foreground
#fdece7linen
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5bebasilver
#c5bebasilver

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.77:1AAA
Primary button8.21:1AAA
Secondary button8.24:1AAA
Muted text8.49:1AAA
Accent8.24:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.91:1AAA
Text on card20.10:1AAA
Primary button8.21:1AAA
Secondary button8.24:1AAA
Muted text9.80:1AAA
Accent8.24:1AAA
Destructive6.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 50.624);
  --foreground: oklch(0.115 0.016 61.313);
  --muted: oklch(0.932 0.009 230.785);
  --muted-foreground: oklch(0.371 0.009 231.026);
  --popover: oklch(0.985 0.005 50.588);
  --popover-foreground: oklch(0.091 0.013 61.313);
  --card: oklch(0.985 0.005 50.588);
  --card-foreground: oklch(0.091 0.013 61.313);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.805 0.01 50.498);
  --primary-foreground: oklch(0.269 0.008 50.29);
  --secondary: oklch(0.806 0.01 230.832);
  --secondary-foreground: oklch(0.27 0.008 231.084);
  --accent: oklch(0.806 0.01 230.832);
  --accent-foreground: oklch(0.27 0.008 231.084);
  --destructive: oklch(0.481 0.164 34.093);
  --destructive-foreground: oklch(0.955 0.02 34.297);
  --ring: oklch(0.805 0.01 50.498);
  --chart-1: oklch(0.805 0.01 50.498);
  --chart-2: oklch(0.806 0.01 230.832);
  --chart-3: oklch(0.806 0.01 230.832);
  --chart-4: oklch(0.83 0.009 230.805);
  --chart-5: oklch(0.805 0.014 50.446);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.013 58.787);
  --foreground: oklch(0.992 0.001 50.646);
  --muted: oklch(0.206 0.012 231.623);
  --muted-foreground: oklch(0.806 0.008 230.793);
  --popover: oklch(0.132 0.014 58.361);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.014 58.361);
  --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.805 0.01 50.498);
  --primary-foreground: oklch(0.269 0.008 50.29);
  --secondary: oklch(0.806 0.01 230.832);
  --secondary-foreground: oklch(0.27 0.008 231.084);
  --accent: oklch(0.806 0.01 230.832);
  --accent-foreground: oklch(0.27 0.008 231.084);
  --destructive: oklch(0.676 0.181 35.188);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.805 0.01 50.498);
  --chart-1: oklch(0.805 0.01 50.498);
  --chart-2: oklch(0.806 0.01 230.832);
  --chart-3: oklch(0.806 0.01 230.832);
  --chart-4: oklch(0.83 0.009 230.805);
  --chart-5: oklch(0.805 0.014 50.446);
}