Stock-in-trade is a shadcn/ui theme built around a muted violet primary color (#bba8cc) with muted light violet accents (#ccc7d1). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#bba8cc) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #030204black |
| Foreground | #030104black | #ffffffwhite |
| Card | #faf7fcghostwhite | #050307black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #faf7fcghostwhite | #050307black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #bba8ccsilver | #bba8ccsilver |
| Primary foreground | #21192ablack | #21192ablack |
| Secondary | #dbdadcgainsboro | #1c1a1eblack |
| Secondary foreground | #424044darkslategray | #b5afbbsilver |
| Muted | #edeaf0lavender | #120f15black |
| Muted foreground | #483e51darkslategray | #b8aec1silver |
| Accent | #ccc7d1lightgrey | #2e2735darkslategray |
| Accent foreground | #332e38darkslategray | #c7bed0silver |
| Destructive | #722509maroon | #f06533tomato |
| Destructive foreground | #f9c6b3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bba8ccsilver | #bba8ccsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 6.95:1 | AA |
| Text on background | 20.76:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.92:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.61:1 | AA |
Paste this into your globals.css to use Stock-in-trade in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 309.087);
--foreground: oklch(0.079 0.022 311.22);
--muted: oklch(0.942 0.008 309.04);
--muted-foreground: oklch(0.381 0.033 308.206);
--popover: oklch(0.981 0.007 309.048);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.007 309.048);
--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.76 0.054 308.376);
--primary-foreground: oklch(0.231 0.035 307.506);
--secondary: oklch(0.891 0.003 309.089);
--secondary-foreground: oklch(0.376 0.007 308.924);
--accent: oklch(0.837 0.015 308.936);
--accent-foreground: oklch(0.31 0.019 308.472);
--destructive: oklch(0.378 0.115 38.088);
--destructive-foreground: oklch(0.867 0.064 40.92);
--ring: oklch(0.76 0.054 308.376);
--chart-1: oklch(0.76 0.054 308.376);
--chart-2: oklch(0.891 0.003 309.089);
--chart-3: oklch(0.837 0.015 308.936);
--chart-4: oklch(0.914 0.002 309.098);
--chart-5: oklch(0.757 0.061 308.285);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.012 310.228);
--foreground: oklch(1 0 180);
--muted: oklch(0.175 0.012 308.424);
--muted-foreground: oklch(0.766 0.028 308.74);
--popover: oklch(0.106 0.015 310.228);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.106 0.015 310.228);
--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.76 0.054 308.376);
--primary-foreground: oklch(0.231 0.035 307.506);
--secondary: oklch(0.221 0.009 308.687);
--secondary-foreground: oklch(0.763 0.018 308.879);
--accent: oklch(0.286 0.028 308.08);
--accent-foreground: oklch(0.814 0.027 308.78);
--destructive: oklch(0.674 0.182 39.275);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.76 0.054 308.376);
--chart-1: oklch(0.76 0.054 308.376);
--chart-2: oklch(0.221 0.009 308.687);
--chart-3: oklch(0.286 0.028 308.08);
--chart-4: oklch(0.253 0.011 308.652);
--chart-5: oklch(0.757 0.061 308.285);
}