Analogy for shadcn/ui

Analogy is a shadcn/ui theme built around a vivid green primary color (#59e899) with vivid teal accents (#59e8e1). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the vivid green primary (#59e899) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#030705black
Foreground
#020805black
#f9fbfamintcream
Card
#fbfdfcwhite
#030705black
Card foreground
#020805black
#f9fbfamintcream
Popover
#fbfdfcwhite
#030705black
Popover foreground
#020805black
#f9fbfamintcream
Primary
#59e899mediumaquamarine
#59e899mediumaquamarine
Primary foreground
#020d07black
#020d07black
Secondary
#60e859limegreen
#60e859limegreen
Secondary foreground
#020d02black
#020d02black
Muted
#eef7edhoneydew
#081208black
Muted foreground
#5f635fdimgray
#9ca09cdarkgray
Accent
#59e8e1turquoise
#59e8e1turquoise
Accent foreground
#020d0dblack
#020d0dblack
Destructive
#7d1507maroon
#f3422borangered
Destructive foreground
#fbc3bclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#59e899mediumaquamarine
#59e899mediumaquamarine

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button12.66:1AAA
Secondary button12.46:1AAA
Muted text5.58:1AA
Accent13.22:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button12.66:1AAA
Secondary button12.46:1AAA
Muted text7.20:1AAA
Accent13.22:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 162.554);
  --foreground: oklch(0.124 0.018 162.648);
  --muted: oklch(0.967 0.016 144.03);
  --muted-foreground: oklch(0.495 0.008 144.04);
  --popover: oklch(0.994 0.003 162.554);
  --popover-foreground: oklch(0.124 0.018 162.648);
  --card: oklch(0.994 0.003 162.554);
  --card-foreground: oklch(0.124 0.018 162.648);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.835 0.167 155.749);
  --primary-foreground: oklch(0.145 0.026 161.968);
  --secondary: oklch(0.827 0.219 142.5);
  --secondary-foreground: oklch(0.144 0.037 141.831);
  --accent: oklch(0.854 0.122 190.445);
  --accent-foreground: oklch(0.148 0.021 191.696);
  --destructive: oklch(0.383 0.14 31.068);
  --destructive-foreground: oklch(0.865 0.066 27.131);
  --ring: oklch(0.835 0.167 155.749);
  --chart-1: oklch(0.835 0.167 155.749);
  --chart-2: oklch(0.827 0.219 142.5);
  --chart-3: oklch(0.854 0.122 190.445);
  --chart-4: oklch(0.838 0.206 142.611);
  --chart-5: oklch(0.841 0.172 155.493);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.014 162.64);
  --foreground: oklch(0.986 0.003 162.55);
  --muted: oklch(0.168 0.025 143.068);
  --muted-foreground: oklch(0.702 0.007 144.072);
  --popover: oklch(0.122 0.014 162.64);
  --popover-foreground: oklch(0.986 0.003 162.55);
  --card: oklch(0.122 0.014 162.64);
  --card-foreground: oklch(0.986 0.003 162.55);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.835 0.167 155.749);
  --primary-foreground: oklch(0.145 0.026 161.968);
  --secondary: oklch(0.827 0.219 142.5);
  --secondary-foreground: oklch(0.144 0.037 141.831);
  --accent: oklch(0.854 0.122 190.445);
  --accent-foreground: oklch(0.148 0.021 191.696);
  --destructive: oklch(0.639 0.216 30.97);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.167 155.749);
  --chart-1: oklch(0.835 0.167 155.749);
  --chart-2: oklch(0.827 0.219 142.5);
  --chart-3: oklch(0.854 0.122 190.445);
  --chart-4: oklch(0.838 0.206 142.611);
  --chart-5: oklch(0.841 0.172 155.493);
}