Bestseller is a shadcn/ui theme built around a muted violet primary color (#b8a6c5) with muted light violet accents (#d2ccd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#b8a6c5) on a violet-tinted background (#0b0410).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0410black |
| Foreground | #0b0410black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0e0514black |
| Card foreground | #09030cblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #0e0514black |
| Popover foreground | #09030cblack | #ffffffwhite |
| Primary | #b8a6c5silver | #b8a6c5silver |
| Primary foreground | #1d1622black | #1d1622black |
| Secondary | #e3e3e3gainsboro | #1a181bblack |
| Secondary foreground | #4a494bdarkslategray | #b4adb8darkgray |
| Muted | #f0eef1whitesmoke | #100e11black |
| Muted foreground | #4c4153darkslategray | #b7acbesilver |
| Accent | #d2ccd6lightgrey | #2c2631darkslategray |
| Accent foreground | #39323edarkslategray | #c6bdccsilver |
| Destructive | #db0e0ared | #f52724crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8a6c5silver | #b8a6c5silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 8.32:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 5.14:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 8.85:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Bestseller in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.031 312.428);
--muted: oklch(0.952 0.005 312.319);
--muted-foreground: oklch(0.393 0.032 311.746);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.118 0.027 313.951);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.118 0.027 313.951);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.75 0.048 311.88);
--primary-foreground: oklch(0.215 0.025 311.492);
--secondary: oklch(0.915 0.001 312.351);
--secondary-foreground: oklch(0.408 0.003 312.309);
--accent: oklch(0.853 0.015 312.225);
--accent-foreground: oklch(0.33 0.024 311.828);
--destructive: oklch(0.564 0.226 29.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.75 0.048 311.88);
--chart-1: oklch(0.75 0.048 311.88);
--chart-2: oklch(0.915 0.001 312.351);
--chart-3: oklch(0.853 0.015 312.225);
--chart-4: oklch(0.939 0.001 312.353);
--chart-5: oklch(0.746 0.055 311.809);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.032 312.445);
--foreground: oklch(0.992 0.001 312.353);
--muted: oklch(0.166 0.008 312.016);
--muted-foreground: oklch(0.759 0.028 312.088);
--popover: oklch(0.142 0.036 311.335);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.036 311.335);
--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.75 0.048 311.88);
--primary-foreground: oklch(0.215 0.025 311.492);
--secondary: oklch(0.212 0.008 312.09);
--secondary-foreground: oklch(0.757 0.017 312.194);
--accent: oklch(0.28 0.022 311.763);
--accent-foreground: oklch(0.81 0.023 312.144);
--destructive: oklch(0.622 0.236 28.167);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.75 0.048 311.88);
--chart-1: oklch(0.75 0.048 311.88);
--chart-2: oklch(0.212 0.008 312.09);
--chart-3: oklch(0.28 0.022 311.763);
--chart-4: oklch(0.244 0.01 312.066);
--chart-5: oklch(0.746 0.055 311.809);
}