Rigid is a shadcn/ui theme built around a light pink primary color (#f2b1c5) with light red accents (#f2bcb1). The light mode uses a neutral background (#fefbfc). Dark mode keeps the light pink primary (#f2b1c5) on a pink-tinted background (#0d0709).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0d0709black |
| Foreground | #100408black | #fdfcfcsnow |
| Card | #fefbfcsnow | #0d0709black |
| Card foreground | #100408black | #fdfcfcsnow |
| Popover | #fefbfcsnow | #0d0709black |
| Popover foreground | #100408black | #fdfcfcsnow |
| Primary | #f2b1c5lightpink | #f2b1c5lightpink |
| Primary foreground | #601029maroon | #601029maroon |
| Secondary | #f2b1e6plum | #f2b1e6plum |
| Secondary foreground | #601051indigo | #601051indigo |
| Muted | #f0e0edlavender | #1f0f1cblack |
| Muted foreground | #655d63dimgray | #a29aa1darkgray |
| Accent | #f2bcb1lightpink | #f2bcb1lightpink |
| Accent foreground | #601f10maroon | #601f10maroon |
| Destructive | #a11708darkred | #f54632tomato |
| Destructive foreground | #fde0ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2b1c5lightpink | #f2b1c5lightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Rigid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 355.702);
--foreground: oklch(0.133 0.027 357.097);
--muted: oklch(0.923 0.025 331.781);
--muted-foreground: oklch(0.488 0.014 331.807);
--popover: oklch(0.991 0.003 355.702);
--popover-foreground: oklch(0.133 0.027 357.097);
--card: oklch(0.991 0.003 355.702);
--card-foreground: oklch(0.133 0.027 357.097);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.825 0.08 358.285);
--primary-foreground: oklch(0.326 0.112 7.766);
--secondary: oklch(0.836 0.102 333.039);
--secondary-foreground: oklch(0.344 0.133 336.894);
--accent: oklch(0.841 0.064 32.885);
--accent-foreground: oklch(0.338 0.098 34.133);
--destructive: oklch(0.455 0.173 30.507);
--destructive-foreground: oklch(0.93 0.033 25.314);
--ring: oklch(0.825 0.08 358.285);
--chart-1: oklch(0.825 0.08 358.285);
--chart-2: oklch(0.836 0.102 333.039);
--chart-3: oklch(0.841 0.064 32.885);
--chart-4: oklch(0.862 0.085 332.731);
--chart-5: oklch(0.824 0.084 358.402);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.013 356.469);
--foreground: oklch(0.992 0.001 355.651);
--muted: oklch(0.197 0.036 333.784);
--muted-foreground: oklch(0.695 0.013 331.665);
--popover: oklch(0.139 0.013 356.469);
--popover-foreground: oklch(0.992 0.001 355.651);
--card: oklch(0.139 0.013 356.469);
--card-foreground: oklch(0.992 0.001 355.651);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.825 0.08 358.285);
--primary-foreground: oklch(0.326 0.112 7.766);
--secondary: oklch(0.836 0.102 333.039);
--secondary-foreground: oklch(0.344 0.133 336.894);
--accent: oklch(0.841 0.064 32.885);
--accent-foreground: oklch(0.338 0.098 34.133);
--destructive: oklch(0.647 0.215 30.171);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.825 0.08 358.285);
--chart-1: oklch(0.825 0.08 358.285);
--chart-2: oklch(0.836 0.102 333.039);
--chart-3: oklch(0.841 0.064 32.885);
--chart-4: oklch(0.862 0.085 332.731);
--chart-5: oklch(0.824 0.084 358.402);
}