Stiff is a shadcn/ui theme built around a muted indigo primary color (#7679a2) with muted violet accents (#8976a2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#7679a2) on a neutral background (#020308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020308black |
| Foreground | #050615black | #ffffffwhite |
| Card | #ffffffwhite | #020308black |
| Card foreground | #050615black | #ffffffwhite |
| Popover | #ffffffwhite | #020308black |
| Popover foreground | #050615black | #ffffffwhite |
| Primary | #7679a2lightslategray | #7679a2lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #768fa2lightslategray | #768fa2lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e5e8eblavender | #14171ablack |
| Muted foreground | #41484edarkslategray | #b1b8besilver |
| Accent | #8976a2lightslategray | #8976a2lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #882501saddlebrown | #e84002orangered |
| Destructive foreground | #fecfbdpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7679a2lightslategray | #7679a2lightslategray |
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 | 4.15:1 | AA Large |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.57:1 | AAA |
| Accent | 5.20:1 | AA |
| Destructive | 6.40:1 | AA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 4.15:1 | AA Large |
| Secondary button | 6.23:1 | AA |
| Muted text | 8.94:1 | AAA |
| Accent | 5.20:1 | AA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Stiff in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.035 275.999);
--muted: oklch(0.931 0.005 240.358);
--muted-foreground: oklch(0.398 0.013 240.757);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.035 275.999);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.035 275.999);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.59 0.062 281.13);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.638 0.04 241.209);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.601 0.068 304.208);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.42 0.14 36.884);
--destructive-foreground: oklch(0.89 0.059 40.946);
--ring: oklch(0.59 0.062 281.13);
--chart-1: oklch(0.59 0.062 281.13);
--chart-2: oklch(0.638 0.04 241.209);
--chart-3: oklch(0.601 0.068 304.208);
--chart-4: oklch(0.663 0.037 241.098);
--chart-5: oklch(0.583 0.072 280.741);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.019 277.65);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.007 240.793);
--muted-foreground: oklch(0.78 0.011 240.485);
--popover: oklch(0.098 0.019 277.65);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.098 0.019 277.65);
--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.59 0.062 281.13);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.638 0.04 241.209);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.601 0.068 304.208);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.617 0.212 35.587);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.59 0.062 281.13);
--chart-1: oklch(0.59 0.062 281.13);
--chart-2: oklch(0.638 0.04 241.209);
--chart-3: oklch(0.601 0.068 304.208);
--chart-4: oklch(0.663 0.037 241.098);
--chart-5: oklch(0.583 0.072 280.741);
}