Beneficial is a shadcn/ui theme built around a vivid purple primary color (#b40cca) with vivid green accents (#22ca0c). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the vivid purple primary (#b40cca) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #040104black |
| Foreground | #100311black | #fdfcfdwhite |
| Card | #fcf7fdghostwhite | #040104black |
| Card foreground | #100311black | #fdfcfdwhite |
| Popover | #fcf7fdghostwhite | #040104black |
| Popover foreground | #100311black | #fdfcfdwhite |
| Primary | #b40ccadarkviolet | #b40ccadarkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #22ca0climegreen | #22ca0climegreen |
| Secondary foreground | #020a01black | #020a01black |
| Muted | #cde8c9lightgrey | #1b3617darkgreen |
| Muted foreground | #586756dimgray | #9aa998darkgray |
| Accent | #22ca0climegreen | #22ca0climegreen |
| Accent foreground | #020a01black | #020a01black |
| Destructive | #8d2c0csaddlebrown | #e64814orangered |
| Destructive foreground | #fbdbd0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b40ccadarkviolet | #b40ccadarkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 5.44:1 | AA |
| Secondary button | 9.13:1 | AAA |
| Muted text | 4.58:1 | AA |
| Accent | 9.13:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 5.44:1 | AA |
| Secondary button | 9.13:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 9.13:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Beneficial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.01 322.149);
--foreground: oklch(0.134 0.041 323.538);
--muted: oklch(0.903 0.05 141.921);
--muted-foreground: oklch(0.495 0.032 141.887);
--popover: oklch(0.981 0.01 322.149);
--popover-foreground: oklch(0.134 0.041 323.538);
--card: oklch(0.981 0.01 322.149);
--card-foreground: oklch(0.134 0.041 323.538);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.558 0.26 322.057);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.731 0.242 141.915);
--secondary-foreground: oklch(0.127 0.036 139.344);
--accent: oklch(0.731 0.242 141.915);
--accent-foreground: oklch(0.127 0.036 139.344);
--destructive: oklch(0.437 0.137 36.962);
--destructive-foreground: oklch(0.915 0.039 39.306);
--ring: oklch(0.558 0.26 322.057);
--chart-1: oklch(0.558 0.26 322.057);
--chart-2: oklch(0.731 0.242 141.915);
--chart-3: oklch(0.731 0.242 141.915);
--chart-4: oklch(0.77 0.256 141.927);
--chart-5: oklch(0.563 0.264 321.964);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.02 323.922);
--foreground: oklch(0.992 0.001 322.116);
--muted: oklch(0.301 0.062 141.456);
--muted-foreground: oklch(0.719 0.029 141.971);
--popover: oklch(0.085 0.02 323.922);
--popover-foreground: oklch(0.992 0.001 322.116);
--card: oklch(0.085 0.02 323.922);
--card-foreground: oklch(0.992 0.001 322.116);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.558 0.26 322.057);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.731 0.242 141.915);
--secondary-foreground: oklch(0.127 0.036 139.344);
--accent: oklch(0.731 0.242 141.915);
--accent-foreground: oklch(0.127 0.036 139.344);
--destructive: oklch(0.622 0.202 36.399);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.558 0.26 322.057);
--chart-1: oklch(0.558 0.26 322.057);
--chart-2: oklch(0.731 0.242 141.915);
--chart-3: oklch(0.731 0.242 141.915);
--chart-4: oklch(0.77 0.256 141.927);
--chart-5: oklch(0.563 0.264 321.964);
}