Beneficial is a shadcn/ui theme built around a deep teal primary color (#1f3d3c) with deep blue accents (#1f2f3d). The light mode uses a neutral background (#fbfefd). Dark mode keeps the deep teal primary (#1f3d3c) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #030707black |
| Foreground | #010909black | #f6f9f9whitesmoke |
| Card | #fbfefdwhite | #030707black |
| Card foreground | #010909black | #f6f9f9whitesmoke |
| Popover | #fbfefdwhite | #030707black |
| Popover foreground | #010909black | #f6f9f9whitesmoke |
| Primary | #1f3d3cdarkslategray | #1f3d3cdarkslategray |
| Primary foreground | #b5d9d8lightblue | #b5d9d8lightblue |
| Secondary | #1f3d2ddarkslategray | #1f3d2ddarkslategray |
| Secondary foreground | #b5d9c6silver | #b5d9c6silver |
| Muted | #cee9dagainsboro | #163123darkslategray |
| Muted foreground | #4a5951darkslategray | #a6b5addarkgray |
| Accent | #1f2f3ddarkslategray | #1f2f3ddarkslategray |
| Accent foreground | #b5c8d9lightsteelblue | #b5c8d9lightsteelblue |
| Destructive | #d7260ffirebrick | #ee2a11orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f3d3cdarkslategray | #1f3d3cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 5.04:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Beneficial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 194.746);
--foreground: oklch(0.129 0.018 193.126);
--muted: oklch(0.91 0.035 162.448);
--muted-foreground: oklch(0.449 0.022 162.127);
--popover: oklch(0.994 0.002 194.746);
--popover-foreground: oklch(0.129 0.018 193.126);
--card: oklch(0.994 0.002 194.746);
--card-foreground: oklch(0.129 0.018 193.126);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.335 0.035 192.823);
--primary-foreground: oklch(0.859 0.038 193.978);
--secondary: oklch(0.33 0.045 159.239);
--secondary-foreground: oklch(0.853 0.046 161.998);
--accent: oklch(0.297 0.033 245.602);
--accent-foreground: oklch(0.824 0.032 244.565);
--destructive: oklch(0.566 0.212 30.927);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.335 0.035 192.823);
--chart-1: oklch(0.335 0.035 192.823);
--chart-2: oklch(0.33 0.045 159.239);
--chart-3: oklch(0.297 0.033 245.602);
--chart-4: oklch(0.365 0.052 159.095);
--chart-5: oklch(0.339 0.038 192.691);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.009 193.893);
--foreground: oklch(0.979 0.003 194.731);
--muted: oklch(0.288 0.043 158.768);
--muted-foreground: oklch(0.759 0.02 162.773);
--popover: oklch(0.122 0.009 193.893);
--popover-foreground: oklch(0.979 0.003 194.731);
--card: oklch(0.122 0.009 193.893);
--card-foreground: oklch(0.979 0.003 194.731);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.335 0.035 192.823);
--primary-foreground: oklch(0.859 0.038 193.978);
--secondary: oklch(0.33 0.045 159.239);
--secondary-foreground: oklch(0.853 0.046 161.998);
--accent: oklch(0.297 0.033 245.602);
--accent-foreground: oklch(0.824 0.032 244.565);
--destructive: oklch(0.612 0.231 30.902);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.335 0.035 192.823);
--chart-1: oklch(0.335 0.035 192.823);
--chart-2: oklch(0.33 0.045 159.239);
--chart-3: oklch(0.297 0.033 245.602);
--chart-4: oklch(0.365 0.052 159.095);
--chart-5: oklch(0.339 0.038 192.691);
}