Drum for shadcn/ui

Drum is a shadcn/ui theme built around a deep violet primary color (#140f1f) with deep green accents (#0f1f14). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep violet primary (#140f1f) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020104black
Foreground
#0a0614black
#faf9fbghostwhite
Card
#f9f6fdghostwhite
#040307black
Card foreground
#080410black
#fcfcfdwhite
Popover
#fcfbfewhite
#020104black
Popover foreground
#0a0614black
#faf9fbghostwhite
Primary
#140f1fblack
#140f1fblack
Primary foreground
#a693ccdarkgray
#a693ccdarkgray
Secondary
#1f140fblack
#1f140fblack
Secondary foreground
#cca693tan
#cca693tan
Muted
#efeceblinen
#141110black
Muted foreground
#504b49darkslategray
#b6b1afdarkgray
Accent
#0f1f14black
#0f1f14black
Accent foreground
#93cca6darkseagreen
#93cca6darkseagreen
Destructive
#ad1100darkred
#ff1900red
Destructive foreground
#ffe3e0mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#140f1fblack
#140f1fblack

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.00:1AAA
Primary button6.86:1AA
Secondary button8.09:1AAA
Muted text7.33:1AAA
Accent9.30:1AAA
Destructive6.03:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.05:1AAA
Primary button6.86:1AA
Secondary button8.09:1AAA
Muted text8.85:1AAA
Accent9.30:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 301.415);
  --foreground: oklch(0.137 0.033 298.931);
  --muted: oklch(0.946 0.004 48.703);
  --muted-foreground: oklch(0.418 0.008 48.523);
  --popover: oklch(0.989 0.005 301.415);
  --popover-foreground: oklch(0.137 0.033 298.931);
  --card: oklch(0.978 0.01 301.335);
  --card-foreground: oklch(0.126 0.029 300.573);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.183 0.034 298.349);
  --primary-foreground: oklch(0.702 0.084 299.519);
  --secondary: oklch(0.205 0.021 47.663);
  --secondary-foreground: oklch(0.756 0.052 48.01);
  --accent: oklch(0.222 0.031 153.919);
  --accent-foreground: oklch(0.797 0.08 155.018);
  --destructive: oklch(0.476 0.188 30.617);
  --destructive-foreground: oklch(0.939 0.031 25.288);
  --ring: oklch(0.183 0.034 298.349);
  --chart-1: oklch(0.183 0.034 298.349);
  --chart-2: oklch(0.205 0.021 47.663);
  --chart-3: oklch(0.222 0.031 153.919);
  --chart-4: oklch(0.238 0.027 47.545);
  --chart-5: oklch(0.182 0.037 298.027);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.013 301.888);
  --foreground: oklch(0.983 0.002 301.461);
  --muted: oklch(0.181 0.006 48.397);
  --muted-foreground: oklch(0.765 0.007 48.641);
  --popover: oklch(0.082 0.013 301.888);
  --popover-foreground: oklch(0.983 0.002 301.461);
  --card: oklch(0.104 0.016 301.888);
  --card-foreground: oklch(0.992 0.001 301.477);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.183 0.034 298.349);
  --primary-foreground: oklch(0.702 0.084 299.519);
  --secondary: oklch(0.205 0.021 47.663);
  --secondary-foreground: oklch(0.756 0.052 48.01);
  --accent: oklch(0.222 0.031 153.919);
  --accent-foreground: oklch(0.797 0.08 155.018);
  --destructive: oklch(0.634 0.252 30.244);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.183 0.034 298.349);
  --chart-1: oklch(0.183 0.034 298.349);
  --chart-2: oklch(0.205 0.021 47.663);
  --chart-3: oklch(0.222 0.031 153.919);
  --chart-4: oklch(0.238 0.027 47.545);
  --chart-5: oklch(0.182 0.037 298.027);
}