Resale is a shadcn/ui theme built around a muted purple primary color (#9b6992) with muted green accents (#699b72). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#9b6992) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #11030fblack | #fdfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0d020bblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #0d020bblack | #ffffffwhite |
| Primary | #9b6992gray | #9b6992gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #699b72gray | #699b72gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #d5ddd6gainsboro | #222a24darkslategray |
| Muted foreground | #585a59dimgray | #a5a7a5darkgray |
| Accent | #699b72gray | #699b72gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #bc3915firebrick | #e6461aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9b6992gray | #9b6992gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 4.34:1 | AA Large |
| Secondary button | 6.53:1 | AA |
| Muted text | 5.00:1 | AA |
| Accent | 6.53:1 | AA |
| Destructive | 5.61:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.34:1 | AA Large |
| Secondary button | 6.53:1 | AA |
| Muted text | 6.05:1 | AA |
| Accent | 6.53:1 | AA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Resale in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.039 333.968);
--muted: oklch(0.889 0.013 151.197);
--muted-foreground: oklch(0.466 0.003 151.308);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.121 0.034 333.14);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.034 333.14);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.587 0.085 333.33);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.643 0.081 149.405);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.643 0.081 149.405);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.535 0.174 35.218);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.587 0.085 333.33);
--chart-1: oklch(0.587 0.085 333.33);
--chart-2: oklch(0.643 0.081 149.405);
--chart-3: oklch(0.643 0.081 149.405);
--chart-4: oklch(0.665 0.076 149.62);
--chart-5: oklch(0.586 0.098 333.602);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.003 331.446);
--muted: oklch(0.276 0.017 150.476);
--muted-foreground: oklch(0.725 0.003 151.35);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.587 0.085 333.33);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.643 0.081 149.405);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.643 0.081 149.405);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.619 0.203 35.078);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.587 0.085 333.33);
--chart-1: oklch(0.587 0.085 333.33);
--chart-2: oklch(0.643 0.081 149.405);
--chart-3: oklch(0.643 0.081 149.405);
--chart-4: oklch(0.665 0.076 149.62);
--chart-5: oklch(0.586 0.098 333.602);
}