Immaterial is a shadcn/ui theme built around a pink primary color (#823a63) with muted light pink accents (#d2b6c6). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the pink primary (#823a63) on a pink-tinted background (#0c0408).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #0c0408black |
| Foreground | #040103black | #f9f6f8whitesmoke |
| Card | #fcf3f8lavenderblush | #0f050bblack |
| Card foreground | #000000black | #fbf9fasnow |
| Popover | #fdf7fasnow | #0c0408black |
| Popover foreground | #040103black | #f9f6f8whitesmoke |
| Primary | #823a63dimgray | #823a63dimgray |
| Primary foreground | #faf4f8whitesmoke | #faf4f8whitesmoke |
| Secondary | #dbcdd5lightgrey | #1b181ablack |
| Secondary foreground | #44313cdarkslategray | #b7aeb3darkgray |
| Muted | #f3e7eelinen | #180c13black |
| Muted foreground | #574750darkslategray | #b8a8b1darkgray |
| Accent | #d2b6c6thistle | #32242cdarkslategray |
| Accent foreground | #36212ddarkslategray | #cebbc6silver |
| Destructive | #922402darkred | #fc6436tomato |
| Destructive foreground | #fed4c8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #823a63dimgray | #823a63dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 18.90:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 8.43:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 7.02:1 | AAA |
Paste this into your globals.css to use Immaterial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 341.997);
--foreground: oklch(0.083 0.022 341.838);
--muted: oklch(0.94 0.016 342.221);
--muted-foreground: oklch(0.418 0.026 343.214);
--popover: oklch(0.981 0.008 341.997);
--popover-foreground: oklch(0.083 0.022 341.838);
--card: oklch(0.972 0.012 342.095);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.458 0.111 347.233);
--primary-foreground: oklch(0.974 0.008 341.993);
--secondary: oklch(0.861 0.019 342.318);
--secondary-foreground: oklch(0.34 0.032 343.94);
--accent: oklch(0.806 0.039 342.917);
--accent-foreground: oklch(0.278 0.037 344.793);
--destructive: oklch(0.436 0.151 35.117);
--destructive-foreground: oklch(0.903 0.05 37.594);
--ring: oklch(0.458 0.111 347.233);
--chart-1: oklch(0.458 0.111 347.233);
--chart-2: oklch(0.861 0.019 342.318);
--chart-3: oklch(0.806 0.039 342.917);
--chart-4: oklch(0.886 0.015 342.215);
--chart-5: oklch(0.459 0.118 347.663);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.022 342.044);
--foreground: oklch(0.976 0.003 341.891);
--muted: oklch(0.174 0.025 345.032);
--muted-foreground: oklch(0.748 0.022 342.499);
--popover: oklch(0.123 0.022 342.044);
--popover-foreground: oklch(0.976 0.003 341.891);
--card: oklch(0.137 0.025 343.758);
--card-foreground: oklch(0.984 0.002 341.862);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.458 0.111 347.233);
--primary-foreground: oklch(0.974 0.008 341.993);
--secondary: oklch(0.213 0.006 342.451);
--secondary-foreground: oklch(0.76 0.013 342.204);
--accent: oklch(0.281 0.025 343.805);
--accent-foreground: oklch(0.811 0.026 342.548);
--destructive: oklch(0.691 0.195 37.045);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.458 0.111 347.233);
--chart-1: oklch(0.458 0.111 347.233);
--chart-2: oklch(0.213 0.006 342.451);
--chart-3: oklch(0.281 0.025 343.805);
--chart-4: oklch(0.245 0.007 342.508);
--chart-5: oklch(0.459 0.118 347.663);
}