Pinkie for shadcn/ui

Pinkie is a shadcn/ui theme built around a vivid indigo primary color (#350fcc) with muted light indigo accents (#cecade). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#350fcc) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#060312black
#ffffffwhite
Card
#fcfcfcsnow
#040307black
Card foreground
#04020dblack
#ffffffwhite
Popover
#fcfcfcsnow
#040307black
Popover foreground
#04020dblack
#ffffffwhite
Primary
#350fccmediumblue
#350fccmediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e3e1eagainsboro
#171717black
Secondary foreground
#454059darkslategray
#afafb1darkgray
Muted
#dad8degainsboro
#222127black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#cecadelightgrey
#2c2b31darkslategray
Accent foreground
#332d48darkslategray
#c5c3cbsilver
Destructive
#cc3f14firebrick
#ea5a2echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#350fccmediumblue
#350fccmediumblue

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.15:1AAA
Primary button10.03:1AAA
Secondary button7.63:1AAA
Muted text7.35:1AAA
Accent8.12:1AAA
Destructive4.88:1AA
Dark mode
Text on background20.77:1AAA
Text on card20.55:1AAA
Primary button10.03:1AAA
Secondary button8.20:1AAA
Muted text8.70:1AAA
Accent8.06:1AAA
Destructive6.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.115 0.039 292.381);
  --muted: oklch(0.886 0.008 295.416);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.104 0.034 293.587);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.104 0.034 293.587);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.409 0.248 274.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.915 0.011 295.355);
  --secondary-foreground: oklch(0.388 0.041 293.543);
  --accent: oklch(0.847 0.028 294.973);
  --accent-foreground: oklch(0.316 0.048 292.625);
  --destructive: oklch(0.569 0.185 35.839);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.409 0.248 274.87);
  --chart-1: oklch(0.409 0.248 274.87);
  --chart-2: oklch(0.915 0.011 295.355);
  --chart-3: oklch(0.847 0.028 294.973);
  --chart-4: oklch(0.94 0.008 295.427);
  --chart-5: oklch(0.411 0.253 273.978);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.011 294.961);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.011 294.781);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.104 0.014 294.961);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.014 294.961);
  --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.409 0.248 274.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.204 0.001 295.496);
  --secondary-foreground: oklch(0.755 0.002 295.524);
  --accent: oklch(0.292 0.012 294.837);
  --accent-foreground: oklch(0.821 0.011 295.332);
  --destructive: oklch(0.651 0.188 36.926);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.409 0.248 274.87);
  --chart-1: oklch(0.409 0.248 274.87);
  --chart-2: oklch(0.204 0.001 295.496);
  --chart-3: oklch(0.292 0.012 294.837);
  --chart-4: oklch(0.237 0.001 295.488);
  --chart-5: oklch(0.411 0.253 273.978);
}