Beam is a shadcn/ui theme built around a muted light purple primary color (#eee7ef) with muted light green accents (#e7efe7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light purple primary (#eee7ef) on a purple-tinted background (#0e060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e060eblack |
| Foreground | #040104black | #faf5faghostwhite |
| Card | #ffffffwhite | #0e060eblack |
| Card foreground | #040104black | #faf5faghostwhite |
| Popover | #ffffffwhite | #0e060eblack |
| Popover foreground | #040104black | #faf5faghostwhite |
| Primary | #eee7eflavender | #eee7eflavender |
| Primary foreground | #604162dimgray | #604162dimgray |
| Secondary | #e7efe7beige | #e7efe7beige |
| Secondary foreground | #192518black | #192518black |
| Muted | #ebf0ealinen | #0f150fblack |
| Muted foreground | #474d47darkslategray | #b2b8b2darkgray |
| Accent | #e7efe7beige | #e7efe7beige |
| Accent foreground | #192518black | #192518black |
| Destructive | #8a220adarkred | #f05e3dtomato |
| Destructive foreground | #fbd4cbbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eee7eflavender | #eee7eflavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 13.53:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 13.53:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 18.54:1 | AAA |
| Text on card | 18.54:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 13.53:1 | AAA |
| Muted text | 9.16:1 | AAA |
| Accent | 13.53:1 | AAA |
| Destructive | 6.36:1 | AA |
Paste this into your globals.css to use Beam in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.085 0.02 325.388);
--muted: oklch(0.95 0.01 143.58);
--muted-foreground: oklch(0.413 0.012 143.481);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.085 0.02 325.388);
--card: oklch(1 0 180);
--card-foreground: oklch(0.085 0.02 325.388);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.935 0.014 323.711);
--primary-foreground: oklch(0.423 0.065 324.376);
--secondary: oklch(0.943 0.014 143.56);
--secondary-foreground: oklch(0.248 0.028 143.026);
--accent: oklch(0.943 0.014 143.56);
--accent-foreground: oklch(0.248 0.028 143.026);
--destructive: oklch(0.419 0.143 33.52);
--destructive-foreground: oklch(0.9 0.046 32.764);
--ring: oklch(0.935 0.014 323.711);
--chart-1: oklch(0.935 0.014 323.711);
--chart-2: oklch(0.943 0.014 143.56);
--chart-3: oklch(0.943 0.014 143.56);
--chart-4: oklch(0.965 0.008 143.59);
--chart-5: oklch(0.934 0.016 323.722);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.022 324.548);
--foreground: oklch(0.975 0.009 323.681);
--muted: oklch(0.187 0.015 143.205);
--muted-foreground: oklch(0.777 0.01 143.566);
--popover: oklch(0.14 0.022 324.548);
--popover-foreground: oklch(0.975 0.009 323.681);
--card: oklch(0.14 0.022 324.548);
--card-foreground: oklch(0.975 0.009 323.681);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.935 0.014 323.711);
--primary-foreground: oklch(0.423 0.065 324.376);
--secondary: oklch(0.943 0.014 143.56);
--secondary-foreground: oklch(0.248 0.028 143.026);
--accent: oklch(0.943 0.014 143.56);
--accent-foreground: oklch(0.248 0.028 143.026);
--destructive: oklch(0.666 0.188 34.15);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.935 0.014 323.711);
--chart-1: oklch(0.935 0.014 323.711);
--chart-2: oklch(0.943 0.014 143.56);
--chart-3: oklch(0.943 0.014 143.56);
--chart-4: oklch(0.965 0.008 143.59);
--chart-5: oklch(0.934 0.016 323.722);
}