Barren for shadcn/ui

Barren is a shadcn/ui theme built around a light cyan primary color (#d3e6e9) with light blue accents (#d3dbe9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#d3e6e9) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#ffffffwhite
#030607black
Foreground
#010404black
#fcfdfdwhite
Card
#ffffffwhite
#030607black
Card foreground
#010404black
#fcfdfdwhite
Popover
#ffffffwhite
#030607black
Popover foreground
#010404black
#fcfdfdwhite
Primary
#d3e6e9gainsboro
#d3e6e9gainsboro
Primary foreground
#2e555cdarkslategray
#2e555cdarkslategray
Secondary
#d3e9e1gainsboro
#d3e9e1gainsboro
Secondary foreground
#2e5c4cdarkslategray
#2e5c4cdarkslategray
Muted
#d9e3dfgainsboro
#1c2623black
Muted foreground
#53655fdimgray
#9aaca6darkgray
Accent
#d3dbe9gainsboro
#d3dbe9gainsboro
Accent foreground
#2e3e5cdarkslategray
#2e3e5cdarkslategray
Destructive
#722309maroon
#f06638tomato
Destructive foreground
#f9c5b3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3e6e9gainsboro
#d3e6e9gainsboro

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button6.30:1AA
Secondary button5.99:1AA
Muted text4.70:1AA
Accent7.66:1AAA
Destructive6.98:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button6.30:1AA
Secondary button5.99:1AA
Muted text6.52:1AA
Accent7.66:1AAA
Destructive6.65:1AA

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.098 0.013 205.313);
  --muted: oklch(0.907 0.012 173.196);
  --muted-foreground: oklch(0.489 0.024 172.03);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.013 205.313);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.013 205.313);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.911 0.02 209.43);
  --primary-foreground: oklch(0.423 0.045 210.088);
  --secondary: oklch(0.915 0.025 172.746);
  --secondary-foreground: oklch(0.436 0.057 168.751);
  --accent: oklch(0.889 0.021 262.996);
  --accent-foreground: oklch(0.364 0.055 262.258);
  --destructive: oklch(0.376 0.117 37.099);
  --destructive-foreground: oklch(0.864 0.065 39.238);
  --ring: oklch(0.911 0.02 209.43);
  --chart-1: oklch(0.911 0.02 209.43);
  --chart-2: oklch(0.915 0.025 172.746);
  --chart-3: oklch(0.889 0.021 262.996);
  --chart-4: oklch(0.935 0.019 172.956);
  --chart-5: oklch(0.912 0.022 209.429);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.009 206.995);
  --foreground: oklch(0.993 0.001 209.465);
  --muted: oklch(0.258 0.015 171.701);
  --muted-foreground: oklch(0.729 0.022 172.649);
  --popover: oklch(0.12 0.009 206.995);
  --popover-foreground: oklch(0.993 0.001 209.465);
  --card: oklch(0.12 0.009 206.995);
  --card-foreground: oklch(0.993 0.001 209.465);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.911 0.02 209.43);
  --primary-foreground: oklch(0.423 0.045 210.088);
  --secondary: oklch(0.915 0.025 172.746);
  --secondary-foreground: oklch(0.436 0.057 168.751);
  --accent: oklch(0.889 0.021 262.996);
  --accent-foreground: oklch(0.364 0.055 262.258);
  --destructive: oklch(0.676 0.181 38.309);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.911 0.02 209.43);
  --chart-1: oklch(0.911 0.02 209.43);
  --chart-2: oklch(0.915 0.025 172.746);
  --chart-3: oklch(0.889 0.021 262.996);
  --chart-4: oklch(0.935 0.019 172.956);
  --chart-5: oklch(0.912 0.022 209.429);
}