Shirt is a shadcn/ui theme built around a deep violet primary color (#1d152e) with deep purple accents (#2a152e). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep violet primary (#1d152e) on a neutral background (#040208).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #040208black |
| Foreground | #06040cblack | #f7f6f8whitesmoke |
| Card | #fcfbfewhite | #040208black |
| Card foreground | #06040cblack | #f7f6f8whitesmoke |
| Popover | #fcfbfewhite | #040208black |
| Popover foreground | #06040cblack | #f7f6f8whitesmoke |
| Primary | #1d152eblack | #1d152eblack |
| Primary foreground | #b2a0d4lightsteelblue | #b2a0d4lightsteelblue |
| Secondary | #15182eblack | #15182eblack |
| Secondary foreground | #a0a8d4lightsteelblue | #a0a8d4lightsteelblue |
| Muted | #e1e3eflavender | #10121eblack |
| Muted foreground | #52576fdimgray | #9094addarkgray |
| Accent | #2a152eblack | #2a152eblack |
| Accent foreground | #cca0d4plum | #cca0d4plum |
| Destructive | #85290asaddlebrown | #f06638tomato |
| Destructive foreground | #fbd3c6peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d152eblack | #1d152eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.65:1 | AA |
Paste this into your globals.css to use Shirt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 302.137);
--foreground: oklch(0.116 0.023 302.678);
--muted: oklch(0.918 0.016 278.061);
--muted-foreground: oklch(0.462 0.041 276.885);
--popover: oklch(0.989 0.005 302.137);
--popover-foreground: oklch(0.116 0.023 302.678);
--card: oklch(0.989 0.005 302.137);
--card-foreground: oklch(0.116 0.023 302.678);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.219 0.049 298.411);
--primary-foreground: oklch(0.74 0.077 300.562);
--secondary: oklch(0.219 0.042 274.779);
--secondary-foreground: oklch(0.74 0.065 276.889);
--accent: oklch(0.236 0.055 321.437);
--accent-foreground: oklch(0.764 0.088 321.296);
--destructive: oklch(0.418 0.132 36.855);
--destructive-foreground: oklch(0.898 0.048 39.277);
--ring: oklch(0.219 0.049 298.411);
--chart-1: oklch(0.219 0.049 298.411);
--chart-2: oklch(0.219 0.042 274.779);
--chart-3: oklch(0.236 0.055 321.437);
--chart-4: oklch(0.245 0.051 274.497);
--chart-5: oklch(0.217 0.053 298.028);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.022 302.932);
--foreground: oklch(0.975 0.003 302.163);
--muted: oklch(0.187 0.024 276.104);
--muted-foreground: oklch(0.671 0.037 277.462);
--popover: oklch(0.099 0.022 302.932);
--popover-foreground: oklch(0.975 0.003 302.163);
--card: oklch(0.099 0.022 302.932);
--card-foreground: oklch(0.975 0.003 302.163);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.219 0.049 298.411);
--primary-foreground: oklch(0.74 0.077 300.562);
--secondary: oklch(0.219 0.042 274.779);
--secondary-foreground: oklch(0.74 0.065 276.889);
--accent: oklch(0.236 0.055 321.437);
--accent-foreground: oklch(0.764 0.088 321.296);
--destructive: oklch(0.676 0.181 38.309);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.219 0.049 298.411);
--chart-1: oklch(0.219 0.049 298.411);
--chart-2: oklch(0.219 0.042 274.779);
--chart-3: oklch(0.236 0.055 321.437);
--chart-4: oklch(0.245 0.051 274.497);
--chart-5: oklch(0.217 0.053 298.028);
}