Thirsty for shadcn/ui

Thirsty is a shadcn/ui theme built around a vivid deep purple primary color (#690c55) with vivid deep pink accents (#690c27). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid deep purple primary (#690c55) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fefbfdsnow
#040103black
Foreground
#090207black
#faf5f9whitesmoke
Card
#fefbfdsnow
#040103black
Card foreground
#090207black
#faf5f9whitesmoke
Popover
#fefbfdsnow
#040103black
Popover foreground
#090207black
#faf5f9whitesmoke
Primary
#690c55purple
#690c55purple
Primary foreground
#f6b1e7plum
#f6b1e7plum
Secondary
#4f0c69indigo
#4f0c69indigo
Secondary foreground
#e2b1f6plum
#e2b1f6plum
Muted
#e0d1e6gainsboro
#28192edarkslategray
Muted foreground
#616062dimgray
#9f9d9fdarkgray
Accent
#690c27maroon
#690c27maroon
Accent foreground
#f6b1c5lightpink
#f6b1c5lightpink
Destructive
#c62f15firebrick
#e73718orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#690c55purple
#690c55purple

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button6.92:1AA
Secondary button7.46:1AAA
Muted text4.29:1AA Large
Accent7.13:1AAA
Destructive5.47:1AA
Dark mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button6.92:1AA
Secondary button7.46:1AAA
Muted text6.12:1AA
Accent7.13:1AAA
Destructive4.23:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 332.667);
  --foreground: oklch(0.106 0.029 333.66);
  --muted: oklch(0.879 0.032 316.502);
  --muted-foreground: oklch(0.491 0.003 316.588);
  --popover: oklch(0.991 0.003 332.667);
  --popover-foreground: oklch(0.106 0.029 333.66);
  --card: oklch(0.991 0.003 332.667);
  --card-foreground: oklch(0.106 0.029 333.66);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.359 0.145 339.263);
  --primary-foreground: oklch(0.842 0.105 334.433);
  --secondary: oklch(0.328 0.149 313.372);
  --secondary-foreground: oklch(0.828 0.107 316.219);
  --accent: oklch(0.34 0.124 11.871);
  --accent-foreground: oklch(0.831 0.083 0.462);
  --destructive: oklch(0.544 0.191 32.199);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.359 0.145 339.263);
  --chart-1: oklch(0.359 0.145 339.263);
  --chart-2: oklch(0.328 0.149 313.372);
  --chart-3: oklch(0.34 0.124 11.871);
  --chart-4: oklch(0.357 0.164 313.237);
  --chart-5: oklch(0.362 0.148 339.474);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.018 333.435);
  --foreground: oklch(0.975 0.007 332.732);
  --muted: oklch(0.244 0.044 316.041);
  --muted-foreground: oklch(0.698 0.003 316.595);
  --popover: oklch(0.086 0.018 333.435);
  --popover-foreground: oklch(0.975 0.007 332.732);
  --card: oklch(0.086 0.018 333.435);
  --card-foreground: oklch(0.975 0.007 332.732);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.359 0.145 339.263);
  --primary-foreground: oklch(0.842 0.105 334.433);
  --secondary: oklch(0.328 0.149 313.372);
  --secondary-foreground: oklch(0.828 0.107 316.219);
  --accent: oklch(0.34 0.124 11.871);
  --accent-foreground: oklch(0.831 0.083 0.462);
  --destructive: oklch(0.608 0.215 32.154);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.359 0.145 339.263);
  --chart-1: oklch(0.359 0.145 339.263);
  --chart-2: oklch(0.328 0.149 313.372);
  --chart-3: oklch(0.34 0.124 11.871);
  --chart-4: oklch(0.357 0.164 313.237);
  --chart-5: oklch(0.362 0.148 339.474);
}