Nord for shadcn/ui

Nord is a shadcn/ui theme built around a muted deep blue primary color (#2f363d) with muted light blue accents (#bbc6d8). The light mode uses a blue-tinted background (#eceff4). Dark mode switches to a muted light blue primary (#d8dee9) on a blue-tinted background (#2f3541).

Color palette

TokenLightDark
Background
#eceff4whitesmoke
#2f3541darkslategray
Foreground
#24292edarkslategray
#d8dee9gainsboro
Card
#e5e9f0lavender
#2b303bdarkslategray
Card foreground
#191c1fblack
#e8ecf2lavender
Popover
#e2e7eelavender
#292e38darkslategray
Popover foreground
#0d0f11black
#f8f9fbghostwhite
Primary
#2f363ddarkslategray
#d8dee9gainsboro
Primary foreground
#c8cfd5lightgrey
#33415bdarkslategray
Secondary
#bdbfc1silver
#343c4bdarkslategray
Secondary foreground
#252627darkslategray
#d2d7e0gainsboro
Muted
#e2e5e9gainsboro
#3a404adarkslategray
Muted foreground
#434a56darkslategray
#babfc9silver
Accent
#bbc6d8lightsteelblue
#4f596ddimgray
Accent foreground
#232d3edarkslategray
#f6f7f9whitesmoke
Destructive
#8d0707darkred
#ed2e0corangered
Destructive foreground
#fccacapink
#ffffffwhite
Border
#dee2e8gainsboro
#414349darkslategray
Input
#d5dae1gainsboro
#484b51darkslategray
Ring
#2f363ddarkslategray
#d8dee9gainsboro

Contrast

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

Light mode
Text on background12.68:1AAA
Text on card14.08:1AAA
Primary button7.82:1AAA
Secondary button8.24:1AAA
Muted text7.05:1AAA
Accent8.00:1AAA
Destructive6.68:1AA
Dark mode
Text on background9.09:1AAA
Text on card11.11:1AAA
Primary button7.57:1AAA
Secondary button7.64:1AAA
Muted text5.67:1AA
Accent6.53:1AA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.95 0.008 261.511);
  --foreground: oklch(0.277 0.011 248.24);
  --muted: oklch(0.92 0.006 261.512);
  --muted-foreground: oklch(0.408 0.021 261.415);
  --popover: oklch(0.925 0.012 259.945);
  --popover-foreground: oklch(0.169 0.005 248.117);
  --card: oklch(0.934 0.01 259.944);
  --card-foreground: oklch(0.225 0.008 248.197);
  --border: oklch(0.911 0.009 259.943);
  --input: oklch(0.886 0.012 261.506);
  --primary: oklch(0.327 0.016 248.303);
  --primary-foreground: oklch(0.85 0.011 247.958);
  --secondary: oklch(0.804 0.003 247.866);
  --secondary-foreground: oklch(0.269 0.003 247.927);
  --accent: oklch(0.823 0.028 261.468);
  --accent-foreground: oklch(0.296 0.033 261.161);
  --destructive: oklch(0.407 0.162 28.569);
  --destructive-foreground: oklch(0.882 0.058 18.301);
  --ring: oklch(0.327 0.016 248.303);
  --chart-1: oklch(0.327 0.016 248.303);
  --chart-2: oklch(0.804 0.003 247.866);
  --chart-3: oklch(0.823 0.028 261.468);
  --chart-4: oklch(0.829 0.003 247.859);
  --chart-5: oklch(0.327 0.019 248.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.329 0.023 264.192);
  --foreground: oklch(0.899 0.017 263.013);
  --muted: oklch(0.369 0.02 264.3);
  --muted-foreground: oklch(0.805 0.015 264.485);
  --popover: oklch(0.3 0.02 264.207);
  --popover-foreground: oklch(0.983 0.003 263.049);
  --card: oklch(0.31 0.021 264.201);
  --card-foreground: oklch(0.941 0.01 263.034);
  --border: oklch(0.384 0.01 264.45);
  --input: oklch(0.412 0.011 264.448);
  --primary: oklch(0.899 0.017 263.013);
  --primary-foreground: oklch(0.376 0.048 262.419);
  --secondary: oklch(0.356 0.028 262.736);
  --secondary-foreground: oklch(0.877 0.013 263.022);
  --accent: oklch(0.464 0.035 264.146);
  --accent-foreground: oklch(0.976 0.002 264.544);
  --destructive: oklch(0.612 0.228 31.733);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.899 0.017 263.013);
  --chart-1: oklch(0.899 0.017 263.013);
  --chart-2: oklch(0.356 0.028 262.736);
  --chart-3: oklch(0.464 0.035 264.146);
  --chart-4: oklch(0.384 0.031 262.727);
  --chart-5: oklch(0.898 0.018 263.007);
}