Free for shadcn/ui

Free is a shadcn/ui theme built around a muted purple primary color (#634f64) with muted light purple accents (#e7dee7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#634f64) on a purple-tinted background (#0b030c).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b030cblack
Foreground
#000000black
#fbf9fbsnow
Card
#ffffffwhite
#0b030cblack
Card foreground
#000000black
#fbf9fbsnow
Popover
#ffffffwhite
#0b030cblack
Popover foreground
#000000black
#fbf9fbsnow
Primary
#634f64dimgray
#634f64dimgray
Primary foreground
#f4f1f4whitesmoke
#f4f1f4whitesmoke
Secondary
#e7dee7gainsboro
#2c202ddarkslategray
Secondary foreground
#543e56darkslategray
#c9b4casilver
Muted
#efe5f0lavender
#190f1ablack
Muted foreground
#565257dimgray
#ada8addarkgray
Accent
#e7dee7gainsboro
#2c202ddarkslategray
Accent foreground
#543e56darkslategray
#c9b4casilver
Destructive
#da310borangered
#f45734tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#634f64dimgray
#634f64dimgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.65:1AA
Secondary button7.29:1AAA
Muted text6.26:1AA
Accent7.29:1AAA
Destructive4.73:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button6.65:1AA
Secondary button8.06:1AAA
Muted text7.98:1AAA
Accent8.06:1AAA
Destructive6.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.934 0.018 323.733);
  --muted-foreground: oklch(0.443 0.01 323.754);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.454 0.042 324.102);
  --primary-foreground: oklch(0.96 0.005 323.663);
  --secondary: oklch(0.911 0.015 323.721);
  --secondary-foreground: oklch(0.398 0.048 324.232);
  --accent: oklch(0.911 0.015 323.721);
  --accent-foreground: oklch(0.398 0.048 324.232);
  --destructive: oklch(0.58 0.209 32.902);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.454 0.042 324.102);
  --chart-1: oklch(0.454 0.042 324.102);
  --chart-2: oklch(0.911 0.015 323.721);
  --chart-3: oklch(0.911 0.015 323.721);
  --chart-4: oklch(0.936 0.011 323.696);
  --chart-5: oklch(0.452 0.053 324.212);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.029 325.181);
  --foreground: oklch(0.984 0.003 323.65);
  --muted: oklch(0.187 0.026 324.311);
  --muted-foreground: oklch(0.738 0.009 323.698);
  --popover: oklch(0.124 0.029 325.181);
  --popover-foreground: oklch(0.984 0.003 323.65);
  --card: oklch(0.124 0.029 325.181);
  --card-foreground: oklch(0.984 0.003 323.65);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.454 0.042 324.102);
  --primary-foreground: oklch(0.96 0.005 323.663);
  --secondary: oklch(0.263 0.03 324.19);
  --secondary-foreground: oklch(0.795 0.038 323.877);
  --accent: oklch(0.263 0.03 324.19);
  --accent-foreground: oklch(0.795 0.038 323.877);
  --destructive: oklch(0.663 0.199 34.088);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.454 0.042 324.102);
  --chart-1: oklch(0.454 0.042 324.102);
  --chart-2: oklch(0.263 0.03 324.19);
  --chart-3: oklch(0.263 0.03 324.19);
  --chart-4: oklch(0.293 0.034 324.214);
  --chart-5: oklch(0.452 0.053 324.212);
}