Nippy for shadcn/ui

Nippy is a shadcn/ui theme built around a purple primary color (#e85ebc) with cyan accents (#5ebce8). The light mode uses a neutral background (#fefbfd). Dark mode keeps the purple primary (#e85ebc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#040103black
#fbf9fasnow
Card
#fefbfdsnow
#000000black
Card foreground
#040103black
#fbf9fasnow
Popover
#fefbfdsnow
#000000black
Popover foreground
#040103black
#fbf9fasnow
Primary
#e85ebchotpink
#e85ebchotpink
Primary foreground
#12030dblack
#12030dblack
Secondary
#bce85edarkkhaki
#bce85edarkkhaki
Secondary foreground
#0d1203black
#0d1203black
Muted
#dee3d3gainsboro
#272c1cdarkslategray
Muted foreground
#5d6057dimgray
#a5a89fdarkgray
Accent
#5ebce8cornflowerblue
#5ebce8cornflowerblue
Accent foreground
#030d12black
#030d12black
Destructive
#742306maroon
#da430borangered
Destructive foreground
#fbc5b1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e85ebchotpink
#e85ebchotpink

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.48:1AA
Secondary button13.44:1AAA
Muted text4.90:1AA
Accent9.22:1AAA
Destructive6.87:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button6.48:1AA
Secondary button13.44:1AAA
Muted text5.98:1AA
Accent9.22:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 336.624);
  --foreground: oklch(0.085 0.018 337.033);
  --muted: oklch(0.908 0.022 121.162);
  --muted-foreground: oklch(0.485 0.015 121.273);
  --popover: oklch(0.991 0.003 336.624);
  --popover-foreground: oklch(0.085 0.018 337.033);
  --card: oklch(0.991 0.003 336.624);
  --card-foreground: oklch(0.085 0.018 337.033);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.687 0.199 341.893);
  --primary-foreground: oklch(0.134 0.04 339.447);
  --secondary: oklch(0.873 0.171 124.678);
  --secondary-foreground: oklch(0.171 0.033 122.557);
  --accent: oklch(0.756 0.109 230.618);
  --accent-foreground: oklch(0.15 0.021 224.693);
  --destructive: oklch(0.381 0.119 37.765);
  --destructive-foreground: oklch(0.866 0.068 40.909);
  --ring: oklch(0.687 0.199 341.893);
  --chart-1: oklch(0.687 0.199 341.893);
  --chart-2: oklch(0.873 0.171 124.678);
  --chart-3: oklch(0.756 0.109 230.618);
  --chart-4: oklch(0.883 0.16 124.247);
  --chart-5: oklch(0.688 0.205 342.094);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 336.596);
  --muted: oklch(0.281 0.028 122.493);
  --muted-foreground: oklch(0.726 0.013 121.073);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 336.596);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 336.596);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.687 0.199 341.893);
  --primary-foreground: oklch(0.134 0.04 339.447);
  --secondary: oklch(0.873 0.171 124.678);
  --secondary-foreground: oklch(0.171 0.033 122.557);
  --accent: oklch(0.756 0.109 230.618);
  --accent-foreground: oklch(0.15 0.021 224.693);
  --destructive: oklch(0.596 0.196 36.624);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.687 0.199 341.893);
  --chart-1: oklch(0.687 0.199 341.893);
  --chart-2: oklch(0.873 0.171 124.678);
  --chart-3: oklch(0.756 0.109 230.618);
  --chart-4: oklch(0.883 0.16 124.247);
  --chart-5: oklch(0.688 0.205 342.094);
}