Misty for shadcn/ui

Misty is a shadcn/ui theme built around a vivid indigo primary color (#3e1ac1) with vivid green accents (#1ac13e). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid indigo primary (#3e1ac1) on an indigo-tinted background (#06050a).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#06050ablack
Foreground
#070316black
#faf9fbghostwhite
Card
#f9f8fcghostwhite
#06050ablack
Card foreground
#070316black
#faf9fbghostwhite
Popover
#f9f8fcghostwhite
#06050ablack
Popover foreground
#070316black
#faf9fbghostwhite
Primary
#3e1ac1rebeccapurple
#3e1ac1rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c13e1afirebrick
#c13e1afirebrick
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f5f1f0whitesmoke
#0f0b0ablack
Muted foreground
#5a4944darkolivegreen
#bbaaa5darkgray
Accent
#1ac13elimegreen
#1ac13elimegreen
Accent foreground
#020d04black
#020d04black
Destructive
#c44212firebrick
#eb602dchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3e1ac1rebeccapurple
#3e1ac1rebeccapurple

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button9.86:1AAA
Secondary button5.27:1AA
Muted text7.56:1AAA
Accent8.23:1AAA
Destructive5.08:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button9.86:1AAA
Secondary button5.27:1AA
Muted text8.75:1AAA
Accent8.23:1AAA
Destructive6.25:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 296.249);
  --foreground: oklch(0.125 0.045 291.883);
  --muted: oklch(0.96 0.004 35.996);
  --muted-foreground: oklch(0.421 0.025 35.958);
  --popover: oklch(0.981 0.004 296.249);
  --popover-foreground: oklch(0.125 0.045 291.883);
  --card: oklch(0.981 0.004 296.249);
  --card-foreground: oklch(0.125 0.045 291.883);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.411 0.23 279.089);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.549 0.173 35.484);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.707 0.213 145.356);
  --accent-foreground: oklch(0.144 0.031 151.272);
  --destructive: oklch(0.558 0.175 37.614);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.411 0.23 279.089);
  --chart-1: oklch(0.411 0.23 279.089);
  --chart-2: oklch(0.549 0.173 35.484);
  --chart-3: oklch(0.707 0.213 145.356);
  --chart-4: oklch(0.577 0.183 35.444);
  --chart-5: oklch(0.41 0.235 278.127);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.013 295.972);
  --foreground: oklch(0.984 0.002 296.3);
  --muted: oklch(0.156 0.007 35.945);
  --muted-foreground: oklch(0.75 0.021 35.948);
  --popover: oklch(0.122 0.013 295.972);
  --popover-foreground: oklch(0.984 0.002 296.3);
  --card: oklch(0.122 0.013 295.972);
  --card-foreground: oklch(0.984 0.002 296.3);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.411 0.23 279.089);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.549 0.173 35.484);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.707 0.213 145.356);
  --accent-foreground: oklch(0.144 0.031 151.272);
  --destructive: oklch(0.66 0.184 39.023);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.411 0.23 279.089);
  --chart-1: oklch(0.411 0.23 279.089);
  --chart-2: oklch(0.549 0.173 35.484);
  --chart-3: oklch(0.707 0.213 145.356);
  --chart-4: oklch(0.577 0.183 35.444);
  --chart-5: oklch(0.41 0.235 278.127);
}