Refined Green Dragonfly for shadcn/ui

Refined Green Dragonfly is a shadcn/ui theme built around a muted deep teal primary color (#364544) with muted deep blue accents (#363e45). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted deep teal primary (#364544) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#fbfefewhite
#030707black
Foreground
#05100fblack
#f9fbfbghostwhite
Card
#f7fdfcmintcream
#050a0ablack
Card foreground
#040c0bblack
#fcfdfdwhite
Popover
#fbfefewhite
#030707black
Popover foreground
#05100fblack
#f9fbfbghostwhite
Primary
#364544darkslategray
#364544darkslategray
Primary foreground
#d1dbdbgainsboro
#d1dbdbgainsboro
Secondary
#36453cdarkslategray
#36453cdarkslategray
Secondary foreground
#d1dbd6lightgrey
#d1dbd6lightgrey
Muted
#eef6f2whitesmoke
#09110cblack
Muted foreground
#526b5ddimgray
#94ad9fdarkseagreen
Accent
#363e45darkslategray
#363e45darkslategray
Accent foreground
#d1d7dblightgrey
#d1d7dblightgrey
Destructive
#791a0bmaroon
#e03015orangered
Destructive foreground
#f9c6bepink
#ffffffwhite
Border
#eef1f1whitesmoke
#1a1e1eblack
Input
#eef1f1whitesmoke
#1a1e1eblack
Ring
#364544darkslategray
#364544darkslategray

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.16:1AAA
Primary button7.15:1AAA
Secondary button7.18:1AAA
Muted text5.28:1AA
Accent7.49:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.48:1AAA
Text on card19.51:1AAA
Primary button7.15:1AAA
Secondary button7.18:1AAA
Muted text7.97:1AAA
Accent7.49:1AAA
Destructive4.56:1AA

CSS variables

Paste this into your globals.css to use Refined Green Dragonfly in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 193.552);
  --foreground: oklch(0.16 0.017 191.787);
  --muted: oklch(0.967 0.01 162.349);
  --muted-foreground: oklch(0.502 0.036 160.699);
  --popover: oklch(0.994 0.003 193.552);
  --popover-foreground: oklch(0.16 0.017 191.787);
  --card: oklch(0.989 0.006 193.497);
  --card-foreground: oklch(0.143 0.015 192.256);
  --border: oklch(0.956 0.003 193.553);
  --input: oklch(0.956 0.003 193.553);
  --primary: oklch(0.376 0.019 192.613);
  --primary-foreground: oklch(0.884 0.011 193.37);
  --secondary: oklch(0.373 0.023 160.963);
  --secondary-foreground: oklch(0.883 0.013 162.256);
  --accent: oklch(0.359 0.016 242.785);
  --accent-foreground: oklch(0.875 0.008 242.321);
  --destructive: oklch(0.38 0.132 31.647);
  --destructive-foreground: oklch(0.868 0.06 28.445);
  --ring: oklch(0.376 0.019 192.613);
  --chart-1: oklch(0.376 0.019 192.613);
  --chart-2: oklch(0.373 0.023 160.963);
  --chart-3: oklch(0.359 0.016 242.785);
  --chart-4: oklch(0.403 0.026 160.928);
  --chart-5: oklch(0.38 0.023 192.395);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 192.774);
  --foreground: oklch(0.986 0.002 193.562);
  --muted: oklch(0.167 0.016 160.185);
  --muted-foreground: oklch(0.725 0.033 161.429);
  --popover: oklch(0.122 0.009 192.774);
  --popover-foreground: oklch(0.986 0.002 193.562);
  --card: oklch(0.14 0.011 192.735);
  --card-foreground: oklch(0.993 0.001 193.585);
  --border: oklch(0.232 0.007 193.038);
  --input: oklch(0.232 0.007 193.038);
  --primary: oklch(0.376 0.019 192.613);
  --primary-foreground: oklch(0.884 0.011 193.37);
  --secondary: oklch(0.373 0.023 160.963);
  --secondary-foreground: oklch(0.883 0.013 162.256);
  --accent: oklch(0.359 0.016 242.785);
  --accent-foreground: oklch(0.875 0.008 242.321);
  --destructive: oklch(0.59 0.214 31.521);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.376 0.019 192.613);
  --chart-1: oklch(0.376 0.019 192.613);
  --chart-2: oklch(0.373 0.023 160.963);
  --chart-3: oklch(0.359 0.016 242.785);
  --chart-4: oklch(0.403 0.026 160.928);
  --chart-5: oklch(0.38 0.023 192.395);
}