Wealthy is a shadcn/ui theme built around a vivid red primary color (#eb0a28) with muted light red accents (#d4b5b9). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid red primary (#eb0a28) on a neutral background (#080203).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #080203black |
| Foreground | #040102black | #fdfcfcsnow |
| Card | #faf4f5whitesmoke | #0c0405black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8f8snow | #080203black |
| Popover foreground | #040102black | #fdfcfcsnow |
| Primary | #eb0a28crimson | #eb0a28crimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #decfd1lightgrey | #151414black |
| Secondary foreground | #483235darkslategray | #b0abacdarkgray |
| Muted | #ead7dagainsboro | #281518black |
| Muted foreground | #70575adimgray | #a88f92rosybrown |
| Accent | #d4b5b9silver | #2b2223darkslategray |
| Accent foreground | #372023darkslategray | #c7b8basilver |
| Destructive | #db4d00orangered | #ff772etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eb0a28crimson | #eb0a28crimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 4.55:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 4.76:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.13:1 | AA Large |
| Text on background | 20.06:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 4.55:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 8.13:1 | AAA |
| Destructive | 7.93:1 | AAA |
Paste this into your globals.css to use Wealthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 7.859);
--foreground: oklch(0.084 0.013 8.58);
--muted: oklch(0.895 0.021 8.308);
--muted-foreground: oklch(0.483 0.035 9.491);
--popover: oklch(0.982 0.004 7.859);
--popover-foreground: oklch(0.084 0.013 8.58);
--card: oklch(0.973 0.007 7.916);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.594 0.238 25.219);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.867 0.017 8.214);
--secondary-foreground: oklch(0.344 0.032 10.041);
--accent: oklch(0.801 0.036 8.825);
--accent-foreground: oklch(0.274 0.035 10.94);
--destructive: oklch(0.609 0.19 40.231);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.594 0.238 25.219);
--chart-1: oklch(0.594 0.238 25.219);
--chart-2: oklch(0.867 0.017 8.214);
--chart-3: oklch(0.801 0.036 8.825);
--chart-4: oklch(0.892 0.013 8.113);
--chart-5: oklch(0.6 0.242 25.687);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.017 8.627);
--foreground: oklch(0.992 0.001 7.779);
--muted: oklch(0.224 0.03 11.113);
--muted-foreground: oklch(0.673 0.031 8.884);
--popover: oklch(0.105 0.017 8.627);
--popover-foreground: oklch(0.992 0.001 7.779);
--card: oklch(0.121 0.019 8.731);
--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.594 0.238 25.219);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.192 0.002 8.003);
--secondary-foreground: oklch(0.745 0.006 7.935);
--accent: oklch(0.262 0.014 9.067);
--accent-foreground: oklch(0.795 0.018 8.289);
--destructive: oklch(0.72 0.185 45.05);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.594 0.238 25.219);
--chart-1: oklch(0.594 0.238 25.219);
--chart-2: oklch(0.192 0.002 8.003);
--chart-3: oklch(0.262 0.014 9.067);
--chart-4: oklch(0.225 0.003 8.036);
--chart-5: oklch(0.6 0.242 25.687);
}