Arctic for shadcn/ui

Arctic is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8f8snow
#000000black
Foreground
#140606black
#fdfcfcsnow
Card
#faf5f5whitesmoke
#030303black
Card foreground
#100505black
#ffffffwhite
Popover
#faf5f5whitesmoke
#030303black
Popover foreground
#100505black
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#e5e1e1gainsboro
#1e1a1ablack
Muted foreground
#655d5ddimgray
#a29a9adarkgray
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#85230asaddlebrown
#f16441tomato
Destructive foreground
#fbd1c6peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card18.55:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text4.93:1AA
Accent12.63:1AAA
Destructive6.73:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text6.26:1AA
Accent12.63: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.982 0.004 17.22);
  --foreground: oklch(0.145 0.026 20.745);
  --muted: oklch(0.912 0.005 17.246);
  --muted-foreground: oklch(0.486 0.01 17.502);
  --popover: oklch(0.973 0.006 17.253);
  --popover-foreground: oklch(0.133 0.022 20.498);
  --card: oklch(0.973 0.006 17.253);
  --card-foreground: oklch(0.133 0.022 20.498);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.411 0.137 34.295);
  --destructive-foreground: oklch(0.893 0.05 34.349);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 17.171);
  --muted: oklch(0.222 0.007 17.698);
  --muted-foreground: oklch(0.694 0.009 17.376);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.676 0.181 35.188);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}