Destroyer is a shadcn/ui theme built around an indigo primary color (#231b9d) with yellow accents (#949d1b). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#231b9d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #04040cblack | #f5f5fawhitesmoke |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #04040cblack | #f5f5fawhitesmoke |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #04040cblack | #f5f5fawhitesmoke |
| Primary | #231b9dmidnightblue | #231b9dmidnightblue |
| Primary foreground | #efeefcaliceblue | #efeefcaliceblue |
| Secondary | #949d1bolivedrab | #949d1bolivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #f7f7edseashell | #111208black |
| Muted foreground | #4e4e4bdarkslategray | #b4b4b1darkgray |
| Accent | #949d1bolivedrab | #949d1bolivedrab |
| Accent foreground | #000000black | #000000black |
| Destructive | #b84e14sienna | #e97435tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #231b9dmidnightblue | #231b9dmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 10.68:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 7.10:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 10.68:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 9.07:1 | AAA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.99:1 | AA |
Paste this into your globals.css to use Destroyer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 289.4);
--foreground: oklch(0.11 0.023 286.232);
--muted: oklch(0.974 0.013 109.735);
--muted-foreground: oklch(0.423 0.005 109.697);
--popover: oklch(0.989 0.004 289.4);
--popover-foreground: oklch(0.11 0.023 286.232);
--card: oklch(0.989 0.004 289.4);
--card-foreground: oklch(0.11 0.023 286.232);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.35 0.195 272.654);
--primary-foreground: oklch(0.953 0.019 289.094);
--secondary: oklch(0.667 0.142 113.722);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.667 0.142 113.722);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.553 0.152 43.818);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.35 0.195 272.654);
--chart-1: oklch(0.35 0.195 272.654);
--chart-2: oklch(0.667 0.142 113.722);
--chart-3: oklch(0.667 0.142 113.722);
--chart-4: oklch(0.707 0.151 113.745);
--chart-5: oklch(0.349 0.201 271.722);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.972 0.006 289.365);
--muted: oklch(0.177 0.02 111.444);
--muted-foreground: oklch(0.769 0.004 109.582);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.972 0.006 289.365);
--card: oklch(0 0 0);
--card-foreground: oklch(0.972 0.006 289.365);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.35 0.195 272.654);
--primary-foreground: oklch(0.953 0.019 289.094);
--secondary: oklch(0.667 0.142 113.722);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.667 0.142 113.722);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.685 0.163 46.075);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.35 0.195 272.654);
--chart-1: oklch(0.35 0.195 272.654);
--chart-2: oklch(0.667 0.142 113.722);
--chart-3: oklch(0.667 0.142 113.722);
--chart-4: oklch(0.707 0.151 113.745);
--chart-5: oklch(0.349 0.201 271.722);
}