Urn for shadcn/ui

Urn is a shadcn/ui theme built around a muted deep blue primary color (#0e1216) with muted blue accents (#b0bfcf). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the muted deep blue primary (#0e1216) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#030507black
Foreground
#03070dblack
#f8fafcghostwhite
Card
#f8fafcghostwhite
#04080bblack
Card foreground
#020508black
#fbfcfdwhite
Popover
#fbfcfdwhite
#030507black
Popover foreground
#03070dblack
#f8fafcghostwhite
Primary
#0e1216black
#0e1216black
Primary foreground
#99aabddarkgray
#99aabddarkgray
Secondary
#cbd1d8lightgrey
#1e2124black
Secondary foreground
#303840darkslategray
#b3bac1silver
Muted
#d0dbe6gainsboro
#19232fdarkslategray
Muted foreground
#394047darkslategray
#b8bfc6silver
Accent
#b0bfcflightsteelblue
#27303adarkslategray
Accent foreground
#1d262fdarkslategray
#bfc9d4lightsteelblue
Destructive
#d52c07firebrick
#f84c25orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e1216black
#0e1216black

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.50:1AAA
Primary button7.92:1AAA
Secondary button7.71:1AAA
Muted text7.48:1AAA
Accent8.15:1AAA
Destructive5.01:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.59:1AAA
Primary button7.92:1AAA
Secondary button8.24:1AAA
Muted text8.53:1AAA
Accent7.96:1AAA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 249.667);
  --foreground: oklch(0.127 0.017 241.193);
  --muted: oklch(0.887 0.02 249.851);
  --muted-foreground: oklch(0.366 0.015 250.022);
  --popover: oklch(0.992 0.002 249.667);
  --popover-foreground: oklch(0.127 0.017 241.193);
  --card: oklch(0.984 0.004 249.684);
  --card-foreground: oklch(0.111 0.014 240.304);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.179 0.01 250.13);
  --primary-foreground: oklch(0.732 0.033 250.043);
  --secondary: oklch(0.857 0.011 249.774);
  --secondary-foreground: oklch(0.336 0.018 250.108);
  --accent: oklch(0.797 0.028 249.96);
  --accent-foreground: oklch(0.264 0.022 250.365);
  --destructive: oklch(0.566 0.208 32.643);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.179 0.01 250.13);
  --chart-1: oklch(0.179 0.01 250.13);
  --chart-2: oklch(0.857 0.011 249.774);
  --chart-3: oklch(0.797 0.028 249.96);
  --chart-4: oklch(0.882 0.009 249.75);
  --chart-5: oklch(0.179 0.011 250.197);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.009 243.675);
  --foreground: oklch(0.984 0.004 249.684);
  --muted: oklch(0.253 0.027 250.569);
  --muted-foreground: oklch(0.802 0.013 249.796);
  --popover: oklch(0.113 0.009 243.675);
  --popover-foreground: oklch(0.984 0.004 249.684);
  --card: oklch(0.129 0.011 243.811);
  --card-foreground: oklch(0.992 0.002 249.667);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.179 0.01 250.13);
  --primary-foreground: oklch(0.732 0.033 250.043);
  --secondary: oklch(0.246 0.008 249.943);
  --secondary-foreground: oklch(0.786 0.013 249.797);
  --accent: oklch(0.305 0.021 250.249);
  --accent-foreground: oklch(0.832 0.018 249.85);
  --destructive: oklch(0.657 0.215 33.813);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.179 0.01 250.13);
  --chart-1: oklch(0.179 0.01 250.13);
  --chart-2: oklch(0.246 0.008 249.943);
  --chart-3: oklch(0.305 0.021 250.249);
  --chart-4: oklch(0.277 0.01 249.959);
  --chart-5: oklch(0.179 0.011 250.197);
}