Misty for shadcn/ui

Misty is a shadcn/ui theme built around a cyan primary color (#5fbed3) with red accents (#d3745f). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the cyan primary (#5fbed3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#000000black
Foreground
#020708black
#ffffffwhite
Card
#f3fafcaliceblue
#030303black
Card foreground
#010304black
#ffffffwhite
Popover
#f7fcfdghostwhite
#000000black
Popover foreground
#020708black
#ffffffwhite
Primary
#5fbed3mediumturquoise
#5fbed3mediumturquoise
Primary foreground
#000000black
#000000black
Secondary
#d3745findianred
#d3745findianred
Secondary foreground
#000000black
#000000black
Muted
#edddd9gainsboro
#261612black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#d3745findianred
#d3745findianred
Accent foreground
#000000black
#000000black
Destructive
#a01303darkred
#fa220ared
Destructive foreground
#fedbd7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5fbed3mediumturquoise
#5fbed3mediumturquoise

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.60:1AAA
Primary button9.77:1AAA
Secondary button6.44:1AA
Muted text7.84:1AAA
Accent6.44:1AA
Destructive6.31:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button9.77:1AAA
Secondary button6.44:1AA
Muted text9.48:1AAA
Accent6.44:1AA
Destructive3.96: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.987 0.006 212.666);
  --foreground: oklch(0.121 0.012 208.974);
  --muted: oklch(0.908 0.019 32.675);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.987 0.006 212.666);
  --popover-foreground: oklch(0.121 0.012 208.974);
  --card: oklch(0.981 0.008 212.669);
  --card-foreground: oklch(0.096 0.009 208.974);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.751 0.094 214.371);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.661 0.124 33.698);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.661 0.124 33.698);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.451 0.175 30.592);
  --destructive-foreground: oklch(0.92 0.04 25.4);
  --ring: oklch(0.751 0.094 214.371);
  --chart-1: oklch(0.751 0.094 214.371);
  --chart-2: oklch(0.661 0.124 33.698);
  --chart-3: oklch(0.661 0.124 33.698);
  --chart-4: oklch(0.685 0.114 33.528);
  --chart-5: oklch(0.756 0.098 214.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.028 33.234);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.751 0.094 214.371);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.661 0.124 33.698);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.661 0.124 33.698);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.628 0.245 30.355);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.751 0.094 214.371);
  --chart-1: oklch(0.751 0.094 214.371);
  --chart-2: oklch(0.661 0.124 33.698);
  --chart-3: oklch(0.661 0.124 33.698);
  --chart-4: oklch(0.685 0.114 33.528);
  --chart-5: oklch(0.756 0.098 214.547);
}