Neck for shadcn/ui

Neck is a shadcn/ui theme built around a neutral gray primary color (#675b62) with muted light pink accents (#ede8eb). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the neutral gray primary (#675b62) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#000000black
Foreground
#050103black
#fdfbfdsnow
Card
#fdf7fbsnow
#000000black
Card foreground
#050103black
#fdfbfdsnow
Popover
#fdf7fbsnow
#000000black
Popover foreground
#050103black
#fdfbfdsnow
Primary
#675b62dimgray
#675b62dimgray
Primary foreground
#fafafasnow
#fafafasnow
Secondary
#ede8eblinen
#1c171ablack
Secondary foreground
#5d4655dimgray
#bbaab5darkgray
Muted
#e6d6e0gainsboro
#291923black
Muted foreground
#454545darkslategray
#bababasilver
Accent
#ede8eblinen
#1c171ablack
Accent foreground
#5d4655dimgray
#bbaab5darkgray
Destructive
#8f2b00saddlebrown
#ff7033tomato
Destructive foreground
#ffd4c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#675b62dimgray
#675b62dimgray

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button6.18:1AA
Secondary button7.01:1AAA
Muted text6.86:1AA
Accent7.01:1AAA
Destructive6.16:1AA
Dark mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button6.18:1AA
Secondary button8.03:1AAA
Muted text8.58:1AAA
Accent8.03:1AAA
Destructive7.62:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 338.887);
  --foreground: oklch(0.081 0.026 339.122);
  --muted: oklch(0.892 0.022 339.242);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(0.982 0.008 338.887);
  --popover-foreground: oklch(0.081 0.026 339.122);
  --card: oklch(0.982 0.008 338.887);
  --card-foreground: oklch(0.081 0.026 339.122);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.485 0.019 339.529);
  --primary-foreground: oklch(0.984 0.001 338.737);
  --secondary: oklch(0.936 0.008 338.898);
  --secondary-foreground: oklch(0.424 0.038 340.552);
  --accent: oklch(0.936 0.008 338.898);
  --accent-foreground: oklch(0.424 0.038 340.552);
  --destructive: oklch(0.438 0.142 38.449);
  --destructive-foreground: oklch(0.902 0.054 44.474);
  --ring: oklch(0.485 0.019 339.529);
  --chart-1: oklch(0.485 0.019 339.529);
  --chart-2: oklch(0.936 0.008 338.898);
  --chart-3: oklch(0.936 0.008 338.898);
  --chart-4: oklch(0.96 0.005 338.828);
  --chart-5: oklch(0.482 0.028 339.931);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 338.777);
  --muted: oklch(0.239 0.031 341.292);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 338.777);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.003 338.777);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.485 0.019 339.529);
  --primary-foreground: oklch(0.984 0.001 338.737);
  --secondary: oklch(0.212 0.011 339.814);
  --secondary-foreground: oklch(0.756 0.024 339.396);
  --accent: oklch(0.212 0.011 339.814);
  --accent-foreground: oklch(0.756 0.024 339.396);
  --destructive: oklch(0.711 0.189 41.477);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.485 0.019 339.529);
  --chart-1: oklch(0.485 0.019 339.529);
  --chart-2: oklch(0.212 0.011 339.814);
  --chart-3: oklch(0.212 0.011 339.814);
  --chart-4: oklch(0.243 0.014 339.911);
  --chart-5: oklch(0.482 0.028 339.931);
}