Itchy for shadcn/ui

Itchy is a shadcn/ui theme built around a pink primary color (#c13359) with teal accents (#33c19c). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#c13359) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#ffffffwhite
#040102black
Foreground
#0c0406black
#ffffffwhite
Card
#fcfcfcsnow
#080204black
Card foreground
#080204black
#ffffffwhite
Popover
#ffffffwhite
#040102black
Popover foreground
#0c0406black
#ffffffwhite
Primary
#c13359indianred
#c13359indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#33c19clightseagreen
#33c19clightseagreen
Secondary foreground
#09201ablack
#09201ablack
Muted
#cde5degainsboro
#1a322cdarkslategray
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#33c19clightseagreen
#33c19clightseagreen
Accent foreground
#09201ablack
#09201ablack
Destructive
#e33e02orangered
#ed4102orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c13359indianred
#c13359indianred

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.13:1AAA
Primary button5.37:1AA
Secondary button7.52:1AAA
Muted text7.80:1AAA
Accent7.52:1AAA
Destructive4.22:1AA Large
Dark mode
Text on background20.76:1AAA
Text on card20.53:1AAA
Primary button5.37:1AA
Secondary button7.52:1AAA
Muted text7.41:1AAA
Accent7.52:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.02 358.805);
  --muted: oklch(0.901 0.027 177.913);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.02 358.805);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.017 358.638);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.549 0.179 9.825);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.729 0.13 170.476);
  --secondary-foreground: oklch(0.223 0.032 173.228);
  --accent: oklch(0.729 0.13 170.476);
  --accent-foreground: oklch(0.223 0.032 173.228);
  --destructive: oklch(0.607 0.209 35.627);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.549 0.179 9.825);
  --chart-1: oklch(0.549 0.179 9.825);
  --chart-2: oklch(0.729 0.13 170.476);
  --chart-3: oklch(0.729 0.13 170.476);
  --chart-4: oklch(0.755 0.133 170.738);
  --chart-5: oklch(0.551 0.185 10.536);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.013 358.642);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.296 0.032 175.047);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.084 0.013 358.642);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.106 0.017 358.642);
  --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.549 0.179 9.825);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.729 0.13 170.476);
  --secondary-foreground: oklch(0.223 0.032 173.228);
  --accent: oklch(0.729 0.13 170.476);
  --accent-foreground: oklch(0.223 0.032 173.228);
  --destructive: oklch(0.627 0.216 35.549);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.549 0.179 9.825);
  --chart-1: oklch(0.549 0.179 9.825);
  --chart-2: oklch(0.729 0.13 170.476);
  --chart-3: oklch(0.729 0.13 170.476);
  --chart-4: oklch(0.755 0.133 170.738);
  --chart-5: oklch(0.551 0.185 10.536);
}