Apparel is a shadcn/ui theme built around a muted deep red primary color (#382e2f) with muted deep teal accents (#2e3837). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#382e2f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #110405black | #fdfcfcsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #110405black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #110405black | #fdfcfcsnow |
| Primary | #382e2fdarkslategray | #382e2fdarkslategray |
| Primary foreground | #d1c7c8lightgrey | #d1c7c8lightgrey |
| Secondary | #2e3837darkslategray | #2e3837darkslategray |
| Secondary foreground | #c7d1d0lightgrey | #c7d1d0lightgrey |
| Muted | #ecf3f2whitesmoke | #0c1312black |
| Muted foreground | #4f5f5cdimgray | #a0b0aedarkgray |
| Accent | #2e3837darkslategray | #2e3837darkslategray |
| Accent foreground | #c7d1d0lightgrey | #c7d1d0lightgrey |
| Destructive | #d11f00firebrick | #f02400orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #382e2fdarkslategray | #382e2fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 5.36:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 8.34:1 | AAA |
| Accent | 7.74:1 | AAA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Apparel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.028 10.047);
--muted: oklch(0.959 0.008 187.554);
--muted-foreground: oklch(0.47 0.019 186.702);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.028 10.047);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.028 10.047);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.312 0.015 8.918);
--primary-foreground: oklch(0.838 0.012 8.085);
--secondary: oklch(0.331 0.014 186.689);
--secondary-foreground: oklch(0.853 0.011 187.423);
--accent: oklch(0.331 0.014 186.689);
--accent-foreground: oklch(0.853 0.011 187.423);
--destructive: oklch(0.551 0.212 31.455);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.312 0.015 8.918);
--chart-1: oklch(0.312 0.015 8.918);
--chart-2: oklch(0.331 0.014 186.689);
--chart-3: oklch(0.331 0.014 186.689);
--chart-4: oklch(0.362 0.016 186.66);
--chart-5: oklch(0.31 0.02 9.294);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 7.773);
--muted: oklch(0.178 0.011 186.164);
--muted-foreground: oklch(0.745 0.018 187.159);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 7.773);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 7.773);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.312 0.015 8.918);
--primary-foreground: oklch(0.838 0.012 8.085);
--secondary: oklch(0.331 0.014 186.689);
--secondary-foreground: oklch(0.853 0.011 187.423);
--accent: oklch(0.331 0.014 186.689);
--accent-foreground: oklch(0.853 0.011 187.423);
--destructive: oklch(0.61 0.236 31.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.312 0.015 8.918);
--chart-1: oklch(0.312 0.015 8.918);
--chart-2: oklch(0.331 0.014 186.689);
--chart-3: oklch(0.331 0.014 186.689);
--chart-4: oklch(0.362 0.016 186.66);
--chart-5: oklch(0.31 0.02 9.294);
}