Bearded Theme Black & Ruby Soft for shadcn/ui

Bearded Theme Black & Ruby Soft is a shadcn/ui theme built around a red primary color (#c62f52) with muted deep pink accents (#563847). The light mode uses a pink-tinted background (#281a21). Dark mode keeps the red primary (#c62f52) on a pink-tinted background (#281a21).

Color palette

TokenLightDark
Background
#281a21black
#281a21black
Foreground
#d8cfd3lightgrey
#d8cfd3lightgrey
Card
#22161cblack
#22161cblack
Card foreground
#e3dde0gainsboro
#e3dde0gainsboro
Popover
#1f141ablack
#1f141ablack
Popover foreground
#efebedlinen
#efebedlinen
Primary
#c62f52crimson
#c62f52crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2acb5silver
#d2acb5silver
Secondary foreground
#321b20black
#321b20black
Muted
#31262bdarkslategray
#31262bdarkslategray
Muted foreground
#b5a1abdarkgray
#b5a1abdarkgray
Accent
#563847darkslategray
#563847darkslategray
Accent foreground
#e7dae0gainsboro
#e7dae0gainsboro
Destructive
#f42206red
#f42206red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#33292edarkslategray
#33292edarkslategray
Input
#3b3036darkslategray
#3b3036darkslategray
Ring
#c62f52crimson
#c62f52crimson

Contrast

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

Light mode
Text on background10.92:1AAA
Text on card13.06:1AAA
Primary button5.34:1AA
Secondary button7.86:1AAA
Muted text5.99:1AA
Accent7.50:1AAA
Destructive4.14:1AA Large
Dark mode
Text on background10.92:1AAA
Text on card13.06:1AAA
Primary button5.34:1AA
Secondary button7.86:1AAA
Muted text5.99:1AA
Accent7.50:1AAA
Destructive4.14:1AA Large

CSS variables

Paste this into your globals.css to use Bearded Theme Black & Ruby Soft in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.239 0.025 347.719);
  --foreground: oklch(0.864 0.011 348.156);
  --muted: oklch(0.283 0.018 346.726);
  --muted-foreground: oklch(0.729 0.027 346.098);
  --popover: oklch(0.208 0.02 347.508);
  --popover-foreground: oklch(0.944 0.004 347.939);
  --card: oklch(0.218 0.022 347.587);
  --card-foreground: oklch(0.904 0.008 348.042);
  --border: oklch(0.294 0.017 346.614);
  --input: oklch(0.323 0.02 346.665);
  --primary: oklch(0.551 0.187 12.947);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.781 0.046 2.559);
  --secondary-foreground: oklch(0.254 0.037 4.945);
  --accent: oklch(0.382 0.048 348.208);
  --accent-foreground: oklch(0.9 0.016 345.615);
  --destructive: oklch(0.616 0.24 30.644);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.187 12.947);
  --chart-1: oklch(0.551 0.187 12.947);
  --chart-2: oklch(0.781 0.046 2.559);
  --chart-3: oklch(0.382 0.048 348.208);
  --chart-4: oklch(0.808 0.04 2.31);
  --chart-5: oklch(0.554 0.194 13.673);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.239 0.025 347.719);
  --foreground: oklch(0.864 0.011 348.156);
  --muted: oklch(0.283 0.018 346.726);
  --muted-foreground: oklch(0.729 0.027 346.098);
  --popover: oklch(0.208 0.02 347.508);
  --popover-foreground: oklch(0.944 0.004 347.939);
  --card: oklch(0.218 0.022 347.587);
  --card-foreground: oklch(0.904 0.008 348.042);
  --border: oklch(0.294 0.017 346.614);
  --input: oklch(0.323 0.02 346.665);
  --primary: oklch(0.551 0.187 12.947);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.781 0.046 2.559);
  --secondary-foreground: oklch(0.254 0.037 4.945);
  --accent: oklch(0.382 0.048 348.208);
  --accent-foreground: oklch(0.9 0.016 345.615);
  --destructive: oklch(0.616 0.24 30.644);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.187 12.947);
  --chart-1: oklch(0.551 0.187 12.947);
  --chart-2: oklch(0.781 0.046 2.559);
  --chart-3: oklch(0.382 0.048 348.208);
  --chart-4: oklch(0.808 0.04 2.31);
  --chart-5: oklch(0.554 0.194 13.673);
}