P. \ Haze for shadcn/ui

P. \ Haze is a shadcn/ui theme built around a cyan primary color (#7edfec) with muted purple accents (#865f86). The light mode uses a purple-tinted background (#5a3f5a). Dark mode keeps the cyan primary (#7edfec) on a purple-tinted background (#5a3f5a).

Color palette

TokenLightDark
Background
#5a3f5adimgray
#5a3f5adimgray
Foreground
#e4cbc4lightgrey
#e4cbc4lightgrey
Card
#543b54darkslategray
#543b54darkslategray
Card foreground
#ecdad5gainsboro
#ecdad5gainsboro
Popover
#513951darkslategray
#513951darkslategray
Popover foreground
#f4e9e7linen
#f4e9e7linen
Primary
#7edfecskyblue
#7edfecskyblue
Primary foreground
#072c31darkslategray
#072c31darkslategray
Secondary
#2d4e53darkslategray
#2d4e53darkslategray
Secondary foreground
#cde2e4gainsboro
#cde2e4gainsboro
Muted
#614c61dimgray
#614c61dimgray
Muted foreground
#d2c6d2thistle
#d2c6d2thistle
Accent
#865f86gray
#865f86gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#f23936crimson
#f23936crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#5f535fdimgray
#5f535fdimgray
Input
#685a68dimgray
#685a68dimgray
Ring
#7edfecskyblue
#7edfecskyblue

Contrast

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

Light mode
Text on background5.93:1AA
Text on card7.30:1AAA
Primary button9.66:1AAA
Secondary button6.67:1AA
Muted text4.67:1AA
Accent5.23:1AA
Destructive3.87:1AA Large
Dark mode
Text on background5.93:1AA
Text on card7.30:1AAA
Primary button9.66:1AAA
Secondary button6.67:1AA
Muted text4.67:1AA
Accent5.23:1AA
Destructive3.87:1AA Large

CSS variables

Paste this into your globals.css to use P. \ Haze in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.408 0.054 326.512);
  --foreground: oklch(0.86 0.03 35.944);
  --muted: oklch(0.447 0.043 326.261);
  --muted-foreground: oklch(0.84 0.021 325.766);
  --popover: oklch(0.381 0.05 326.497);
  --popover-foreground: oklch(0.943 0.012 35.974);
  --card: oklch(0.39 0.051 326.502);
  --card-foreground: oklch(0.901 0.021 35.954);
  --border: oklch(0.459 0.025 325.983);
  --input: oklch(0.486 0.027 325.987);
  --primary: oklch(0.849 0.093 206.59);
  --primary-foreground: oklch(0.27 0.041 207.789);
  --secondary: oklch(0.402 0.04 206.467);
  --secondary-foreground: oklch(0.897 0.022 206.316);
  --accent: oklch(0.541 0.076 326.559);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.221 27.037);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.849 0.093 206.59);
  --chart-1: oklch(0.849 0.093 206.59);
  --chart-2: oklch(0.402 0.04 206.467);
  --chart-3: oklch(0.541 0.076 326.559);
  --chart-4: oklch(0.434 0.044 206.482);
  --chart-5: oklch(0.852 0.096 206.636);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.408 0.054 326.512);
  --foreground: oklch(0.86 0.03 35.944);
  --muted: oklch(0.447 0.043 326.261);
  --muted-foreground: oklch(0.84 0.021 325.766);
  --popover: oklch(0.381 0.05 326.497);
  --popover-foreground: oklch(0.943 0.012 35.974);
  --card: oklch(0.39 0.051 326.502);
  --card-foreground: oklch(0.901 0.021 35.954);
  --border: oklch(0.459 0.025 325.983);
  --input: oklch(0.486 0.027 325.987);
  --primary: oklch(0.849 0.093 206.59);
  --primary-foreground: oklch(0.27 0.041 207.789);
  --secondary: oklch(0.402 0.04 206.467);
  --secondary-foreground: oklch(0.897 0.022 206.316);
  --accent: oklch(0.541 0.076 326.559);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.221 27.037);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.849 0.093 206.59);
  --chart-1: oklch(0.849 0.093 206.59);
  --chart-2: oklch(0.402 0.04 206.467);
  --chart-3: oklch(0.541 0.076 326.559);
  --chart-4: oklch(0.434 0.044 206.482);
  --chart-5: oklch(0.852 0.096 206.636);
}