Nippy for shadcn/ui

Nippy is a shadcn/ui theme built around a red primary color (#ca7782) with orange accents (#ca9677). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#ca7782) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f9f6f6whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#f9f6f6whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f9f6f6whitesmoke
Primary
#ca7782palevioletred
#ca7782palevioletred
Primary foreground
#0b0405black
#0b0405black
Secondary
#ca77acpalevioletred
#ca77acpalevioletred
Secondary foreground
#0b0409black
#0b0409black
Muted
#f5eaf1whitesmoke
#150a11black
Muted foreground
#5f4e59dimgray
#b1a0abdarkgray
Accent
#ca9677rosybrown
#ca9677rosybrown
Accent foreground
#0b0704black
#0b0704black
Destructive
#7e1002maroon
#fc4027orangered
Destructive foreground
#febcb4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ca7782palevioletred
#ca7782palevioletred

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.27:1AA
Secondary button6.52:1AA
Muted text6.59:1AA
Accent7.75:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.27:1AA
Secondary button6.52:1AA
Muted text7.84:1AAA
Accent7.75:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.948 0.015 339.056);
  --muted-foreground: oklch(0.445 0.029 340.045);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.663 0.104 11.73);
  --primary-foreground: oklch(0.123 0.016 8.492);
  --secondary: oklch(0.676 0.122 342.316);
  --secondary-foreground: oklch(0.125 0.019 339.031);
  --accent: oklch(0.715 0.076 51.184);
  --accent-foreground: oklch(0.132 0.011 58.791);
  --destructive: oklch(0.38 0.144 31.342);
  --destructive-foreground: oklch(0.854 0.077 27.306);
  --ring: oklch(0.663 0.104 11.73);
  --chart-1: oklch(0.663 0.104 11.73);
  --chart-2: oklch(0.676 0.122 342.316);
  --chart-3: oklch(0.715 0.076 51.184);
  --chart-4: oklch(0.701 0.112 341.896);
  --chart-5: oklch(0.661 0.112 12.053);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.004 7.845);
  --muted: oklch(0.163 0.023 341.579);
  --muted-foreground: oklch(0.723 0.025 339.455);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.004 7.845);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.004 7.845);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.663 0.104 11.73);
  --primary-foreground: oklch(0.123 0.016 8.492);
  --secondary: oklch(0.676 0.122 342.316);
  --secondary-foreground: oklch(0.125 0.019 339.031);
  --accent: oklch(0.715 0.076 51.184);
  --accent-foreground: oklch(0.132 0.011 58.791);
  --destructive: oklch(0.652 0.227 31.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.663 0.104 11.73);
  --chart-1: oklch(0.663 0.104 11.73);
  --chart-2: oklch(0.676 0.122 342.316);
  --chart-3: oklch(0.715 0.076 51.184);
  --chart-4: oklch(0.701 0.112 341.896);
  --chart-5: oklch(0.661 0.112 12.053);
}