Well-off is a shadcn/ui theme built around a vivid deep purple primary color (#51054c) with vivid deep teal accents (#054c51). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#51054c) on a neutral background (#040203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040203black |
| Foreground | #0c040bblack | #faf5f9whitesmoke |
| Card | #ffffffwhite | #040203black |
| Card foreground | #0c040bblack | #faf5f9whitesmoke |
| Popover | #ffffffwhite | #040203black |
| Popover foreground | #0c040bblack | #faf5f9whitesmoke |
| Primary | #51054cindigo | #51054cindigo |
| Primary foreground | #f891f1violet | #f891f1violet |
| Secondary | #4c5105darkolivegreen | #4c5105darkolivegreen |
| Secondary foreground | #e5f231yellow | #e5f231yellow |
| Muted | #f1f2e3beige | #1b1c0dblack |
| Muted foreground | #4d4e3bdarkolivegreen | #c3c4b1silver |
| Accent | #054c51darkslategray | #054c51darkslategray |
| Accent foreground | #31e5f2turquoise | #31e5f2turquoise |
| Destructive | #6e1708maroon | #f04628orangered |
| Destructive foreground | #f9b9aelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #51054cindigo | #51054cindigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 6.81:1 | AA |
| Muted text | 7.53:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 7.05:1 | AAA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 6.81:1 | AA |
| Muted text | 9.71:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Well-off in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.027 329.012);
--muted: oklch(0.957 0.02 109.874);
--muted-foreground: oklch(0.419 0.031 110.806);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.027 329.012);
--card: oklch(1 0 180);
--card-foreground: oklch(0.125 0.027 329.012);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.307 0.132 331.484);
--primary-foreground: oklch(0.796 0.171 329.473);
--secondary: oklch(0.418 0.091 113.886);
--secondary-foreground: oklch(0.921 0.195 113.685);
--accent: oklch(0.382 0.063 202.771);
--accent-foreground: oklch(0.843 0.136 202.529);
--destructive: oklch(0.354 0.123 32.308);
--destructive-foreground: oklch(0.842 0.077 30.067);
--ring: oklch(0.307 0.132 331.484);
--chart-1: oklch(0.307 0.132 331.484);
--chart-2: oklch(0.418 0.091 113.886);
--chart-3: oklch(0.382 0.063 202.771);
--chart-4: oklch(0.468 0.102 113.972);
--chart-5: oklch(0.309 0.135 331.555);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.014 328.521);
--foreground: oklch(0.975 0.007 327.618);
--muted: oklch(0.221 0.028 111.738);
--muted-foreground: oklch(0.813 0.026 110.077);
--popover: oklch(0.088 0.014 328.521);
--popover-foreground: oklch(0.975 0.007 327.618);
--card: oklch(0.088 0.014 328.521);
--card-foreground: oklch(0.975 0.007 327.618);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.307 0.132 331.484);
--primary-foreground: oklch(0.796 0.171 329.473);
--secondary: oklch(0.418 0.091 113.886);
--secondary-foreground: oklch(0.921 0.195 113.685);
--accent: oklch(0.382 0.063 202.771);
--accent-foreground: oklch(0.843 0.136 202.529);
--destructive: oklch(0.638 0.211 32.368);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.307 0.132 331.484);
--chart-1: oklch(0.307 0.132 331.484);
--chart-2: oklch(0.418 0.091 113.886);
--chart-3: oklch(0.382 0.063 202.771);
--chart-4: oklch(0.468 0.102 113.972);
--chart-5: oklch(0.309 0.135 331.555);
}