Nice is a shadcn/ui theme built around a light pink primary color (#e1c7cf) with light red accents (#e1cbc7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#e1c7cf) on a pink-tinted background (#0e0709).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0709black |
| Foreground | #14060ablack | #fbf9f9snow |
| Card | #fcfcfcsnow | #11080bblack |
| Card foreground | #100508black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #11080bblack |
| Popover foreground | #100508black | #fdfcfcsnow |
| Primary | #e1c7cfthistle | #e1c7cfthistle |
| Primary foreground | #4c2934darkslategray | #4c2934darkslategray |
| Secondary | #e1c7dcthistle | #e1c7dcthistle |
| Secondary foreground | #4c2946darkslategray | #4c2946darkslategray |
| Muted | #f6eef5whitesmoke | #11090fblack |
| Muted foreground | #4e414bdarkslategray | #beb1bcsilver |
| Accent | #e1cbc7lightgrey | #e1cbc7lightgrey |
| Accent foreground | #4c3029darkslategray | #4c3029darkslategray |
| Destructive | #8b2d0esaddlebrown | #e84b17orangered |
| Destructive foreground | #fadbd1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1c7cfthistle | #e1c7cfthistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 9.55:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Nice in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.028 358.907);
--muted: oklch(0.958 0.012 331.59);
--muted-foreground: oklch(0.392 0.024 332.262);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.134 0.025 356.987);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.134 0.025 356.987);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.853 0.031 356.648);
--primary-foreground: oklch(0.331 0.055 0.168);
--secondary: oklch(0.857 0.041 332.064);
--secondary-foreground: oklch(0.338 0.068 334.035);
--accent: oklch(0.86 0.025 32.691);
--accent-foreground: oklch(0.34 0.044 33.243);
--destructive: oklch(0.435 0.134 37.158);
--destructive-foreground: oklch(0.915 0.038 39.309);
--ring: oklch(0.853 0.031 356.648);
--chart-1: oklch(0.853 0.031 356.648);
--chart-2: oklch(0.857 0.041 332.064);
--chart-3: oklch(0.86 0.025 32.691);
--chart-4: oklch(0.882 0.033 331.931);
--chart-5: oklch(0.851 0.034 356.752);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.014 356.515);
--foreground: oklch(0.983 0.003 355.698);
--muted: oklch(0.153 0.02 333.071);
--muted-foreground: oklch(0.775 0.021 331.779);
--popover: oklch(0.151 0.017 358.239);
--popover-foreground: oklch(0.992 0.001 355.656);
--card: oklch(0.151 0.017 358.239);
--card-foreground: oklch(0.992 0.001 355.656);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.853 0.031 356.648);
--primary-foreground: oklch(0.331 0.055 0.168);
--secondary: oklch(0.857 0.041 332.064);
--secondary-foreground: oklch(0.338 0.068 334.035);
--accent: oklch(0.86 0.025 32.691);
--accent-foreground: oklch(0.34 0.044 33.243);
--destructive: oklch(0.629 0.202 36.61);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.853 0.031 356.648);
--chart-1: oklch(0.853 0.031 356.648);
--chart-2: oklch(0.857 0.041 332.064);
--chart-3: oklch(0.86 0.025 32.691);
--chart-4: oklch(0.882 0.033 331.931);
--chart-5: oklch(0.851 0.034 356.752);
}