Rigid is a shadcn/ui theme built around a muted green primary color (#b1bb95) with muted violet accents (#9f95bb). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#b1bb95) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #111603black | #ffffffwhite |
| Card | #fbfcf8snow | #030303black |
| Card foreground | #0e1203black | #ffffffwhite |
| Popover | #fbfcf8snow | #030303black |
| Popover foreground | #0e1203black | #ffffffwhite |
| Primary | #b1bb95darkgray | #b1bb95darkgray |
| Primary foreground | #11130cblack | #11130cblack |
| Secondary | #9f95bbdarkgray | #9f95bbdarkgray |
| Secondary foreground | #0e0c13black | #0e0c13black |
| Muted | #e8e6f0lavender | #120f1ablack |
| Muted foreground | #424243darkslategray | #bcbcbdsilver |
| Accent | #9f95bbdarkgray | #9f95bbdarkgray |
| Accent foreground | #0e0c13black | #0e0c13black |
| Destructive | #972a02saddlebrown | #e84002orangered |
| Destructive foreground | #fedacdbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1bb95darkgray | #b1bb95darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.16:1 | AAA |
| Text on card | 18.44:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 8.10:1 | AAA |
| Accent | 6.95:1 | AA |
| Destructive | 6.08:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 9.96:1 | AAA |
| Accent | 6.95:1 | AA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Rigid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 118.623);
--foreground: oklch(0.19 0.037 121.447);
--muted: oklch(0.928 0.014 298.304);
--muted-foreground: oklch(0.379 0.002 298.462);
--popover: oklch(0.99 0.006 118.68);
--popover-foreground: oklch(0.171 0.033 120.625);
--card: oklch(0.99 0.006 118.68);
--card-foreground: oklch(0.171 0.033 120.625);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.775 0.054 119.788);
--primary-foreground: oklch(0.181 0.014 119.897);
--secondary: oklch(0.692 0.056 297.125);
--secondary-foreground: oklch(0.16 0.014 296.97);
--accent: oklch(0.692 0.056 297.125);
--accent-foreground: oklch(0.16 0.014 296.97);
--destructive: oklch(0.452 0.152 36.565);
--destructive-foreground: oklch(0.915 0.045 41.011);
--ring: oklch(0.775 0.054 119.788);
--chart-1: oklch(0.775 0.054 119.788);
--chart-2: oklch(0.692 0.056 297.125);
--chart-3: oklch(0.692 0.056 297.125);
--chart-4: oklch(0.721 0.051 297.32);
--chart-5: oklch(0.781 0.06 119.941);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.021 296.44);
--muted-foreground: oklch(0.796 0.002 298.525);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.775 0.054 119.788);
--primary-foreground: oklch(0.181 0.014 119.897);
--secondary: oklch(0.692 0.056 297.125);
--secondary-foreground: oklch(0.16 0.014 296.97);
--accent: oklch(0.692 0.056 297.125);
--accent-foreground: oklch(0.16 0.014 296.97);
--destructive: oklch(0.617 0.212 35.587);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.775 0.054 119.788);
--chart-1: oklch(0.775 0.054 119.788);
--chart-2: oklch(0.692 0.056 297.125);
--chart-3: oklch(0.692 0.056 297.125);
--chart-4: oklch(0.721 0.051 297.32);
--chart-5: oklch(0.781 0.06 119.941);
}