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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 9.30:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 8.85:1 | AAA |
| Accent | 9.30:1 | AAA |
| Destructive | 3.89:1 | AA Large |
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);
}