Beetle is a shadcn/ui theme built around a muted indigo primary color (#8377ac) with muted green accents (#77ac83). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted indigo primary (#8377ac) on an indigo-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #06050bblack |
| Foreground | #05030cblack | #ffffffwhite |
| Card | #f9f8fcghostwhite | #08060eblack |
| Card foreground | #040208black | #ffffffwhite |
| Popover | #f9f8fcghostwhite | #08060eblack |
| Popover foreground | #040208black | #ffffffwhite |
| Primary | #8377aclightslategray | #8377aclightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #ac8377rosybrown | #ac8377rosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #e5e2e0gainsboro | #1f1b1ablack |
| Muted foreground | #605957dimgray | #a8a19fdarkgray |
| Accent | #77ac83darkseagreen | #77ac83darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #a00303darkred | #fa0f0fred |
| Destructive foreground | #fed7d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8377aclightslategray | #8377aclightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.20:1 | AA |
| Secondary button | 6.27:1 | AA |
| Muted text | 5.30:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 5.20:1 | AA |
| Secondary button | 6.27:1 | AA |
| Muted text | 6.74:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Beetle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 297.023);
--foreground: oklch(0.112 0.025 296.331);
--muted: oklch(0.914 0.005 37.718);
--muted-foreground: oklch(0.471 0.01 37.655);
--popover: oklch(0.98 0.006 296.966);
--popover-foreground: oklch(0.098 0.022 296.511);
--card: oklch(0.98 0.006 296.966);
--card-foreground: oklch(0.098 0.022 296.511);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.601 0.08 294.584);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.647 0.053 37.599);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.695 0.081 151.13);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.444 0.18 29.005);
--destructive-foreground: oklch(0.912 0.044 17.985);
--ring: oklch(0.601 0.08 294.584);
--chart-1: oklch(0.601 0.08 294.584);
--chart-2: oklch(0.647 0.053 37.599);
--chart-3: oklch(0.695 0.081 151.13);
--chart-4: oklch(0.672 0.049 37.593);
--chart-5: oklch(0.594 0.09 294.211);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.017 296.687);
--foreground: oklch(1 0 180);
--muted: oklch(0.225 0.007 37.633);
--muted-foreground: oklch(0.713 0.009 37.686);
--popover: oklch(0.131 0.02 295.903);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.02 295.903);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.601 0.08 294.584);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.647 0.053 37.599);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.695 0.081 151.13);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.622 0.251 28.832);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.601 0.08 294.584);
--chart-1: oklch(0.601 0.08 294.584);
--chart-2: oklch(0.647 0.053 37.599);
--chart-3: oklch(0.695 0.081 151.13);
--chart-4: oklch(0.672 0.049 37.593);
--chart-5: oklch(0.594 0.09 294.211);
}