Misty for shadcn/ui

Misty is a shadcn/ui theme built around a vivid violet primary color (#c167f9) with vivid green accents (#9ff967). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid violet primary (#c167f9) on a violet-tinted background (#08040b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#08040bblack
Foreground
#000000black
#faf9fbghostwhite
Card
#fdfbfewhite
#08040bblack
Card foreground
#000000black
#faf9fbghostwhite
Popover
#fdfbfewhite
#08040bblack
Popover foreground
#000000black
#faf9fbghostwhite
Primary
#c167f9mediumorchid
#c167f9mediumorchid
Primary foreground
#1c022cblack
#1c022cblack
Secondary
#9ff967lightgreen
#9ff967lightgreen
Secondary foreground
#122c02black
#122c02black
Muted
#e1ecd9gainsboro
#1a2613black
Muted foreground
#494e46darkslategray
#b4b9b1silver
Accent
#9ff967lightgreen
#9ff967lightgreen
Accent foreground
#122c02black
#122c02black
Destructive
#612205maroon
#f35912orangered
Destructive foreground
#fabb9elightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c167f9mediumorchid
#c167f9mediumorchid

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button6.01:1AA
Secondary button11.66:1AAA
Muted text7.00:1AAA
Accent11.66:1AAA
Destructive7.27:1AAA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button6.01:1AA
Secondary button11.66:1AAA
Muted text7.93:1AAA
Accent11.66:1AAA
Destructive3.37:1AA Large

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.004 312.955);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.931 0.028 133.197);
  --muted-foreground: oklch(0.416 0.013 133.211);
  --popover: oklch(0.99 0.004 312.955);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.004 312.955);
  --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.679 0.217 310.331);
  --primary-foreground: oklch(0.178 0.084 309.063);
  --secondary: oklch(0.895 0.2 135.192);
  --secondary-foreground: oklch(0.262 0.075 135.801);
  --accent: oklch(0.895 0.2 135.192);
  --accent-foreground: oklch(0.262 0.075 135.801);
  --destructive: oklch(0.343 0.099 41.568);
  --destructive-foreground: oklch(0.843 0.083 45.954);
  --ring: oklch(0.679 0.217 310.331);
  --chart-1: oklch(0.679 0.217 310.331);
  --chart-2: oklch(0.895 0.2 135.192);
  --chart-3: oklch(0.895 0.2 135.192);
  --chart-4: oklch(0.903 0.183 134.866);
  --chart-5: oklch(0.678 0.222 310.21);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.02 314.295);
  --foreground: oklch(0.983 0.004 312.957);
  --muted: oklch(0.25 0.038 134.225);
  --muted-foreground: oklch(0.779 0.011 133.087);
  --popover: oklch(0.122 0.02 314.295);
  --popover-foreground: oklch(0.983 0.004 312.957);
  --card: oklch(0.122 0.02 314.295);
  --card-foreground: oklch(0.983 0.004 312.957);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.679 0.217 310.331);
  --primary-foreground: oklch(0.178 0.084 309.063);
  --secondary: oklch(0.895 0.2 135.192);
  --secondary-foreground: oklch(0.262 0.075 135.801);
  --accent: oklch(0.895 0.2 135.192);
  --accent-foreground: oklch(0.262 0.075 135.801);
  --destructive: oklch(0.661 0.201 39.954);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.679 0.217 310.331);
  --chart-1: oklch(0.679 0.217 310.331);
  --chart-2: oklch(0.895 0.2 135.192);
  --chart-3: oklch(0.895 0.2 135.192);
  --chart-4: oklch(0.903 0.183 134.866);
  --chart-5: oklch(0.678 0.222 310.21);
}