Free for shadcn/ui

Free is a shadcn/ui theme built around a near-black primary color (#0f0300) with near-black accents (#0f0a00). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the near-black primary (#0f0300) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#fcf9f8snow
#070403black
Foreground
#000000black
#fdfcfcsnow
Card
#faf5f4whitesmoke
#0b0605black
Card foreground
#000000black
#ffffffwhite
Popover
#faf5f4whitesmoke
#0b0605black
Popover foreground
#000000black
#ffffffwhite
Primary
#0f0300black
#0f0300black
Primary foreground
#f96848tomato
#f96848tomato
Secondary
#0f0005black
#0f0005black
Secondary foreground
#f94880palevioletred
#f94880palevioletred
Muted
#eadce0gainsboro
#23151ablack
Muted foreground
#535051darkslategray
#afacaddarkgray
Accent
#0f0a00black
#0f0a00black
Accent foreground
#d59307goldenrod
#d59307goldenrod
Destructive
#ac1802firebrick
#fd3e21orangered
Destructive foreground
#ffe5e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f0300black
#0f0300black

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.49:1AAA
Primary button6.87:1AA
Secondary button6.11:1AA
Muted text6.00:1AA
Accent7.51:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.96:1AAA
Text on card20.17:1AAA
Primary button6.87:1AA
Secondary button6.11:1AA
Muted text7.80:1AAA
Accent7.51:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 32.661);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.016 356.113);
  --muted-foreground: oklch(0.435 0.005 355.919);
  --popover: oklch(0.975 0.006 32.661);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.975 0.006 32.661);
  --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.122 0.03 46.426);
  --primary-foreground: oklch(0.695 0.184 34.141);
  --secondary: oklch(0.112 0.042 355.917);
  --secondary-foreground: oklch(0.669 0.215 6.214);
  --accent: oklch(0.148 0.029 93.089);
  --accent-foreground: oklch(0.711 0.148 76.926);
  --destructive: oklch(0.476 0.183 31.315);
  --destructive-foreground: oklch(0.941 0.029 28.12);
  --ring: oklch(0.122 0.03 46.426);
  --chart-1: oklch(0.122 0.03 46.426);
  --chart-2: oklch(0.112 0.042 355.917);
  --chart-3: oklch(0.148 0.029 93.089);
  --chart-4: oklch(0.154 0.058 1.97);
  --chart-5: oklch(0.122 0.032 47.267);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.009 36.582);
  --foreground: oklch(0.992 0.002 32.661);
  --muted: oklch(0.217 0.023 358.55);
  --muted-foreground: oklch(0.747 0.004 355.77);
  --popover: oklch(0.128 0.011 36.565);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.011 36.565);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.122 0.03 46.426);
  --primary-foreground: oklch(0.695 0.184 34.141);
  --secondary: oklch(0.112 0.042 355.917);
  --secondary-foreground: oklch(0.669 0.215 6.214);
  --accent: oklch(0.148 0.029 93.089);
  --accent-foreground: oklch(0.711 0.148 76.926);
  --destructive: oklch(0.652 0.23 31.626);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.122 0.03 46.426);
  --chart-1: oklch(0.122 0.03 46.426);
  --chart-2: oklch(0.112 0.042 355.917);
  --chart-3: oklch(0.148 0.029 93.089);
  --chart-4: oklch(0.154 0.058 1.97);
  --chart-5: oklch(0.122 0.032 47.267);
}