Wholesaler is a shadcn/ui theme built around a neutral gray primary color (#c5c5c9) with neutral gray accents (#c7c5c9). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the neutral gray primary (#c5c5c9) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #010104black |
| Foreground | #010104black | #ffffffwhite |
| Card | #f8f8fcghostwhite | #020308black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfdwhite | #010104black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #c5c5c9silver | #c5c5c9silver |
| Primary foreground | #2c2c30darkslategray | #2c2c30darkslategray |
| Secondary | #c5c7c9silver | #c5c7c9silver |
| Secondary foreground | #2c2e30darkslategray | #2c2e30darkslategray |
| Muted | #d6dfe5gainsboro | #1a2229black |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #c7c5c9silver | #c7c5c9silver |
| Accent foreground | #2e2c30darkslategray | #2e2c30darkslategray |
| Destructive | #7d1507maroon | #f34f39tomato |
| Destructive foreground | #fbc3bclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c5c5c9silver | #c5c5c9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 4.94:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 20.80:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.37:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Wholesaler in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 283.067);
--foreground: oklch(0.078 0.015 277.802);
--muted: oklch(0.899 0.013 240.484);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.99 0.002 283.067);
--popover-foreground: oklch(0.078 0.015 277.802);
--card: oklch(0.981 0.005 283.025);
--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.824 0.006 282.986);
--primary-foreground: oklch(0.295 0.006 282.746);
--secondary: oklch(0.829 0.004 240.348);
--secondary-foreground: oklch(0.3 0.004 240.473);
--accent: oklch(0.825 0.007 305.634);
--accent-foreground: oklch(0.296 0.007 305.429);
--destructive: oklch(0.383 0.14 31.068);
--destructive-foreground: oklch(0.865 0.066 27.131);
--ring: oklch(0.824 0.006 282.986);
--chart-1: oklch(0.824 0.006 282.986);
--chart-2: oklch(0.829 0.004 240.348);
--chart-3: oklch(0.825 0.007 305.634);
--chart-4: oklch(0.853 0.003 240.338);
--chart-5: oklch(0.821 0.01 282.894);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.014 278.24);
--foreground: oklch(1 0 180);
--muted: oklch(0.247 0.018 241.359);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.079 0.014 278.24);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.017 278.24);
--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.824 0.006 282.986);
--primary-foreground: oklch(0.295 0.006 282.746);
--secondary: oklch(0.829 0.004 240.348);
--secondary-foreground: oklch(0.3 0.004 240.473);
--accent: oklch(0.825 0.007 305.634);
--accent-foreground: oklch(0.296 0.007 305.429);
--destructive: oklch(0.654 0.204 30.702);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.824 0.006 282.986);
--chart-1: oklch(0.824 0.006 282.986);
--chart-2: oklch(0.829 0.004 240.348);
--chart-3: oklch(0.825 0.007 305.634);
--chart-4: oklch(0.853 0.003 240.338);
--chart-5: oklch(0.821 0.01 282.894);
}