Stiff is a shadcn/ui theme built around a muted light teal primary color (#dce5e3) with muted light cyan accents (#dce2e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#dce5e3) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010403black |
| Foreground | #05100dblack | #f5faf9mintcream |
| Card | #ffffffwhite | #010403black |
| Card foreground | #05100dblack | #f5faf9mintcream |
| Popover | #ffffffwhite | #010403black |
| Popover foreground | #05100dblack | #f5faf9mintcream |
| Primary | #dce5e3gainsboro | #dce5e3gainsboro |
| Primary foreground | #3d524ddarkslategray | #3d524ddarkslategray |
| Secondary | #dce5degainsboro | #dce5degainsboro |
| Secondary foreground | #3d5243darkslategray | #3d5243darkslategray |
| Muted | #d4e8dagainsboro | #172b1dblack |
| Muted foreground | #47574cdarkslategray | #a8b8addarkgray |
| Accent | #dce2e5gainsboro | #dce2e5gainsboro |
| Accent foreground | #3d4c52darkslategray | #3d4c52darkslategray |
| Destructive | #bb3011firebrick | #ea441forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dce5e3gainsboro | #dce5e3gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 6.55:1 | AA |
| Muted text | 5.96:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 5.92:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 6.55:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 3.91: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.159 0.018 179.754);
--muted: oklch(0.912 0.029 154.605);
--muted-foreground: oklch(0.439 0.027 154.008);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.159 0.018 179.754);
--card: oklch(1 0 180);
--card-foreground: oklch(0.159 0.018 179.754);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.914 0.01 181.756);
--primary-foreground: oklch(0.42 0.028 180.104);
--secondary: oklch(0.913 0.013 154.924);
--secondary-foreground: oklch(0.416 0.037 153.443);
--accent: oklch(0.91 0.008 223.219);
--accent-foreground: oklch(0.406 0.022 223.854);
--destructive: oklch(0.523 0.179 33.474);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.914 0.01 181.756);
--chart-1: oklch(0.914 0.01 181.756);
--chart-2: oklch(0.913 0.013 154.924);
--chart-3: oklch(0.91 0.008 223.219);
--chart-4: oklch(0.935 0.01 154.997);
--chart-5: oklch(0.916 0.012 181.694);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.01 181.999);
--foreground: oklch(0.981 0.006 181.91);
--muted: oklch(0.268 0.037 152.259);
--muted-foreground: oklch(0.767 0.024 154.613);
--popover: oklch(0.098 0.01 181.999);
--popover-foreground: oklch(0.981 0.006 181.91);
--card: oklch(0.098 0.01 181.999);
--card-foreground: oklch(0.981 0.006 181.91);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.914 0.01 181.756);
--primary-foreground: oklch(0.42 0.028 180.104);
--secondary: oklch(0.913 0.013 154.924);
--secondary-foreground: oklch(0.416 0.037 153.443);
--accent: oklch(0.91 0.008 223.219);
--accent-foreground: oklch(0.406 0.022 223.854);
--destructive: oklch(0.625 0.208 33.705);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.914 0.01 181.756);
--chart-1: oklch(0.914 0.01 181.756);
--chart-2: oklch(0.913 0.013 154.924);
--chart-3: oklch(0.91 0.008 223.219);
--chart-4: oklch(0.935 0.01 154.997);
--chart-5: oklch(0.916 0.012 181.694);
}