Misty for shadcn/ui

Misty is a shadcn/ui theme built around a deep teal primary color (#153731) with muted light teal accents (#e8edec). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the deep teal primary (#153731) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#010403black
Foreground
#041512black
#fcfdfdwhite
Card
#f2fcfamintcream
#020807black
Card foreground
#03110eblack
#ffffffwhite
Popover
#f7fdfcmintcream
#010403black
Popover foreground
#041512black
#fcfdfdwhite
Primary
#153731darkslategray
#153731darkslategray
Primary foreground
#a3dcd1lightblue
#a3dcd1lightblue
Secondary
#e8edeclavender
#222a29darkslategray
Secondary foreground
#1a2321black
#b9c6c3silver
Muted
#d6e0degainsboro
#1f2927darkslategray
Muted foreground
#465d59darkslategray
#a2b9b5darkgray
Accent
#e8edeclavender
#222a29darkslategray
Accent foreground
#1a2321black
#b9c6c3silver
Destructive
#a00b08darkred
#da0f0bred
Destructive foreground
#fddeddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#153731darkslategray
#153731darkslategray

Contrast

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

Light mode
Text on background18.21:1AAA
Text on card18.47:1AAA
Primary button8.40:1AAA
Secondary button13.63:1AAA
Muted text5.25:1AA
Accent13.63:1AAA
Destructive6.55:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.18:1AAA
Primary button8.40:1AAA
Secondary button8.32:1AAA
Muted text7.24:1AAA
Accent8.32:1AAA
Destructive5.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 184.118);
  --foreground: oklch(0.18 0.025 180.588);
  --muted: oklch(0.899 0.011 183.982);
  --muted-foreground: oklch(0.458 0.028 182.544);
  --popover: oklch(0.989 0.007 184.118);
  --popover-foreground: oklch(0.18 0.025 180.588);
  --card: oklch(0.984 0.011 184.019);
  --card-foreground: oklch(0.163 0.022 181.592);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.311 0.042 179.715);
  --primary-foreground: oklch(0.852 0.061 182.258);
  --secondary: oklch(0.943 0.006 184.134);
  --secondary-foreground: oklch(0.247 0.013 182.879);
  --accent: oklch(0.943 0.006 184.134);
  --accent-foreground: oklch(0.247 0.013 182.879);
  --destructive: oklch(0.447 0.178 28.883);
  --destructive-foreground: oklch(0.925 0.035 18.965);
  --ring: oklch(0.311 0.042 179.715);
  --chart-1: oklch(0.311 0.042 179.715);
  --chart-2: oklch(0.943 0.006 184.134);
  --chart-3: oklch(0.943 0.006 184.134);
  --chart-4: oklch(0.964 0.004 184.204);
  --chart-5: oklch(0.314 0.044 179.431);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 184.08);
  --foreground: oklch(0.993 0.001 184.297);
  --muted: oklch(0.27 0.014 182.814);
  --muted-foreground: oklch(0.767 0.026 183.39);
  --popover: oklch(0.099 0.011 184.08);
  --popover-foreground: oklch(0.993 0.001 184.297);
  --card: oklch(0.125 0.014 184.08);
  --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.311 0.042 179.715);
  --primary-foreground: oklch(0.852 0.061 182.258);
  --secondary: oklch(0.277 0.011 183.21);
  --secondary-foreground: oklch(0.815 0.014 183.836);
  --accent: oklch(0.277 0.011 183.21);
  --accent-foreground: oklch(0.815 0.014 183.836);
  --destructive: oklch(0.562 0.225 29.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.311 0.042 179.715);
  --chart-1: oklch(0.311 0.042 179.715);
  --chart-2: oklch(0.277 0.011 183.21);
  --chart-3: oklch(0.277 0.011 183.21);
  --chart-4: oklch(0.31 0.013 183.16);
  --chart-5: oklch(0.314 0.044 179.431);
}