Rigid is a shadcn/ui theme built around a purple primary color (#cc5cca) with pink accents (#cc5c92). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#cc5cca) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #150415black | #fdfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #150415black | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #150415black | #fdfcfdwhite |
| Primary | #cc5ccamediumorchid | #cc5ccamediumorchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #965cccmediumpurple | #965cccmediumpurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2eef6whitesmoke | #0d0911black |
| Muted foreground | #66616bdimgray | #99949edarkgray |
| Accent | #cc5c92palevioletred | #cc5c92palevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #8b1c04darkred | #e02e06orangered |
| Destructive foreground | #fdcec3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cc5ccamediumorchid | #cc5ccamediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 4.46:1 | AA Large |
| Muted text | 5.26:1 | AA |
| Accent | 5.50:1 | AA |
| Destructive | 6.50:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 4.46:1 | AA Large |
| Muted text | 6.66:1 | AA |
| Accent | 5.50:1 | AA |
| Destructive | 4.61:1 | AA |
Paste this into your globals.css to use Rigid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.046 328.149);
--muted: oklch(0.955 0.012 308.993);
--muted-foreground: oklch(0.501 0.017 308.765);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.046 328.149);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.046 328.149);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.652 0.193 328.146);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.589 0.17 305.664);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.629 0.153 352.176);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.417 0.149 33.213);
--destructive-foreground: oklch(0.89 0.056 32.816);
--ring: oklch(0.652 0.193 328.146);
--chart-1: oklch(0.652 0.193 328.146);
--chart-2: oklch(0.589 0.17 305.664);
--chart-3: oklch(0.629 0.153 352.176);
--chart-4: oklch(0.617 0.158 306.158);
--chart-5: oklch(0.654 0.202 328.23);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 326.072);
--muted: oklch(0.148 0.019 307.91);
--muted-foreground: oklch(0.674 0.016 308.877);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 326.072);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.002 326.072);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.652 0.193 328.146);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.589 0.17 305.664);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.629 0.153 352.176);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.587 0.217 32.528);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.652 0.193 328.146);
--chart-1: oklch(0.652 0.193 328.146);
--chart-2: oklch(0.589 0.17 305.664);
--chart-3: oklch(0.629 0.153 352.176);
--chart-4: oklch(0.617 0.158 306.158);
--chart-5: oklch(0.654 0.202 328.23);
}