βui - Espresso Libre for shadcn/ui

βui - Espresso Libre is a shadcn/ui theme built around a vivid blue primary color (#1068a2) with muted deep orange accents (#58463c). The light mode uses an orange-tinted background (#2a221d). Dark mode keeps the vivid blue primary (#1068a2) on an orange-tinted background (#2a221d).

Color palette

TokenLightDark
Background
#2a221dblack
#2a221dblack
Foreground
#ccbfb3silver
#ccbfb3silver
Card
#241d19black
#241d19black
Card foreground
#d6ccc2lightgrey
#d6ccc2lightgrey
Popover
#211a17black
#211a17black
Popover foreground
#e0d9d1gainsboro
#e0d9d1gainsboro
Primary
#1068a2teal
#1068a2teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acc3d2lightsteelblue
#acc3d2lightsteelblue
Secondary foreground
#1b2932darkslategray
#1b2932darkslategray
Muted
#332c28darkslategray
#332c28darkslategray
Muted foreground
#b7aaa4darkgray
#b7aaa4darkgray
Accent
#58463cdarkolivegreen
#58463cdarkolivegreen
Accent foreground
#e8e1degainsboro
#e8e1degainsboro
Destructive
#e32402orangered
#e32402orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#352f2cdarkslategray
#352f2cdarkslategray
Input
#3d3733darkslategray
#3d3733darkslategray
Ring
#1068a2teal
#1068a2teal

Contrast

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

Light mode
Text on background8.68:1AAA
Text on card10.49:1AAA
Primary button5.96:1AA
Secondary button8.15:1AAA
Muted text6.04:1AA
Accent6.91:1AA
Destructive4.63:1AA
Dark mode
Text on background8.68:1AAA
Text on card10.49:1AAA
Primary button5.96:1AA
Secondary button8.15:1AAA
Muted text6.04:1AA
Accent6.91:1AA
Destructive4.63:1AA

CSS variables

Paste this into your globals.css to use βui - Espresso Libre in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.259 0.016 49.922);
  --foreground: oklch(0.812 0.023 67.499);
  --muted: oklch(0.301 0.013 50.152);
  --muted-foreground: oklch(0.748 0.018 50.363);
  --popover: oklch(0.227 0.013 49.972);
  --popover-foreground: oklch(0.888 0.013 67.654);
  --card: oklch(0.238 0.014 49.953);
  --card-foreground: oklch(0.851 0.018 67.582);
  --border: oklch(0.311 0.01 50.269);
  --input: oklch(0.341 0.011 50.257);
  --primary: oklch(0.5 0.12 245.236);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.805 0.033 237.063);
  --secondary-foreground: oklch(0.271 0.025 238.108);
  --accent: oklch(0.409 0.03 49.801);
  --accent-foreground: oklch(0.915 0.009 50.531);
  --destructive: oklch(0.587 0.225 31.4);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.5 0.12 245.236);
  --chart-1: oklch(0.5 0.12 245.236);
  --chart-2: oklch(0.805 0.033 237.063);
  --chart-3: oklch(0.409 0.03 49.801);
  --chart-4: oklch(0.829 0.029 236.962);
  --chart-5: oklch(0.502 0.123 245.723);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.259 0.016 49.922);
  --foreground: oklch(0.812 0.023 67.499);
  --muted: oklch(0.301 0.013 50.152);
  --muted-foreground: oklch(0.748 0.018 50.363);
  --popover: oklch(0.227 0.013 49.972);
  --popover-foreground: oklch(0.888 0.013 67.654);
  --card: oklch(0.238 0.014 49.953);
  --card-foreground: oklch(0.851 0.018 67.582);
  --border: oklch(0.311 0.01 50.269);
  --input: oklch(0.341 0.011 50.257);
  --primary: oklch(0.5 0.12 245.236);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.805 0.033 237.063);
  --secondary-foreground: oklch(0.271 0.025 238.108);
  --accent: oklch(0.409 0.03 49.801);
  --accent-foreground: oklch(0.915 0.009 50.531);
  --destructive: oklch(0.587 0.225 31.4);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.5 0.12 245.236);
  --chart-1: oklch(0.5 0.12 245.236);
  --chart-2: oklch(0.805 0.033 237.063);
  --chart-3: oklch(0.409 0.03 49.801);
  --chart-4: oklch(0.829 0.029 236.962);
  --chart-5: oklch(0.502 0.123 245.723);
}