Hydrolyze for shadcn/ui

Hydrolyze is a shadcn/ui theme built around a purple primary color (#d892d8) with muted light purple accents (#d9c4d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#d892d8) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#ffffffwhite
#080208black
Foreground
#160416black
#ffffffwhite
Card
#ffffffwhite
#080208black
Card foreground
#160416black
#ffffffwhite
Popover
#ffffffwhite
#080208black
Popover foreground
#160416black
#ffffffwhite
Primary
#d892d8plum
#d892d8plum
Primary foreground
#290f29black
#290f29black
Secondary
#e9e2e9lavender
#352c35darkslategray
Secondary foreground
#574257darkslategray
#cfc4cfthistle
Muted
#e7cfe7gainsboro
#301830darkslategray
Muted foreground
#5b435bdimgray
#bca4bcdarkgray
Accent
#d9c4d9thistle
#553a55darkslategray
Accent foreground
#412a41darkslategray
#e6dbe6gainsboro
Destructive
#7d3307saddlebrown
#f3742btomato
Destructive foreground
#fbd3bcpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d892d8plum
#d892d8plum

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button7.56:1AAA
Secondary button7.11:1AAA
Muted text6.04:1AA
Accent7.87:1AAA
Destructive6.45:1AA
Dark mode
Text on background20.52:1AAA
Text on card20.52:1AAA
Primary button7.56:1AAA
Secondary button7.98:1AAA
Muted text7.08:1AAA
Accent7.38:1AAA
Destructive7.33:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.05 327.695);
  --muted: oklch(0.882 0.042 325.927);
  --muted-foreground: oklch(0.418 0.049 326.412);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.05 327.695);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.05 327.695);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.753 0.123 326.715);
  --primary-foreground: oklch(0.221 0.061 327.392);
  --secondary: oklch(0.92 0.012 325.676);
  --secondary-foreground: oklch(0.409 0.045 326.356);
  --accent: oklch(0.844 0.037 325.902);
  --accent-foreground: oklch(0.322 0.052 326.693);
  --destructive: oklch(0.418 0.115 44.565);
  --destructive-foreground: oklch(0.895 0.055 51.795);
  --ring: oklch(0.753 0.123 326.715);
  --chart-1: oklch(0.753 0.123 326.715);
  --chart-2: oklch(0.92 0.012 325.676);
  --chart-3: oklch(0.844 0.037 325.902);
  --chart-4: oklch(0.944 0.009 325.644);
  --chart-5: oklch(0.752 0.131 326.779);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.026 327.166);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.252 0.056 327.07);
  --muted-foreground: oklch(0.747 0.043 325.996);
  --popover: oklch(0.109 0.026 327.166);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.026 327.166);
  --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.753 0.123 326.715);
  --primary-foreground: oklch(0.221 0.061 327.392);
  --secondary: oklch(0.306 0.022 326.095);
  --secondary-foreground: oklch(0.833 0.019 325.745);
  --accent: oklch(0.389 0.057 326.602);
  --accent-foreground: oklch(0.903 0.02 325.742);
  --destructive: oklch(0.699 0.175 46.445);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.753 0.123 326.715);
  --chart-1: oklch(0.753 0.123 326.715);
  --chart-2: oklch(0.306 0.022 326.095);
  --chart-3: oklch(0.389 0.057 326.602);
  --chart-4: oklch(0.336 0.025 326.111);
  --chart-5: oklch(0.752 0.131 326.779);
}