Fashion is a shadcn/ui theme built around a neutral gray primary color (#2a292e) with neutral gray accents (#d1d0d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#2a292e) on an indigo-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06050bblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #06050bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #06050bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #2a292edarkslategray | #2a292edarkslategray |
| Primary foreground | #c2c1c8silver | #c2c1c8silver |
| Secondary | #d1d0d2lightgrey | #1c1c1cblack |
| Secondary foreground | #373739darkslategray | #b5b4b6silver |
| Muted | #dedce5gainsboro | #1c1a23black |
| Muted foreground | #606062dimgray | #9e9d9fdarkgray |
| Accent | #d1d0d2lightgrey | #1c1c1cblack |
| Accent foreground | #373739darkslategray | #b5b4b6silver |
| Destructive | #612405maroon | #f56d29tomato |
| Destructive foreground | #fabd9elightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a292edarkslategray | #2a292edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 4.62:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 7.28:1 | AAA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 8.10:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 7.08:1 | AAA |
Paste this into your globals.css to use Fashion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.899 0.012 296.092);
--muted-foreground: oklch(0.49 0.003 296.216);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.283 0.01 295.714);
--primary-foreground: oklch(0.814 0.01 296.109);
--secondary: oklch(0.859 0.003 296.277);
--secondary-foreground: oklch(0.338 0.004 296.119);
--accent: oklch(0.859 0.003 296.277);
--accent-foreground: oklch(0.338 0.004 296.119);
--destructive: oklch(0.346 0.098 42.698);
--destructive-foreground: oklch(0.846 0.083 47.715);
--ring: oklch(0.283 0.01 295.714);
--chart-1: oklch(0.283 0.01 295.714);
--chart-2: oklch(0.859 0.003 296.277);
--chart-3: oklch(0.859 0.003 296.277);
--chart-4: oklch(0.883 0.002 296.287);
--chart-5: oklch(0.28 0.014 295.386);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.017 295.817);
--foreground: oklch(1 0 180);
--muted: oklch(0.225 0.017 294.959);
--muted-foreground: oklch(0.697 0.003 296.257);
--popover: oklch(0.119 0.017 295.817);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.017 295.817);
--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.283 0.01 295.714);
--primary-foreground: oklch(0.814 0.01 296.109);
--secondary: oklch(0.226 0.001 296.243);
--secondary-foreground: oklch(0.772 0.002 296.281);
--accent: oklch(0.226 0.001 296.243);
--accent-foreground: oklch(0.772 0.002 296.281);
--destructive: oklch(0.691 0.184 43.442);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.283 0.01 295.714);
--chart-1: oklch(0.283 0.01 295.714);
--chart-2: oklch(0.226 0.001 296.243);
--chart-3: oklch(0.226 0.001 296.243);
--chart-4: oklch(0.258 0.001 296.236);
--chart-5: oklch(0.28 0.014 295.386);
}