Freedom for shadcn/ui

Freedom is a shadcn/ui theme built around a muted deep teal primary color (#1d2a26) with muted deep orange accents (#2a261d). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#1d2a26) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#fbfefdwhite
#030706black
Foreground
#010403black
#f6f9f8whitesmoke
Card
#f6fdfbmintcream
#050b09black
Card foreground
#000000black
#f9fbfamintcream
Popover
#f6fdfbmintcream
#050b09black
Popover foreground
#000000black
#f9fbfamintcream
Primary
#1d2a26darkslategray
#1d2a26darkslategray
Primary foreground
#b0c9c0silver
#b0c9c0silver
Secondary
#261d2adarkslategray
#261d2adarkslategray
Secondary foreground
#c0b0c9silver
#c0b0c9silver
Muted
#ebe9eclavender
#151316black
Muted foreground
#413d42darkslategray
#c0bdc2silver
Accent
#2a261dblack
#2a261dblack
Accent foreground
#c9c0b0silver
#c9c0b0silver
Destructive
#aa2b08firebrick
#e0390borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d2a26darkslategray
#1d2a26darkslategray

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.43:1AAA
Primary button8.43:1AAA
Secondary button7.97:1AAA
Muted text8.82:1AAA
Accent8.36:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.14:1AAA
Primary button8.43:1AAA
Secondary button7.97:1AAA
Muted text9.95:1AAA
Accent8.36:1AAA
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 173.454);
  --foreground: oklch(0.098 0.012 173.821);
  --muted: oklch(0.936 0.005 314.191);
  --muted-foreground: oklch(0.366 0.01 314.074);
  --popover: oklch(0.989 0.008 173.331);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.008 173.331);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.273 0.021 171.155);
  --primary-foreground: oklch(0.815 0.03 172.466);
  --secondary: oklch(0.247 0.028 313.586);
  --secondary-foreground: oklch(0.779 0.04 313.941);
  --accent: oklch(0.27 0.017 82.916);
  --accent-foreground: oklch(0.812 0.025 83.053);
  --destructive: oklch(0.489 0.169 34.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.273 0.021 171.155);
  --chart-1: oklch(0.273 0.021 171.155);
  --chart-2: oklch(0.247 0.028 313.586);
  --chart-3: oklch(0.27 0.017 82.916);
  --chart-4: oklch(0.276 0.033 313.55);
  --chart-5: oklch(0.275 0.023 170.777);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.01 173.754);
  --foreground: oklch(0.98 0.004 173.448);
  --muted: oklch(0.19 0.007 314.008);
  --muted-foreground: oklch(0.802 0.008 314.165);
  --popover: oklch(0.139 0.012 173.715);
  --popover-foreground: oklch(0.986 0.003 173.491);
  --card: oklch(0.139 0.012 173.715);
  --card-foreground: oklch(0.986 0.003 173.491);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.273 0.021 171.155);
  --primary-foreground: oklch(0.815 0.03 172.466);
  --secondary: oklch(0.247 0.028 313.586);
  --secondary-foreground: oklch(0.779 0.04 313.941);
  --accent: oklch(0.27 0.017 82.916);
  --accent-foreground: oklch(0.812 0.025 83.053);
  --destructive: oklch(0.597 0.209 34.103);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.273 0.021 171.155);
  --chart-1: oklch(0.273 0.021 171.155);
  --chart-2: oklch(0.247 0.028 313.586);
  --chart-3: oklch(0.27 0.017 82.916);
  --chart-4: oklch(0.276 0.033 313.55);
  --chart-5: oklch(0.275 0.023 170.777);
}