Beating is a shadcn/ui theme built around a vivid light violet primary color (#e2cffc) with vivid light green accents (#cffce2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#e2cffc) on a violet-tinted background (#07050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07050bblack |
| Foreground | #090411black | #f7f5fawhitesmoke |
| Card | #fcfcfcsnow | #0a060eblack |
| Card foreground | #07030cblack | #faf8fbghostwhite |
| Popover | #ffffffwhite | #07050bblack |
| Popover foreground | #090411black | #f7f5fawhitesmoke |
| Primary | #e2cffclavender | #e2cffclavender |
| Primary foreground | #410891indigo | #410891indigo |
| Secondary | #fce2cfblanchedalmond | #fce2cfblanchedalmond |
| Secondary foreground | #301603black | #301603black |
| Muted | #f5f2f0whitesmoke | #0f0c0ablack |
| Muted foreground | #433f3ddarkslategray | #c2bfbcsilver |
| Accent | #cffce2lightcyan | #cffce2lightcyan |
| Accent foreground | #033016black | #033016black |
| Destructive | #ad3a00saddlebrown | #ff7733tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2cffclavender | #e2cffclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 13.60:1 | AAA |
| Muted text | 9.32:1 | AAA |
| Accent | 12.99:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 13.60:1 | AAA |
| Muted text | 10.62:1 | AAA |
| Accent | 12.99:1 | AAA |
| Destructive | 7.93:1 | AAA |
Paste this into your globals.css to use Beating in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.032 304.537);
--muted: oklch(0.962 0.004 58.307);
--muted-foreground: oklch(0.371 0.007 58.107);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.032 304.537);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.114 0.028 306.046);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.884 0.065 304.031);
--primary-foreground: oklch(0.347 0.188 290.871);
--secondary: oklch(0.929 0.039 57.78);
--secondary-foreground: oklch(0.233 0.053 54.421);
--accent: oklch(0.953 0.059 159.478);
--accent-foreground: oklch(0.273 0.068 152.455);
--destructive: oklch(0.51 0.161 39.82);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.884 0.065 304.031);
--chart-1: oklch(0.884 0.065 304.031);
--chart-2: oklch(0.929 0.039 57.78);
--chart-3: oklch(0.953 0.059 159.478);
--chart-4: oklch(0.95 0.027 57.969);
--chart-5: oklch(0.882 0.067 303.995);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.017 305.781);
--foreground: oklch(0.973 0.006 304.954);
--muted: oklch(0.159 0.006 57.828);
--muted-foreground: oklch(0.806 0.006 58.266);
--popover: oklch(0.121 0.017 305.781);
--popover-foreground: oklch(0.973 0.006 304.954);
--card: oklch(0.133 0.02 304.647);
--card-foreground: oklch(0.982 0.004 304.985);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.884 0.065 304.031);
--primary-foreground: oklch(0.347 0.188 290.871);
--secondary: oklch(0.929 0.039 57.78);
--secondary-foreground: oklch(0.233 0.053 54.421);
--accent: oklch(0.953 0.059 159.478);
--accent-foreground: oklch(0.273 0.068 152.455);
--destructive: oklch(0.721 0.183 44.083);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.884 0.065 304.031);
--chart-1: oklch(0.884 0.065 304.031);
--chart-2: oklch(0.929 0.039 57.78);
--chart-3: oklch(0.953 0.059 159.478);
--chart-4: oklch(0.95 0.027 57.969);
--chart-5: oklch(0.882 0.067 303.995);
}