Beneficial is a shadcn/ui theme built around a vivid deep indigo primary color (#0d052e) with vivid deep violet accents (#22052e). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid deep indigo primary (#0d052e) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #06050ablack |
| Foreground | #030109black | #ffffffwhite |
| Card | #fcfcfdwhite | #06050ablack |
| Card foreground | #030109black | #ffffffwhite |
| Popover | #fcfcfdwhite | #06050ablack |
| Popover foreground | #030109black | #ffffffwhite |
| Primary | #0d052eblack | #0d052eblack |
| Primary foreground | #d9d1falavender | #d9d1falavender |
| Secondary | #05112eblack | #05112eblack |
| Secondary foreground | #759af0cornflowerblue | #759af0cornflowerblue |
| Muted | #e4e5e7gainsboro | #18191bblack |
| Muted foreground | #434956darkslategray | #a9afbcdarkgray |
| Accent | #22052eblack | #22052eblack |
| Accent foreground | #cb75f0orchid | #cb75f0orchid |
| Destructive | #862403darkred | #f9470borangered |
| Destructive foreground | #fdcebepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d052eblack | #0d052eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 13.39:1 | AAA |
| Secondary button | 6.76:1 | AA |
| Muted text | 7.15:1 | AAA |
| Accent | 6.50:1 | AA |
| Destructive | 6.48:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 13.39:1 | AAA |
| Secondary button | 6.76:1 | AA |
| Muted text | 8.00:1 | AAA |
| Accent | 6.50:1 | AA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Beneficial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 295.537);
--foreground: oklch(0.089 0.03 293.906);
--muted: oklch(0.921 0.003 267.401);
--muted-foreground: oklch(0.404 0.025 266.955);
--popover: oklch(0.991 0.002 295.537);
--popover-foreground: oklch(0.089 0.03 293.906);
--card: oklch(0.991 0.002 295.537);
--card-foreground: oklch(0.089 0.03 293.906);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.166 0.077 284.188);
--primary-foreground: oklch(0.88 0.056 294.384);
--secondary: oklch(0.188 0.06 263.152);
--secondary-foreground: oklch(0.696 0.133 265.512);
--accent: oklch(0.196 0.081 313.725);
--accent-foreground: oklch(0.705 0.19 314.84);
--destructive: oklch(0.415 0.138 36.214);
--destructive-foreground: oklch(0.889 0.058 39.253);
--ring: oklch(0.166 0.077 284.188);
--chart-1: oklch(0.166 0.077 284.188);
--chart-2: oklch(0.188 0.06 263.152);
--chart-3: oklch(0.196 0.081 313.725);
--chart-4: oklch(0.216 0.075 263.499);
--chart-5: oklch(0.165 0.08 283.637);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.012 295.132);
--foreground: oklch(1 0 180);
--muted: oklch(0.213 0.004 267.288);
--muted-foreground: oklch(0.752 0.021 267.236);
--popover: oklch(0.122 0.012 295.132);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.012 295.132);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.166 0.077 284.188);
--primary-foreground: oklch(0.88 0.056 294.384);
--secondary: oklch(0.188 0.06 263.152);
--secondary-foreground: oklch(0.696 0.133 265.512);
--accent: oklch(0.196 0.081 313.725);
--accent-foreground: oklch(0.705 0.19 314.84);
--destructive: oklch(0.651 0.222 35.459);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.166 0.077 284.188);
--chart-1: oklch(0.166 0.077 284.188);
--chart-2: oklch(0.188 0.06 263.152);
--chart-3: oklch(0.196 0.081 313.725);
--chart-4: oklch(0.216 0.075 263.499);
--chart-5: oklch(0.165 0.08 283.637);
}