Lavish is a shadcn/ui theme built around a muted purple primary color (#b58ebe) with muted green accents (#96be8e). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the muted purple primary (#b58ebe) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #000000black |
| Foreground | #040104black | #f8f6f9whitesmoke |
| Card | #fbf8fcghostwhite | #030303black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #fdfbfdsnow | #000000black |
| Popover foreground | #040104black | #f8f6f9whitesmoke |
| Primary | #b58ebedarkgray | #b58ebedarkgray |
| Primary foreground | #0f0910black | #0f0910black |
| Secondary | #96be8edarkseagreen | #96be8edarkseagreen |
| Secondary foreground | #0b1009black | #0b1009black |
| Muted | #e7eae6linen | #151915black |
| Muted foreground | #51664ddarkolivegreen | #9eb299darkseagreen |
| Accent | #96be8edarkseagreen | #96be8edarkseagreen |
| Accent foreground | #0b1009black | #0b1009black |
| Destructive | #5d1309maroon | #ea331aorangered |
| Destructive foreground | #f6aca2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b58ebedarkgray | #b58ebedarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 9.19:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 9.19:1 | AAA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 9.19:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 9.19:1 | AAA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Lavish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 319.994);
--foreground: oklch(0.082 0.026 322.512);
--muted: oklch(0.934 0.007 139.984);
--muted-foreground: oklch(0.485 0.046 139.918);
--popover: oklch(0.991 0.003 319.994);
--popover-foreground: oklch(0.082 0.026 322.512);
--card: oklch(0.982 0.006 319.997);
--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.699 0.082 320.083);
--primary-foreground: oklch(0.152 0.017 320.093);
--secondary: oklch(0.76 0.08 139.914);
--secondary-foreground: oklch(0.165 0.017 139.872);
--accent: oklch(0.76 0.08 139.914);
--accent-foreground: oklch(0.165 0.017 139.872);
--destructive: oklch(0.317 0.109 31.023);
--destructive-foreground: oklch(0.812 0.09 27.564);
--ring: oklch(0.699 0.082 320.083);
--chart-1: oklch(0.699 0.082 320.083);
--chart-2: oklch(0.76 0.08 139.914);
--chart-3: oklch(0.76 0.08 139.914);
--chart-4: oklch(0.78 0.072 139.919);
--chart-5: oklch(0.696 0.091 320.089);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.004 319.995);
--muted: oklch(0.209 0.011 139.947);
--muted-foreground: oklch(0.742 0.042 139.942);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.004 319.995);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.003 319.994);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.699 0.082 320.083);
--primary-foreground: oklch(0.152 0.017 320.093);
--secondary: oklch(0.76 0.08 139.914);
--secondary-foreground: oklch(0.165 0.017 139.872);
--accent: oklch(0.76 0.08 139.914);
--accent-foreground: oklch(0.165 0.017 139.872);
--destructive: oklch(0.609 0.221 31.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.699 0.082 320.083);
--chart-1: oklch(0.699 0.082 320.083);
--chart-2: oklch(0.76 0.08 139.914);
--chart-3: oklch(0.76 0.08 139.914);
--chart-4: oklch(0.78 0.072 139.919);
--chart-5: oklch(0.696 0.091 320.089);
}