Liberty Blue for shadcn/ui

Liberty Blue is a shadcn/ui theme built around a deep blue primary color (#0c1431) with deep violet accents (#170c31). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the deep blue primary (#0c1431) on a blue-tinted background (#05060a).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#05060ablack
Foreground
#020512black
#f5f6fawhitesmoke
Card
#f3f5fcaliceblue
#07080dblack
Card foreground
#02040eblack
#f8f9fbghostwhite
Popover
#f7f8fdghostwhite
#05060ablack
Popover foreground
#020512black
#f5f6fawhitesmoke
Primary
#0c1431black
#0c1431black
Primary foreground
#8d9ee2cornflowerblue
#8d9ee2cornflowerblue
Secondary
#0c2631darkslategray
#0c2631darkslategray
Secondary foreground
#8dc9e2skyblue
#8dc9e2skyblue
Muted
#d5e1e7gainsboro
#18252adarkslategray
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#170c31black
#170c31black
Accent foreground
#a68de2mediumpurple
#a68de2mediumpurple
Destructive
#8c290dsaddlebrown
#e94416orangered
Destructive foreground
#fbdad0bisque
#ffffffwhite
Border
#e3e4e8gainsboro
#22242adarkslategray
Input
#e3e4e8gainsboro
#22242adarkslategray
Ring
#0c1431black
#0c1431black

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card18.75:1AAA
Primary button7.01:1AAA
Secondary button8.66:1AAA
Muted text5.69:1AA
Accent6.63:1AA
Destructive6.59:1AA
Dark mode
Text on background18.72:1AAA
Text on card18.95:1AAA
Primary button7.01:1AAA
Secondary button8.66:1AAA
Muted text6.85:1AA
Accent6.63:1AA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 274.957);
  --foreground: oklch(0.122 0.032 264.811);
  --muted: oklch(0.903 0.015 225.182);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.98 0.006 274.957);
  --popover-foreground: oklch(0.122 0.032 264.811);
  --card: oklch(0.97 0.009 274.916);
  --card-foreground: oklch(0.11 0.027 263.956);
  --border: oklch(0.919 0.006 274.96);
  --input: oklch(0.919 0.006 274.96);
  --primary: oklch(0.202 0.059 269.863);
  --primary-foreground: oklch(0.712 0.102 272.819);
  --secondary: oklch(0.254 0.038 228.996);
  --secondary-foreground: oklch(0.803 0.071 226.56);
  --accent: oklch(0.196 0.069 292.662);
  --accent-foreground: oklch(0.7 0.125 296.85);
  --destructive: oklch(0.431 0.139 35.253);
  --destructive-foreground: oklch(0.912 0.039 35.944);
  --ring: oklch(0.202 0.059 269.863);
  --chart-1: oklch(0.202 0.059 269.863);
  --chart-2: oklch(0.254 0.038 228.996);
  --chart-3: oklch(0.196 0.069 292.662);
  --chart-4: oklch(0.29 0.045 229.418);
  --chart-5: oklch(0.201 0.062 269.523);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.01 271.813);
  --foreground: oklch(0.973 0.005 274.972);
  --muted: oklch(0.254 0.02 226.3);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.125 0.01 271.813);
  --popover-foreground: oklch(0.973 0.005 274.972);
  --card: oklch(0.137 0.011 272.398);
  --card-foreground: oklch(0.982 0.003 274.993);
  --border: oklch(0.261 0.012 274.443);
  --input: oklch(0.261 0.012 274.443);
  --primary: oklch(0.202 0.059 269.863);
  --primary-foreground: oklch(0.712 0.102 272.819);
  --secondary: oklch(0.254 0.038 228.996);
  --secondary-foreground: oklch(0.803 0.071 226.56);
  --accent: oklch(0.196 0.069 292.662);
  --accent-foreground: oklch(0.7 0.125 296.85);
  --destructive: oklch(0.623 0.209 34.813);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.202 0.059 269.863);
  --chart-1: oklch(0.202 0.059 269.863);
  --chart-2: oklch(0.254 0.038 228.996);
  --chart-3: oklch(0.196 0.069 292.662);
  --chart-4: oklch(0.29 0.045 229.418);
  --chart-5: oklch(0.201 0.062 269.523);
}