Beat for shadcn/ui

Beat is a shadcn/ui theme built around a deep violet primary color (#290e34) with deep purple accents (#340e2c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#290e34) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#070209black
#fbf8fcghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#070209black
#fbf8fcghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#070209black
#fbf8fcghostwhite
Primary
#290e34midnightblue
#290e34midnightblue
Primary foreground
#cb93e1plum
#cb93e1plum
Secondary
#160e34black
#160e34black
Secondary foreground
#a493e1mediumpurple
#a493e1mediumpurple
Muted
#e9e8edlavender
#131217black
Muted foreground
#615d6fdimgray
#9490a2lightslategray
Accent
#340e2cblack
#340e2cblack
Accent foreground
#e193d0plum
#e193d0plum
Destructive
#873408saddlebrown
#f26a21chocolate
Destructive foreground
#fcd8c5bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#290e34midnightblue
#290e34midnightblue

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button7.27:1AAA
Secondary button6.82:1AA
Muted text5.22:1AA
Accent7.44:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.27:1AAA
Secondary button6.82:1AA
Muted text6.01:1AA
Accent7.44:1AAA
Destructive6.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.029 319.052);
  --muted: oklch(0.934 0.007 296.201);
  --muted-foreground: oklch(0.488 0.029 295.219);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.029 319.052);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.102 0.029 319.052);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.228 0.076 315.171);
  --primary-foreground: oklch(0.745 0.125 316.082);
  --secondary: oklch(0.202 0.071 288.345);
  --secondary-foreground: oklch(0.708 0.114 293.221);
  --accent: oklch(0.241 0.074 337.079);
  --accent-foreground: oklch(0.761 0.123 334.937);
  --destructive: oklch(0.437 0.124 43.05);
  --destructive-foreground: oklch(0.908 0.047 50.036);
  --ring: oklch(0.228 0.076 315.171);
  --chart-1: oklch(0.228 0.076 315.171);
  --chart-2: oklch(0.202 0.071 288.345);
  --chart-3: oklch(0.241 0.074 337.079);
  --chart-4: oklch(0.226 0.084 287.652);
  --chart-5: oklch(0.228 0.079 315.045);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 316.593);
  --muted: oklch(0.185 0.01 295.34);
  --muted-foreground: oklch(0.662 0.027 295.577);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.005 316.593);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.982 0.005 316.593);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.228 0.076 315.171);
  --primary-foreground: oklch(0.745 0.125 316.082);
  --secondary: oklch(0.202 0.071 288.345);
  --secondary-foreground: oklch(0.708 0.114 293.221);
  --accent: oklch(0.241 0.074 337.079);
  --accent-foreground: oklch(0.761 0.123 334.937);
  --destructive: oklch(0.683 0.185 44.107);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.228 0.076 315.171);
  --chart-1: oklch(0.228 0.076 315.171);
  --chart-2: oklch(0.202 0.071 288.345);
  --chart-3: oklch(0.241 0.074 337.079);
  --chart-4: oklch(0.226 0.084 287.652);
  --chart-5: oklch(0.228 0.079 315.045);
}