Nice for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.80:1AAA
Text on card19.62:1AAA
Primary button7.90:1AAA
Secondary button7.79:1AAA
Muted text8.47:1AAA
Accent7.71:1AAA
Destructive6.48:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.24:1AAA
Primary button7.90:1AAA
Secondary button7.79:1AAA
Muted text9.55:1AAA
Accent7.71:1AAA
Destructive3.84:1AA Large

CSS variables

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);
}