Might for shadcn/ui

Might is a shadcn/ui theme built around a muted cyan primary color (#465459) with muted green accents (#545946). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#465459) on a cyan-tinted background (#060c0e).

Color palette

TokenLightDark
Background
#fbfdfewhite
#060c0eblack
Foreground
#030a0cblack
#f4f9famintcream
Card
#f7fbfcghostwhite
#071012black
Card foreground
#020708black
#f8fbfcghostwhite
Popover
#fbfdfewhite
#060c0eblack
Popover foreground
#030a0cblack
#f4f9famintcream
Primary
#465459darkslategray
#465459darkslategray
Primary foreground
#e5eaeblavender
#e5eaeblavender
Secondary
#594654darkslategray
#594654darkslategray
Secondary foreground
#ebe5ealavender
#ebe5ealavender
Muted
#eee8eclinen
#171116black
Muted foreground
#4e3c4adarkslategray
#c3b1bfsilver
Accent
#545946darkolivegreen
#545946darkolivegreen
Accent foreground
#eaebe5linen
#eaebe5linen
Destructive
#7d300dsaddlebrown
#d05116chocolate
Destructive foreground
#f9d4c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#465459darkslategray
#465459darkslategray

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.49:1AAA
Primary button6.47:1AA
Secondary button7.01:1AAA
Muted text8.37:1AAA
Accent6.08:1AA
Destructive6.61:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.52:1AAA
Primary button6.47:1AA
Secondary button7.01:1AAA
Muted text9.15:1AAA
Accent6.08:1AA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 217.755);
  --foreground: oklch(0.137 0.016 213.909);
  --muted: oklch(0.936 0.009 333.397);
  --muted-foreground: oklch(0.38 0.033 334.588);
  --popover: oklch(0.993 0.002 217.755);
  --popover-foreground: oklch(0.137 0.016 213.909);
  --card: oklch(0.986 0.004 217.767);
  --card-foreground: oklch(0.12 0.014 212.735);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.435 0.02 218.128);
  --primary-foreground: oklch(0.933 0.005 217.772);
  --secondary: oklch(0.418 0.034 334.514);
  --secondary-foreground: oklch(0.928 0.008 333.382);
  --accent: oklch(0.453 0.03 118.291);
  --accent-foreground: oklch(0.937 0.007 117.222);
  --destructive: oklch(0.414 0.115 41.819);
  --destructive-foreground: oklch(0.896 0.047 46.335);
  --ring: oklch(0.435 0.02 218.128);
  --chart-1: oklch(0.435 0.02 218.128);
  --chart-2: oklch(0.418 0.034 334.514);
  --chart-3: oklch(0.453 0.03 118.291);
  --chart-4: oklch(0.445 0.037 334.531);
  --chart-5: oklch(0.438 0.024 218.267);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.15 0.012 216.91);
  --foreground: oklch(0.979 0.005 217.773);
  --muted: oklch(0.189 0.014 334.354);
  --muted-foreground: oklch(0.78 0.028 333.805);
  --popover: oklch(0.15 0.012 216.91);
  --popover-foreground: oklch(0.979 0.005 217.773);
  --card: oklch(0.164 0.014 218.247);
  --card-foreground: oklch(0.986 0.003 217.762);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.435 0.02 218.128);
  --primary-foreground: oklch(0.933 0.005 217.772);
  --secondary: oklch(0.418 0.034 334.514);
  --secondary-foreground: oklch(0.928 0.008 333.382);
  --accent: oklch(0.453 0.03 118.291);
  --accent-foreground: oklch(0.937 0.007 117.222);
  --destructive: oklch(0.596 0.173 41.006);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.435 0.02 218.128);
  --chart-1: oklch(0.435 0.02 218.128);
  --chart-2: oklch(0.418 0.034 334.514);
  --chart-3: oklch(0.453 0.03 118.291);
  --chart-4: oklch(0.445 0.037 334.531);
  --chart-5: oklch(0.438 0.024 218.267);
}