Barren for shadcn/ui

Barren is a shadcn/ui theme built around a purple primary color (#c18bb0) with cyan accents (#8bb0c1). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c18bb0) on a purple-tinted background (#0a0509).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0509black
Foreground
#000000black
#f8f6f8whitesmoke
Card
#fcfcfcsnow
#0d070bblack
Card foreground
#000000black
#fbf9fasnow
Popover
#fcfcfcsnow
#0d070bblack
Popover foreground
#000000black
#fbf9fasnow
Primary
#c18bb0rosybrown
#c18bb0rosybrown
Primary foreground
#11090eblack
#11090eblack
Secondary
#b0c18bdarkseagreen
#b0c18bdarkseagreen
Secondary foreground
#0e1109black
#0e1109black
Muted
#dde1d6gainsboro
#26291edarkslategray
Muted foreground
#63665cdimgray
#a0a399darkgray
Accent
#8bb0c1darkgray
#8bb0c1darkgray
Accent foreground
#090e11black
#090e11black
Destructive
#b51212firebrick
#ec4141tomato
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c18bb0rosybrown
#c18bb0rosybrown

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.08:1AAA
Secondary button9.80:1AAA
Muted text4.40:1AA Large
Accent8.41:1AAA
Destructive6.63:1AA
Dark mode
Text on background18.78:1AAA
Text on card19.01:1AAA
Primary button7.08:1AAA
Secondary button9.80:1AAA
Muted text5.77:1AA
Accent8.41:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.903 0.015 120.314);
  --muted-foreground: oklch(0.504 0.015 120.555);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.701 0.082 337.938);
  --primary-foreground: oklch(0.153 0.017 337.806);
  --secondary: oklch(0.784 0.075 121.694);
  --secondary-foreground: oklch(0.17 0.016 121.582);
  --accent: oklch(0.737 0.047 225.944);
  --accent-foreground: oklch(0.16 0.01 225.746);
  --destructive: oklch(0.492 0.193 28.243);
  --destructive-foreground: oklch(0.989 0.004 17.232);
  --ring: oklch(0.701 0.082 337.938);
  --chart-1: oklch(0.701 0.082 337.938);
  --chart-2: oklch(0.784 0.075 121.694);
  --chart-3: oklch(0.737 0.047 225.944);
  --chart-4: oklch(0.802 0.068 121.505);
  --chart-5: oklch(0.699 0.09 338.139);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.014 336.152);
  --foreground: oklch(0.976 0.003 335.922);
  --muted: oklch(0.274 0.02 121.264);
  --muted-foreground: oklch(0.71 0.014 120.375);
  --popover: oklch(0.141 0.015 337.179);
  --popover-foreground: oklch(0.984 0.002 335.904);
  --card: oklch(0.141 0.015 337.179);
  --card-foreground: oklch(0.984 0.002 335.904);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.701 0.082 337.938);
  --primary-foreground: oklch(0.153 0.017 337.806);
  --secondary: oklch(0.784 0.075 121.694);
  --secondary-foreground: oklch(0.17 0.016 121.582);
  --accent: oklch(0.737 0.047 225.944);
  --accent-foreground: oklch(0.16 0.01 225.746);
  --destructive: oklch(0.629 0.208 25.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.701 0.082 337.938);
  --chart-1: oklch(0.701 0.082 337.938);
  --chart-2: oklch(0.784 0.075 121.694);
  --chart-3: oklch(0.737 0.047 225.944);
  --chart-4: oklch(0.802 0.068 121.505);
  --chart-5: oklch(0.699 0.09 338.139);
}