Beastie for shadcn/ui

Beastie is a shadcn/ui theme built around a violet primary color (#b06ed4) with green accents (#91d46e). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the violet primary (#b06ed4) on a violet-tinted background (#0b070e).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0b070eblack
Foreground
#100316black
#f8f5fawhitesmoke
Card
#faf8fbghostwhite
#0e0911black
Card foreground
#0c0312black
#faf8fbghostwhite
Popover
#faf8fbghostwhite
#0e0911black
Popover foreground
#0c0312black
#faf8fbghostwhite
Primary
#b06ed4mediumorchid
#b06ed4mediumorchid
Primary foreground
#000000black
#000000black
Secondary
#91d46edarkseagreen
#91d46edarkseagreen
Secondary foreground
#060c04black
#060c04black
Muted
#eff1eewhitesmoke
#0f110eblack
Muted foreground
#576250dimgray
#a3af9ddarkgray
Accent
#91d46edarkseagreen
#91d46edarkseagreen
Accent foreground
#060c04black
#060c04black
Destructive
#a83b00saddlebrown
#ff7a33coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b06ed4mediumorchid
#b06ed4mediumorchid

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.22:1AAA
Primary button6.00:1AA
Secondary button11.12:1AAA
Muted text5.66:1AA
Accent11.12:1AAA
Destructive6.37:1AA
Dark mode
Text on background18.50:1AAA
Text on card18.69:1AAA
Primary button6.00:1AA
Secondary button11.12:1AAA
Muted text8.30:1AAA
Accent11.12:1AAA
Destructive8.10:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 314.207);
  --foreground: oklch(0.139 0.048 313.613);
  --muted: oklch(0.956 0.004 134.244);
  --muted-foreground: oklch(0.481 0.031 134.602);
  --popover: oklch(0.983 0.005 314.193);
  --popover-foreground: oklch(0.127 0.042 314.692);
  --card: oklch(0.983 0.005 314.193);
  --card-foreground: oklch(0.127 0.042 314.692);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.16 312.687);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.801 0.15 135.603);
  --secondary-foreground: oklch(0.143 0.023 132.84);
  --accent: oklch(0.801 0.15 135.603);
  --accent-foreground: oklch(0.143 0.023 132.84);
  --destructive: oklch(0.502 0.154 41.025);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.16 312.687);
  --chart-1: oklch(0.649 0.16 312.687);
  --chart-2: oklch(0.801 0.15 135.603);
  --chart-3: oklch(0.801 0.15 135.603);
  --chart-4: oklch(0.816 0.139 135.418);
  --chart-5: oklch(0.647 0.168 312.576);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 314.252);
  --foreground: oklch(0.974 0.007 314.181);
  --muted: oklch(0.173 0.006 134.427);
  --muted-foreground: oklch(0.739 0.028 134.439);
  --popover: oklch(0.149 0.02 313.587);
  --popover-foreground: oklch(0.983 0.005 314.194);
  --card: oklch(0.149 0.02 313.587);
  --card-foreground: oklch(0.983 0.005 314.194);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.16 312.687);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.801 0.15 135.603);
  --secondary-foreground: oklch(0.143 0.023 132.84);
  --accent: oklch(0.801 0.15 135.603);
  --accent-foreground: oklch(0.143 0.023 132.84);
  --destructive: oklch(0.726 0.181 45.47);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.649 0.16 312.687);
  --chart-1: oklch(0.649 0.16 312.687);
  --chart-2: oklch(0.801 0.15 135.603);
  --chart-3: oklch(0.801 0.15 135.603);
  --chart-4: oklch(0.816 0.139 135.418);
  --chart-5: oklch(0.647 0.168 312.576);
}