Stiff is a shadcn/ui theme built around a vivid green primary color (#90f183) with vivid red accents (#f18390). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#90f183) on a neutral background (#030802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030802black |
| Foreground | #010401black | #f9fbf8mintcream |
| Card | #ffffffwhite | #030802black |
| Card foreground | #010401black | #f9fbf8mintcream |
| Popover | #ffffffwhite | #030802black |
| Popover foreground | #010401black | #f9fbf8mintcream |
| Primary | #90f183lightgreen | #90f183lightgreen |
| Primary foreground | #0d3c07darkgreen | #0d3c07darkgreen |
| Secondary | #8390f1cornflowerblue | #8390f1cornflowerblue |
| Secondary foreground | #070d3cmidnightblue | #070d3cmidnightblue |
| Muted | #eaebf6lavender | #090b15black |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #f18390lightcoral | #f18390lightcoral |
| Accent foreground | #3c070dblack | #3c070dblack |
| Destructive | #e00700red | #ff0800red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #90f183lightgreen | #90f183lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 9.07:1 | AAA |
| Secondary button | 6.38:1 | AA |
| Muted text | 5.21:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 4.98:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 9.07:1 | AAA |
| Secondary button | 6.38:1 | AA |
| Muted text | 7.33:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 3.97: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.099 0.021 140.074);
--muted: oklch(0.942 0.015 280.085);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.099 0.021 140.074);
--card: oklch(1 0 180);
--card-foreground: oklch(0.099 0.021 140.074);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.873 0.173 141.476);
--primary-foreground: oklch(0.312 0.095 141.432);
--secondary: oklch(0.685 0.143 276.242);
--secondary-foreground: oklch(0.194 0.089 269.262);
--accent: oklch(0.735 0.135 13.553);
--accent-foreground: oklch(0.234 0.081 20.024);
--destructive: oklch(0.572 0.232 29.538);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.873 0.173 141.476);
--chart-1: oklch(0.873 0.173 141.476);
--chart-2: oklch(0.685 0.143 276.242);
--chart-3: oklch(0.735 0.135 13.553);
--chart-4: oklch(0.72 0.126 277.005);
--chart-5: oklch(0.877 0.178 141.464);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.021 140.51);
--foreground: oklch(0.987 0.005 142.095);
--muted: oklch(0.152 0.023 277.415);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.123 0.021 140.51);
--popover-foreground: oklch(0.987 0.005 142.095);
--card: oklch(0.123 0.021 140.51);
--card-foreground: oklch(0.987 0.005 142.095);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.873 0.173 141.476);
--primary-foreground: oklch(0.312 0.095 141.432);
--secondary: oklch(0.685 0.143 276.242);
--secondary-foreground: oklch(0.194 0.089 269.262);
--accent: oklch(0.735 0.135 13.553);
--accent-foreground: oklch(0.234 0.081 20.024);
--destructive: oklch(0.629 0.256 29.493);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.873 0.173 141.476);
--chart-1: oklch(0.873 0.173 141.476);
--chart-2: oklch(0.685 0.143 276.242);
--chart-3: oklch(0.735 0.135 13.553);
--chart-4: oklch(0.72 0.126 277.005);
--chart-5: oklch(0.877 0.178 141.464);
}