Lavish is a shadcn/ui theme built around a neutral gray primary color (#948493) with muted light purple accents (#d8bbd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#948493) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a050ablack |
| Foreground | #0c040bblack | #f8f6f8whitesmoke |
| Card | #ffffffwhite | #0a050ablack |
| Card foreground | #0c040bblack | #f8f6f8whitesmoke |
| Popover | #ffffffwhite | #0a050ablack |
| Popover foreground | #0c040bblack | #f8f6f8whitesmoke |
| Primary | #948493gray | #948493gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #e7dae6gainsboro | #2d242ddarkslategray |
| Secondary foreground | #563954darkslategray | #c9bbc8silver |
| Muted | #ece9eclavender | #161316black |
| Muted foreground | #685067dimgray | #af97aedarkgray |
| Accent | #d8bbd6thistle | #422f41darkslategray |
| Accent foreground | #3e233cdarkslategray | #d9c9d8thistle |
| Destructive | #81100emaroon | #ea413etomato |
| Destructive foreground | #f9c9c8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #948493gray | #948493gray |
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.00:1 | AA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Lavish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.027 328.491);
--muted: oklch(0.937 0.006 327.098);
--muted-foreground: oklch(0.464 0.047 327.929);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.027 328.491);
--card: oklch(1 0 180);
--card-foreground: oklch(0.125 0.027 328.491);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.633 0.029 327.457);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.902 0.02 327.246);
--secondary-foreground: oklch(0.388 0.058 328.33);
--accent: oklch(0.825 0.049 327.576);
--accent-foreground: oklch(0.302 0.056 328.623);
--destructive: oklch(0.387 0.146 28.086);
--destructive-foreground: oklch(0.877 0.055 19.39);
--ring: oklch(0.633 0.029 327.457);
--chart-1: oklch(0.633 0.029 327.457);
--chart-2: oklch(0.902 0.02 327.246);
--chart-3: oklch(0.825 0.049 327.576);
--chart-4: oklch(0.927 0.015 327.189);
--chart-5: oklch(0.631 0.042 327.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.016 327.849);
--foreground: oklch(0.976 0.004 327.072);
--muted: oklch(0.191 0.009 327.467);
--muted-foreground: oklch(0.706 0.042 327.578);
--popover: oklch(0.128 0.016 327.849);
--popover-foreground: oklch(0.976 0.004 327.072);
--card: oklch(0.128 0.016 327.849);
--card-foreground: oklch(0.976 0.004 327.072);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.633 0.029 327.457);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.275 0.02 327.691);
--secondary-foreground: oklch(0.807 0.023 327.3);
--accent: oklch(0.333 0.041 328.103);
--accent-foreground: oklch(0.854 0.026 327.321);
--destructive: oklch(0.624 0.206 26.243);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.633 0.029 327.457);
--chart-1: oklch(0.633 0.029 327.457);
--chart-2: oklch(0.275 0.02 327.691);
--chart-3: oklch(0.333 0.041 328.103);
--chart-4: oklch(0.305 0.023 327.718);
--chart-5: oklch(0.631 0.042 327.633);
}