Misty for shadcn/ui

Misty is a shadcn/ui theme built around a green primary color (#6bd18b) with teal accents (#6bd1bf). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#6bd18b) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#ffffffwhite
#030704black
Foreground
#020804black
#f6f8f7whitesmoke
Card
#fcfcfcsnow
#050a07black
Card foreground
#010402black
#f9fbfamintcream
Popover
#ffffffwhite
#030704black
Popover foreground
#020804black
#f6f8f7whitesmoke
Primary
#6bd18bmediumaquamarine
#6bd18bmediumaquamarine
Primary foreground
#020804black
#020804black
Secondary
#7ed16bdarkseagreen
#7ed16bdarkseagreen
Secondary foreground
#030802black
#030802black
Muted
#edf5ebhoneydew
#0c140ablack
Muted foreground
#3a4937darkslategray
#bac8b6silver
Accent
#6bd1bfmediumaquamarine
#6bd1bfmediumaquamarine
Accent foreground
#020807black
#020807black
Destructive
#c64410chocolate
#e24d12chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6bd18bmediumaquamarine
#6bd18bmediumaquamarine

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.15:1AAA
Primary button10.74:1AAA
Secondary button10.82:1AAA
Muted text8.59:1AAA
Accent11.08:1AAA
Destructive4.96:1AA
Dark mode
Text on background18.99:1AAA
Text on card19.16:1AAA
Primary button10.74:1AAA
Secondary button10.82:1AAA
Muted text10.71:1AAA
Accent11.08:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.021 156.104);
  --muted: oklch(0.96 0.015 139.977);
  --muted-foreground: oklch(0.386 0.035 139.92);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.021 156.104);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.016 156.104);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.782 0.14 152.223);
  --primary-foreground: oklch(0.123 0.018 156.173);
  --secondary: oklch(0.785 0.161 139.973);
  --secondary-foreground: oklch(0.123 0.021 138.354);
  --accent: oklch(0.795 0.1 180.117);
  --accent-foreground: oklch(0.124 0.013 184.087);
  --destructive: oklch(0.564 0.175 38.345);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.782 0.14 152.223);
  --chart-1: oklch(0.782 0.14 152.223);
  --chart-2: oklch(0.785 0.161 139.973);
  --chart-3: oklch(0.795 0.1 180.117);
  --chart-4: oklch(0.801 0.149 139.942);
  --chart-5: oklch(0.788 0.146 151.987);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.012 156.292);
  --foreground: oklch(0.978 0.003 156.496);
  --muted: oklch(0.18 0.023 139.909);
  --muted-foreground: oklch(0.817 0.029 139.959);
  --popover: oklch(0.12 0.012 156.292);
  --popover-foreground: oklch(0.978 0.003 156.496);
  --card: oklch(0.138 0.014 156.288);
  --card-foreground: oklch(0.986 0.002 156.517);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.782 0.14 152.223);
  --primary-foreground: oklch(0.123 0.018 156.173);
  --secondary: oklch(0.785 0.161 139.973);
  --secondary-foreground: oklch(0.123 0.021 138.354);
  --accent: oklch(0.795 0.1 180.117);
  --accent-foreground: oklch(0.124 0.013 184.087);
  --destructive: oklch(0.622 0.195 38.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.782 0.14 152.223);
  --chart-1: oklch(0.782 0.14 152.223);
  --chart-2: oklch(0.785 0.161 139.973);
  --chart-3: oklch(0.795 0.1 180.117);
  --chart-4: oklch(0.801 0.149 139.942);
  --chart-5: oklch(0.788 0.146 151.987);
}