Nicety for shadcn/ui

Nicety is a shadcn/ui theme built around a vivid deep pink primary color (#8d024c) with vivid deep red accents (#8d0207). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#8d024c) on a pink-tinted background (#0f060b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f060bblack
Foreground
#12030bblack
#ffffffwhite
Card
#fcfcfcsnow
#12070dblack
Card foreground
#0d0208black
#ffffffwhite
Popover
#fcfcfcsnow
#12070dblack
Popover foreground
#0d0208black
#ffffffwhite
Primary
#8d024cpurple
#8d024cpurple
Primary foreground
#fec3e2pink
#fec3e2pink
Secondary
#88028ddarkmagenta
#88028ddarkmagenta
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfd8dfgainsboro
#272027darkslategray
Muted foreground
#5b525bdimgray
#aca4addarkgray
Accent
#8d0207darkred
#8d0207darkred
Accent foreground
#fec3c5pink
#fec3c5pink
Destructive
#8c0f08darkred
#f1190ered
Destructive foreground
#fccccapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8d024cpurple
#8d024cpurple

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card19.96:1AAA
Primary button6.30:1AA
Secondary button8.60:1AAA
Muted text5.34:1AA
Accent6.46:1AA
Destructive6.70:1AA
Dark mode
Text on background20.02:1AAA
Text on card19.75:1AAA
Primary button6.30:1AA
Secondary button8.60:1AAA
Muted text6.54:1AA
Accent6.46:1AA
Destructive4.29:1AA Large

CSS variables

Paste this into your globals.css to use Nicety in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.038 346.022);
  --muted: oklch(0.889 0.012 324.706);
  --muted-foreground: oklch(0.451 0.018 324.862);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.118 0.034 344.012);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.118 0.034 344.012);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.418 0.169 358.074);
  --primary-foreground: oklch(0.879 0.079 345.563);
  --secondary: oklch(0.444 0.204 326.604);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.405 0.164 28.091);
  --accent-foreground: oklch(0.87 0.068 16.334);
  --destructive: oklch(0.408 0.158 29.356);
  --destructive-foreground: oklch(0.887 0.054 21.745);
  --ring: oklch(0.418 0.169 358.074);
  --chart-1: oklch(0.418 0.169 358.074);
  --chart-2: oklch(0.444 0.204 326.604);
  --chart-3: oklch(0.405 0.164 28.091);
  --chart-4: oklch(0.478 0.22 326.591);
  --chart-5: oklch(0.422 0.171 358.523);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.021 345.131);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.017 325.023);
  --muted-foreground: oklch(0.728 0.016 324.754);
  --popover: oklch(0.15 0.024 346.546);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.15 0.024 346.546);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.418 0.169 358.074);
  --primary-foreground: oklch(0.879 0.079 345.563);
  --secondary: oklch(0.444 0.204 326.604);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.405 0.164 28.091);
  --accent-foreground: oklch(0.87 0.068 16.334);
  --destructive: oklch(0.608 0.24 29.472);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.169 358.074);
  --chart-1: oklch(0.418 0.169 358.074);
  --chart-2: oklch(0.444 0.204 326.604);
  --chart-3: oklch(0.405 0.164 28.091);
  --chart-4: oklch(0.478 0.22 326.591);
  --chart-5: oklch(0.422 0.171 358.523);
}