Bride for shadcn/ui

Bride is a shadcn/ui theme built around a vivid deep purple primary color (#26021e) with vivid deep pink accents (#26020c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#26021e) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#ffffffwhite
#070306black
Foreground
#090107black
#fdfcfdwhite
Card
#fcfcfcsnow
#0b0509black
Card foreground
#040104black
#ffffffwhite
Popover
#ffffffwhite
#070306black
Popover foreground
#090107black
#fdfcfdwhite
Primary
#26021eblack
#26021eblack
Primary foreground
#f566d4orchid
#f566d4orchid
Secondary
#1d0226black
#1d0226black
Secondary foreground
#cf66f5orchid
#cf66f5orchid
Muted
#ede6eflavender
#171019black
Muted foreground
#5d5062dimgray
#aa9dafdarkgray
Accent
#26020cblack
#26020cblack
Accent foreground
#f5668cpalevioletred
#f5668cpalevioletred
Destructive
#740c06maroon
#df160cred
Destructive foreground
#fbb5b1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#26021eblack
#26021eblack

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.31:1AAA
Primary button6.94:1AA
Secondary button6.30:1AA
Muted text6.14:1AA
Accent6.51:1AA
Destructive6.85:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.23:1AAA
Primary button6.94:1AA
Secondary button6.30:1AA
Muted text7.26:1AAA
Accent6.51:1AA
Destructive4.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.105 0.03 334.268);
  --muted: oklch(0.933 0.014 317.154);
  --muted-foreground: oklch(0.452 0.033 317.023);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.03 334.268);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.083 0.024 334.268);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.188 0.074 338.769);
  --primary-foreground: oklch(0.723 0.213 337.698);
  --secondary: oklch(0.176 0.076 315.882);
  --secondary-foreground: oklch(0.691 0.221 316.067);
  --accent: oklch(0.179 0.063 7.868);
  --accent-foreground: oklch(0.698 0.179 6.4);
  --destructive: oklch(0.358 0.138 29.402);
  --destructive-foreground: oklch(0.838 0.082 22.354);
  --ring: oklch(0.188 0.074 338.769);
  --chart-1: oklch(0.188 0.074 338.769);
  --chart-2: oklch(0.176 0.076 315.882);
  --chart-3: oklch(0.179 0.063 7.868);
  --chart-4: oklch(0.21 0.094 315.053);
  --chart-5: oklch(0.188 0.076 338.897);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.016 333.781);
  --foreground: oklch(0.992 0.002 333.273);
  --muted: oklch(0.185 0.022 316.916);
  --muted-foreground: oklch(0.712 0.029 317.095);
  --popover: oklch(0.11 0.016 333.781);
  --popover-foreground: oklch(0.992 0.002 333.273);
  --card: oklch(0.126 0.018 333.819);
  --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.188 0.074 338.769);
  --primary-foreground: oklch(0.723 0.213 337.698);
  --secondary: oklch(0.176 0.076 315.882);
  --secondary-foreground: oklch(0.691 0.221 316.067);
  --accent: oklch(0.179 0.063 7.868);
  --accent-foreground: oklch(0.698 0.179 6.4);
  --destructive: oklch(0.573 0.227 29.475);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.188 0.074 338.769);
  --chart-1: oklch(0.188 0.074 338.769);
  --chart-2: oklch(0.176 0.076 315.882);
  --chart-3: oklch(0.179 0.063 7.868);
  --chart-4: oklch(0.21 0.094 315.053);
  --chart-5: oklch(0.188 0.076 338.897);
}