Beetle is a shadcn/ui theme built around a deep purple primary color (#22111d) with deep cyan accents (#111d22). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the deep purple primary (#22111d) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #040103black |
| Foreground | #140610black | #fdfcfdwhite |
| Card | #fdf7fbsnow | #040103black |
| Card foreground | #140610black | #fdfcfdwhite |
| Popover | #fdf7fbsnow | #040103black |
| Popover foreground | #140610black | #fdfcfdwhite |
| Primary | #22111dblack | #22111dblack |
| Primary foreground | #cb9abeplum | #cb9abeplum |
| Secondary | #1d2211black | #1d2211black |
| Secondary foreground | #93a857darkkhaki | #93a857darkkhaki |
| Muted | #eff2e9linen | #14160dblack |
| Muted foreground | #686d5adimgray | #a0a592darkgray |
| Accent | #111d22black | #111d22black |
| Accent foreground | #9abecblightsteelblue | #9abecblightsteelblue |
| Destructive | #c7530fchocolate | #f18241coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #22111dblack | #22111dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 6.20:1 | AA |
| Muted text | 4.72:1 | AA |
| Accent | 8.64:1 | AAA |
| Destructive | 4.50:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 6.20:1 | AA |
| Muted text | 7.18:1 | AAA |
| Accent | 8.64:1 | AAA |
| Destructive | 7.97:1 | AAA |
Paste this into your globals.css to use Beetle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 334.675);
--foreground: oklch(0.15 0.034 337.55);
--muted: oklch(0.956 0.013 118.796);
--muted-foreground: oklch(0.526 0.031 119.601);
--popover: oklch(0.982 0.008 334.675);
--popover-foreground: oklch(0.15 0.034 337.55);
--card: oklch(0.982 0.008 334.675);
--card-foreground: oklch(0.15 0.034 337.55);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.207 0.034 337.21);
--primary-foreground: oklch(0.743 0.075 336.206);
--secondary: oklch(0.241 0.03 120.835);
--secondary-foreground: oklch(0.697 0.111 121.61);
--accent: oklch(0.223 0.019 222.609);
--accent-foreground: oklch(0.779 0.043 221.978);
--destructive: oklch(0.584 0.164 43.967);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.207 0.034 337.21);
--chart-1: oklch(0.207 0.034 337.21);
--chart-2: oklch(0.241 0.03 120.835);
--chart-3: oklch(0.223 0.019 222.609);
--chart-4: oklch(0.28 0.037 121.013);
--chart-5: oklch(0.207 0.037 337.449);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.018 335.187);
--foreground: oklch(0.992 0.001 334.54);
--muted: oklch(0.196 0.018 120.223);
--muted-foreground: oklch(0.714 0.029 119.273);
--popover: oklch(0.085 0.018 335.187);
--popover-foreground: oklch(0.992 0.001 334.54);
--card: oklch(0.085 0.018 335.187);
--card-foreground: oklch(0.992 0.001 334.54);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.207 0.034 337.21);
--primary-foreground: oklch(0.743 0.075 336.206);
--secondary: oklch(0.241 0.03 120.835);
--secondary-foreground: oklch(0.697 0.111 121.61);
--accent: oklch(0.223 0.019 222.609);
--accent-foreground: oklch(0.779 0.043 221.978);
--destructive: oklch(0.718 0.157 48.286);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.207 0.034 337.21);
--chart-1: oklch(0.207 0.034 337.21);
--chart-2: oklch(0.241 0.03 120.835);
--chart-3: oklch(0.223 0.019 222.609);
--chart-4: oklch(0.28 0.037 121.013);
--chart-5: oklch(0.207 0.037 337.449);
}