Beating for shadcn/ui

Beating is a shadcn/ui theme built around a vivid light violet primary color (#e2cffc) with vivid light green accents (#cffce2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#e2cffc) on a violet-tinted background (#07050b).

Color palette

TokenLightDark
Background
#ffffffwhite
#07050bblack
Foreground
#090411black
#f7f5fawhitesmoke
Card
#fcfcfcsnow
#0a060eblack
Card foreground
#07030cblack
#faf8fbghostwhite
Popover
#ffffffwhite
#07050bblack
Popover foreground
#090411black
#f7f5fawhitesmoke
Primary
#e2cffclavender
#e2cffclavender
Primary foreground
#410891indigo
#410891indigo
Secondary
#fce2cfblanchedalmond
#fce2cfblanchedalmond
Secondary foreground
#301603black
#301603black
Muted
#f5f2f0whitesmoke
#0f0c0ablack
Muted foreground
#433f3ddarkslategray
#c2bfbcsilver
Accent
#cffce2lightcyan
#cffce2lightcyan
Accent foreground
#033016black
#033016black
Destructive
#ad3a00saddlebrown
#ff7733tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2cffclavender
#e2cffclavender

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.00:1AAA
Primary button8.71:1AAA
Secondary button13.60:1AAA
Muted text9.32:1AAA
Accent12.99:1AAA
Destructive6.19:1AA
Dark mode
Text on background18.76:1AAA
Text on card19.02:1AAA
Primary button8.71:1AAA
Secondary button13.60:1AAA
Muted text10.62:1AAA
Accent12.99:1AAA
Destructive7.93:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.032 304.537);
  --muted: oklch(0.962 0.004 58.307);
  --muted-foreground: oklch(0.371 0.007 58.107);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.032 304.537);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.114 0.028 306.046);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.884 0.065 304.031);
  --primary-foreground: oklch(0.347 0.188 290.871);
  --secondary: oklch(0.929 0.039 57.78);
  --secondary-foreground: oklch(0.233 0.053 54.421);
  --accent: oklch(0.953 0.059 159.478);
  --accent-foreground: oklch(0.273 0.068 152.455);
  --destructive: oklch(0.51 0.161 39.82);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.884 0.065 304.031);
  --chart-1: oklch(0.884 0.065 304.031);
  --chart-2: oklch(0.929 0.039 57.78);
  --chart-3: oklch(0.953 0.059 159.478);
  --chart-4: oklch(0.95 0.027 57.969);
  --chart-5: oklch(0.882 0.067 303.995);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 305.781);
  --foreground: oklch(0.973 0.006 304.954);
  --muted: oklch(0.159 0.006 57.828);
  --muted-foreground: oklch(0.806 0.006 58.266);
  --popover: oklch(0.121 0.017 305.781);
  --popover-foreground: oklch(0.973 0.006 304.954);
  --card: oklch(0.133 0.02 304.647);
  --card-foreground: oklch(0.982 0.004 304.985);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.884 0.065 304.031);
  --primary-foreground: oklch(0.347 0.188 290.871);
  --secondary: oklch(0.929 0.039 57.78);
  --secondary-foreground: oklch(0.233 0.053 54.421);
  --accent: oklch(0.953 0.059 159.478);
  --accent-foreground: oklch(0.273 0.068 152.455);
  --destructive: oklch(0.721 0.183 44.083);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.884 0.065 304.031);
  --chart-1: oklch(0.884 0.065 304.031);
  --chart-2: oklch(0.929 0.039 57.78);
  --chart-3: oklch(0.953 0.059 159.478);
  --chart-4: oklch(0.95 0.027 57.969);
  --chart-5: oklch(0.882 0.067 303.995);
}