Misty for shadcn/ui

Misty is a shadcn/ui theme built around a light pink primary color (#eca2cd) with light blue accents (#a2cdec). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#eca2cd) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0508black
Foreground
#000000black
#faf5f8whitesmoke
Card
#ffffffwhite
#0a0508black
Card foreground
#000000black
#faf5f8whitesmoke
Popover
#ffffffwhite
#0a0508black
Popover foreground
#000000black
#faf5f8whitesmoke
Primary
#eca2cdplum
#eca2cdplum
Primary foreground
#4c1033maroon
#4c1033maroon
Secondary
#cdeca2palegoldenrod
#cdeca2palegoldenrod
Secondary foreground
#334c10darkolivegreen
#334c10darkolivegreen
Muted
#e4ecdagainsboro
#1e2513black
Muted foreground
#61645edimgray
#9fa19bdarkgray
Accent
#a2cdeclightblue
#a2cdeclightblue
Accent foreground
#10334cdarkslategray
#10334cdarkslategray
Destructive
#bc1401firebrick
#fe311borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eca2cdplum
#eca2cdplum

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.42:1AAA
Secondary button7.38:1AAA
Muted text4.95:1AA
Accent7.80:1AAA
Destructive6.50:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button7.42:1AAA
Secondary button7.38:1AAA
Muted text6.05:1AA
Accent7.80:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.025 125.422);
  --muted-foreground: oklch(0.499 0.01 125.311);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.796 0.103 343.827);
  --primary-foreground: oklch(0.291 0.098 349.164);
  --secondary: oklch(0.903 0.102 126.719);
  --secondary-foreground: oklch(0.383 0.091 129.722);
  --accent: oklch(0.828 0.063 239.586);
  --accent-foreground: oklch(0.309 0.061 243.407);
  --destructive: oklch(0.505 0.199 30.502);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.796 0.103 343.827);
  --chart-1: oklch(0.796 0.103 343.827);
  --chart-2: oklch(0.903 0.102 126.719);
  --chart-3: oklch(0.828 0.063 239.586);
  --chart-4: oklch(0.916 0.088 126.452);
  --chart-5: oklch(0.795 0.108 343.953);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.014 341.059);
  --foreground: oklch(0.974 0.007 341.185);
  --muted: oklch(0.252 0.034 127.079);
  --muted-foreground: oklch(0.705 0.009 125.217);
  --popover: oklch(0.127 0.014 341.059);
  --popover-foreground: oklch(0.974 0.007 341.185);
  --card: oklch(0.127 0.014 341.059);
  --card-foreground: oklch(0.974 0.007 341.185);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.796 0.103 343.827);
  --primary-foreground: oklch(0.291 0.098 349.164);
  --secondary: oklch(0.903 0.102 126.719);
  --secondary-foreground: oklch(0.383 0.091 129.722);
  --accent: oklch(0.828 0.063 239.586);
  --accent-foreground: oklch(0.309 0.061 243.407);
  --destructive: oklch(0.644 0.239 30.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.796 0.103 343.827);
  --chart-1: oklch(0.796 0.103 343.827);
  --chart-2: oklch(0.903 0.102 126.719);
  --chart-3: oklch(0.828 0.063 239.586);
  --chart-4: oklch(0.916 0.088 126.452);
  --chart-5: oklch(0.795 0.108 343.953);
}