Misty for shadcn/ui

Misty is a shadcn/ui theme built around a purple primary color (#653573) with green accents (#447335). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the purple primary (#653573) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fdfbfewhite
#030104black
Foreground
#0e0312black
#ffffffwhite
Card
#fdfbfewhite
#030104black
Card foreground
#0e0312black
#ffffffwhite
Popover
#fdfbfewhite
#030104black
Popover foreground
#0e0312black
#ffffffwhite
Primary
#653573rebeccapurple
#653573rebeccapurple
Primary foreground
#f1e7f4lavender
#f1e7f4lavender
Secondary
#447335darkolivegreen
#447335darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebf2e9linen
#0f160dblack
Muted foreground
#4b5747darkslategray
#acb8a8darkgray
Accent
#447335darkolivegreen
#447335darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#79300csaddlebrown
#e9601cchocolate
Destructive foreground
#f9d2bepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#653573rebeccapurple
#653573rebeccapurple

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.56:1AAA
Secondary button5.58:1AA
Muted text6.66:1AA
Accent5.58:1AA
Destructive6.69:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button7.56:1AAA
Secondary button5.58:1AA
Muted text8.89:1AAA
Accent5.58:1AA
Destructive6.13:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 318.325);
  --foreground: oklch(0.13 0.043 319.314);
  --muted: oklch(0.952 0.014 138.345);
  --muted-foreground: oklch(0.441 0.03 138.408);
  --popover: oklch(0.99 0.005 318.325);
  --popover-foreground: oklch(0.13 0.043 319.314);
  --card: oklch(0.99 0.005 318.325);
  --card-foreground: oklch(0.13 0.043 319.314);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.416 0.113 317.853);
  --primary-foreground: oklch(0.938 0.021 318.308);
  --secondary: oklch(0.507 0.106 138.821);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.507 0.106 138.821);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.407 0.111 43.006);
  --destructive-foreground: oklch(0.89 0.051 48.121);
  --ring: oklch(0.416 0.113 317.853);
  --chart-1: oklch(0.416 0.113 317.853);
  --chart-2: oklch(0.507 0.106 138.821);
  --chart-3: oklch(0.507 0.106 138.821);
  --chart-4: oklch(0.539 0.114 138.831);
  --chart-5: oklch(0.416 0.121 317.775);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.016 319.949);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.191 0.02 138.473);
  --muted-foreground: oklch(0.768 0.026 138.366);
  --popover: oklch(0.085 0.016 319.949);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.016 319.949);
  --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.416 0.113 317.853);
  --primary-foreground: oklch(0.938 0.021 318.308);
  --secondary: oklch(0.507 0.106 138.821);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.507 0.106 138.821);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.654 0.185 42.397);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.416 0.113 317.853);
  --chart-1: oklch(0.416 0.113 317.853);
  --chart-2: oklch(0.507 0.106 138.821);
  --chart-3: oklch(0.507 0.106 138.821);
  --chart-4: oklch(0.539 0.114 138.831);
  --chart-5: oklch(0.416 0.121 317.775);
}