Benefit is a shadcn/ui theme built around a vivid light blue primary color (#a6b0fc) with vivid light violet accents (#c7a6fc). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid light blue primary (#a6b0fc) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #04050bblack |
| Foreground | #030308black | #f8f9fcghostwhite |
| Card | #f8f8fcghostwhite | #04050bblack |
| Card foreground | #030308black | #f8f9fcghostwhite |
| Popover | #f8f8fcghostwhite | #04050bblack |
| Popover foreground | #030308black | #f8f9fcghostwhite |
| Primary | #a6b0fclightsteelblue | #a6b0fclightsteelblue |
| Primary foreground | #03106dmidnightblue | #03106dmidnightblue |
| Secondary | #a6dbfclightblue | #a6dbfclightblue |
| Secondary foreground | #03446dmidnightblue | #03446dmidnightblue |
| Muted | #e2e9eelavender | #11181dblack |
| Muted foreground | #5c5f60dimgray | #9fa1a3darkgray |
| Accent | #c7a6fcplum | #c7a6fcplum |
| Accent foreground | #2c036dmidnightblue | #2c036dmidnightblue |
| Destructive | #d3280dfirebrick | #d8290efirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a6b0fclightsteelblue | #a6b0fclightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 5.26:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 5.15:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 6.89:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 4.96:1 | AA |
Paste this into your globals.css to use Benefit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.004 280.262);
--foreground: oklch(0.101 0.016 275.106);
--muted: oklch(0.931 0.01 234.668);
--muted-foreground: oklch(0.483 0.004 234.617);
--popover: oklch(0.981 0.004 280.262);
--popover-foreground: oklch(0.101 0.016 275.106);
--card: oklch(0.981 0.004 280.262);
--card-foreground: oklch(0.101 0.016 275.106);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.778 0.109 277.756);
--primary-foreground: oklch(0.26 0.154 265.34);
--secondary: oklch(0.866 0.072 235.97);
--secondary-foreground: oklch(0.374 0.09 244.2);
--accent: oklch(0.786 0.124 301.216);
--accent-foreground: oklch(0.278 0.154 288.474);
--destructive: oklch(0.56 0.208 31.379);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.778 0.109 277.756);
--chart-1: oklch(0.778 0.109 277.756);
--chart-2: oklch(0.866 0.072 235.97);
--chart-3: oklch(0.786 0.124 301.216);
--chart-4: oklch(0.888 0.06 235.637);
--chart-5: oklch(0.776 0.113 277.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.017 275.561);
--foreground: oklch(0.981 0.004 280.265);
--muted: oklch(0.205 0.015 235.738);
--muted-foreground: oklch(0.708 0.003 234.575);
--popover: oklch(0.117 0.017 275.561);
--popover-foreground: oklch(0.981 0.004 280.265);
--card: oklch(0.117 0.017 275.561);
--card-foreground: oklch(0.981 0.004 280.265);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.778 0.109 277.756);
--primary-foreground: oklch(0.26 0.154 265.34);
--secondary: oklch(0.866 0.072 235.97);
--secondary-foreground: oklch(0.374 0.09 244.2);
--accent: oklch(0.786 0.124 301.216);
--accent-foreground: oklch(0.278 0.154 288.474);
--destructive: oklch(0.57 0.212 31.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.778 0.109 277.756);
--chart-1: oklch(0.778 0.109 277.756);
--chart-2: oklch(0.866 0.072 235.97);
--chart-3: oklch(0.786 0.124 301.216);
--chart-4: oklch(0.888 0.06 235.637);
--chart-5: oklch(0.776 0.113 277.65);
}