nice one for shadcn/ui

nice one is a shadcn/ui theme built around a muted pink primary color (#c5a0b5) with muted green accents (#a0c5b0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#c5a0b5) on a pink-tinted background (#0b0408).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0408black
Foreground
#0c0308black
#faf5f8whitesmoke
Card
#fcfcfcsnow
#0f050bblack
Card foreground
#080205black
#fcf8fasnow
Popover
#fcfcfcsnow
#0f050bblack
Popover foreground
#080205black
#fcf8fasnow
Primary
#c5a0b5darkgray
#c5a0b5darkgray
Primary foreground
#20131ablack
#20131ablack
Secondary
#a0c5b0darkgray
#a0c5b0darkgray
Secondary foreground
#132019black
#132019black
Muted
#dee7e2gainsboro
#18211bblack
Muted foreground
#626463dimgray
#9b9d9bdarkgray
Accent
#a0c5b0darkgray
#a0c5b0darkgray
Accent foreground
#132019black
#132019black
Destructive
#661305maroon
#db2a0aorangered
Destructive foreground
#fbb0a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5a0b5darkgray
#c5a0b5darkgray

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.12:1AAA
Primary button7.75:1AAA
Secondary button8.89:1AAA
Muted text4.74:1AA
Accent8.89:1AAA
Destructive7.10:1AAA
Dark mode
Text on background18.81:1AAA
Text on card19.02:1AAA
Primary button7.75:1AAA
Secondary button8.89:1AAA
Muted text6.07:1AA
Accent8.89:1AAA
Destructive4.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.025 342.159);
  --muted: oklch(0.921 0.012 161.497);
  --muted-foreground: oklch(0.503 0.003 161.662);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.106 0.021 341.832);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.021 341.832);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.746 0.051 343.386);
  --primary-foreground: oklch(0.208 0.024 344.361);
  --secondary: oklch(0.79 0.049 160.213);
  --secondary-foreground: oklch(0.228 0.022 159.216);
  --accent: oklch(0.79 0.049 160.213);
  --accent-foreground: oklch(0.228 0.022 159.216);
  --destructive: oklch(0.336 0.118 32.487);
  --destructive-foreground: oklch(0.824 0.091 30.256);
  --ring: oklch(0.746 0.051 343.386);
  --chart-1: oklch(0.746 0.051 343.386);
  --chart-2: oklch(0.79 0.049 160.213);
  --chart-3: oklch(0.79 0.049 160.213);
  --chart-4: oklch(0.812 0.044 160.428);
  --chart-5: oklch(0.744 0.058 343.582);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.02 341.991);
  --foreground: oklch(0.974 0.007 341.983);
  --muted: oklch(0.235 0.016 160.024);
  --muted-foreground: oklch(0.693 0.003 161.71);
  --popover: oklch(0.137 0.023 343.66);
  --popover-foreground: oklch(0.983 0.005 341.924);
  --card: oklch(0.137 0.023 343.66);
  --card-foreground: oklch(0.983 0.005 341.924);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.746 0.051 343.386);
  --primary-foreground: oklch(0.208 0.024 344.361);
  --secondary: oklch(0.79 0.049 160.213);
  --secondary-foreground: oklch(0.228 0.022 159.216);
  --accent: oklch(0.79 0.049 160.213);
  --accent-foreground: oklch(0.228 0.022 159.216);
  --destructive: oklch(0.576 0.215 31.722);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.746 0.051 343.386);
  --chart-1: oklch(0.746 0.051 343.386);
  --chart-2: oklch(0.79 0.049 160.213);
  --chart-3: oklch(0.79 0.049 160.213);
  --chart-4: oklch(0.812 0.044 160.428);
  --chart-5: oklch(0.744 0.058 343.582);
}