Beneficiary is a shadcn/ui theme built around a near-black primary color (#030303) with near-black accents (#030303). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#030303) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #040101black |
| Foreground | #090101black | #faf5f5whitesmoke |
| Card | #fdf6f6snow | #070303black |
| Card foreground | #050101black | #fcf8f8snow |
| Popover | #fdf6f6snow | #070303black |
| Popover foreground | #050101black | #fcf8f8snow |
| Primary | #030303black | #030303black |
| Primary foreground | #9c9c9cdarkgray | #9c9c9cdarkgray |
| Secondary | #030303black | #030303black |
| Secondary foreground | #9c9c9cdarkgray | #9c9c9cdarkgray |
| Muted | #e9ddddgainsboro | #221616black |
| Muted foreground | #4a3a3adarkslategray | #c5b5b5silver |
| Accent | #030303black | #030303black |
| Accent foreground | #9c9c9cdarkgray | #9c9c9cdarkgray |
| Destructive | #c11e10firebrick | #d92212firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030303black | #030303black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 8.89:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.01:1 | AA |
Paste this into your globals.css to use Beneficiary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 17.22);
--foreground: oklch(0.098 0.028 23.785);
--muted: oklch(0.908 0.012 17.383);
--muted-foreground: oklch(0.367 0.023 18.229);
--popover: oklch(0.98 0.007 17.283);
--popover-foreground: oklch(0.077 0.022 23.785);
--card: oklch(0.98 0.007 17.283);
--card-foreground: oklch(0.077 0.022 23.785);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.092 0 180);
--primary-foreground: oklch(0.691 0 180);
--secondary: oklch(0.092 0 180);
--secondary-foreground: oklch(0.691 0 180);
--accent: oklch(0.092 0 180);
--accent-foreground: oklch(0.691 0 180);
--destructive: oklch(0.522 0.198 30.084);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.092 0 180);
--chart-1: oklch(0.092 0 180);
--chart-2: oklch(0.092 0 180);
--chart-3: oklch(0.092 0 180);
--chart-4: oklch(0.146 0 180);
--chart-5: oklch(0.091 0.001 17.277);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.012 19.788);
--foreground: oklch(0.973 0.006 17.261);
--muted: oklch(0.217 0.018 18.672);
--muted-foreground: oklch(0.786 0.018 17.547);
--popover: oklch(0.106 0.015 19.788);
--popover-foreground: oklch(0.982 0.004 17.226);
--card: oklch(0.106 0.015 19.788);
--card-foreground: oklch(0.982 0.004 17.226);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.092 0 180);
--primary-foreground: oklch(0.691 0 180);
--secondary: oklch(0.092 0 180);
--secondary-foreground: oklch(0.691 0 180);
--accent: oklch(0.092 0 180);
--accent-foreground: oklch(0.691 0 180);
--destructive: oklch(0.568 0.216 30.09);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.092 0 180);
--chart-1: oklch(0.092 0 180);
--chart-2: oklch(0.092 0 180);
--chart-3: oklch(0.092 0 180);
--chart-4: oklch(0.146 0 180);
--chart-5: oklch(0.091 0.001 17.277);
}