Beastie is a shadcn/ui theme built around a violet primary color (#b06ed4) with green accents (#91d46e). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the violet primary (#b06ed4) on a violet-tinted background (#0b070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0b070eblack |
| Foreground | #100316black | #f8f5fawhitesmoke |
| Card | #faf8fbghostwhite | #0e0911black |
| Card foreground | #0c0312black | #faf8fbghostwhite |
| Popover | #faf8fbghostwhite | #0e0911black |
| Popover foreground | #0c0312black | #faf8fbghostwhite |
| Primary | #b06ed4mediumorchid | #b06ed4mediumorchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #91d46edarkseagreen | #91d46edarkseagreen |
| Secondary foreground | #060c04black | #060c04black |
| Muted | #eff1eewhitesmoke | #0f110eblack |
| Muted foreground | #576250dimgray | #a3af9ddarkgray |
| Accent | #91d46edarkseagreen | #91d46edarkseagreen |
| Accent foreground | #060c04black | #060c04black |
| Destructive | #a83b00saddlebrown | #ff7a33coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b06ed4mediumorchid | #b06ed4mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 11.12:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 11.12:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 18.50:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 11.12:1 | AAA |
| Muted text | 8.30:1 | AAA |
| Accent | 11.12:1 | AAA |
| Destructive | 8.10:1 | AAA |
Paste this into your globals.css to use Beastie in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 314.207);
--foreground: oklch(0.139 0.048 313.613);
--muted: oklch(0.956 0.004 134.244);
--muted-foreground: oklch(0.481 0.031 134.602);
--popover: oklch(0.983 0.005 314.193);
--popover-foreground: oklch(0.127 0.042 314.692);
--card: oklch(0.983 0.005 314.193);
--card-foreground: oklch(0.127 0.042 314.692);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.649 0.16 312.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.801 0.15 135.603);
--secondary-foreground: oklch(0.143 0.023 132.84);
--accent: oklch(0.801 0.15 135.603);
--accent-foreground: oklch(0.143 0.023 132.84);
--destructive: oklch(0.502 0.154 41.025);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.649 0.16 312.687);
--chart-1: oklch(0.649 0.16 312.687);
--chart-2: oklch(0.801 0.15 135.603);
--chart-3: oklch(0.801 0.15 135.603);
--chart-4: oklch(0.816 0.139 135.418);
--chart-5: oklch(0.647 0.168 312.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.017 314.252);
--foreground: oklch(0.974 0.007 314.181);
--muted: oklch(0.173 0.006 134.427);
--muted-foreground: oklch(0.739 0.028 134.439);
--popover: oklch(0.149 0.02 313.587);
--popover-foreground: oklch(0.983 0.005 314.194);
--card: oklch(0.149 0.02 313.587);
--card-foreground: oklch(0.983 0.005 314.194);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.649 0.16 312.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.801 0.15 135.603);
--secondary-foreground: oklch(0.143 0.023 132.84);
--accent: oklch(0.801 0.15 135.603);
--accent-foreground: oklch(0.143 0.023 132.84);
--destructive: oklch(0.726 0.181 45.47);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.649 0.16 312.687);
--chart-1: oklch(0.649 0.16 312.687);
--chart-2: oklch(0.801 0.15 135.603);
--chart-3: oklch(0.801 0.15 135.603);
--chart-4: oklch(0.816 0.139 135.418);
--chart-5: oklch(0.647 0.168 312.576);
}