Beneficial is a shadcn/ui theme built around a vivid light yellow primary color (#fcec9c) with muted light yellow accents (#e5e3dc). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid light yellow primary (#fcec9c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #000000black |
| Foreground | #161303black | #f9f9f6whitesmoke |
| Card | #fefefbwhite | #000000black |
| Card foreground | #161303black | #f9f9f6whitesmoke |
| Popover | #fefefbwhite | #000000black |
| Popover foreground | #161303black | #f9f9f6whitesmoke |
| Primary | #fcec9cpalegoldenrod | #fcec9cpalegoldenrod |
| Primary foreground | #635303saddlebrown | #635303saddlebrown |
| Secondary | #e5e3dcgainsboro | #39372ddarkslategray |
| Secondary foreground | #524f3ddarkolivegreen | #d2d0c6lightgrey |
| Muted | #e5e1cdgainsboro | #322e1adarkslategray |
| Muted foreground | #4d4b42darkslategray | #bdbbb2silver |
| Accent | #e5e3dcgainsboro | #39372ddarkslategray |
| Accent foreground | #524f3ddarkolivegreen | #d2d0c6lightgrey |
| Destructive | #c32104firebrick | #fa3714orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcec9cpalegoldenrod | #fcec9cpalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.37:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 6.65:1 | AA |
| Accent | 6.44:1 | AA |
| Destructive | 5.94:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Beneficial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 97.313);
--foreground: oklch(0.186 0.031 99.361);
--muted: oklch(0.907 0.028 97.643);
--muted-foreground: oklch(0.412 0.016 97.728);
--popover: oklch(0.996 0.004 97.313);
--popover-foreground: oklch(0.186 0.031 99.361);
--card: oklch(0.996 0.004 97.313);
--card-foreground: oklch(0.186 0.031 99.361);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.939 0.102 98.271);
--primary-foreground: oklch(0.446 0.091 95.854);
--secondary: oklch(0.916 0.01 97.409);
--secondary-foreground: oklch(0.424 0.029 98.02);
--accent: oklch(0.916 0.01 97.409);
--accent-foreground: oklch(0.424 0.029 98.02);
--destructive: oklch(0.526 0.199 31.619);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0.102 98.271);
--chart-1: oklch(0.939 0.102 98.271);
--chart-2: oklch(0.916 0.01 97.409);
--chart-3: oklch(0.916 0.01 97.409);
--chart-4: oklch(0.937 0.008 97.37);
--chart-5: oklch(0.942 0.105 98.279);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.004 97.315);
--muted: oklch(0.301 0.034 98.283);
--muted-foreground: oklch(0.792 0.013 97.48);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.98 0.004 97.315);
--card: oklch(0 0 0);
--card-foreground: oklch(0.98 0.004 97.315);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.939 0.102 98.271);
--primary-foreground: oklch(0.446 0.091 95.854);
--secondary: oklch(0.336 0.017 97.878);
--secondary-foreground: oklch(0.857 0.014 97.474);
--accent: oklch(0.336 0.017 97.878);
--accent-foreground: oklch(0.857 0.014 97.474);
--destructive: oklch(0.641 0.234 31.957);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.939 0.102 98.271);
--chart-1: oklch(0.939 0.102 98.271);
--chart-2: oklch(0.336 0.017 97.878);
--chart-3: oklch(0.336 0.017 97.878);
--chart-4: oklch(0.368 0.02 97.892);
--chart-5: oklch(0.942 0.105 98.279);
}