Methodology for shadcn/ui

Methodology is a shadcn/ui theme built around a green primary color (#86d449) with green accents (#49d453). The light mode uses a neutral background (#fafcf8). Dark mode keeps the green primary (#86d449) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#fafcf8snow
#050802black
Foreground
#000000black
#f7f9f6whitesmoke
Card
#f7faf5whitesmoke
#070c03black
Card foreground
#000000black
#fafbf9snow
Popover
#f7faf5whitesmoke
#070c03black
Popover foreground
#000000black
#fafbf9snow
Primary
#86d449yellowgreen
#86d449yellowgreen
Primary foreground
#254210darkgreen
#254210darkgreen
Secondary
#cbd449darkkhaki
#cbd449darkkhaki
Secondary foreground
#3f4210darkolivegreen
#3f4210darkolivegreen
Muted
#e7e9ceantiquewhite
#2f3116darkslategray
Muted foreground
#5d5f4fdimgray
#afb0a0darkgray
Accent
#49d453limegreen
#49d453limegreen
Accent foreground
#000000black
#000000black
Destructive
#aa1a03firebrick
#fb4023orangered
Destructive foreground
#fee5e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#86d449yellowgreen
#86d449yellowgreen

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card19.95:1AAA
Primary button6.19:1AA
Secondary button6.55:1AA
Muted text5.26:1AA
Accent10.86:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.03:1AAA
Primary button6.19:1AA
Secondary button6.55:1AA
Muted text6.04:1AA
Accent10.86:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 131.131);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.925 0.036 110.192);
  --muted-foreground: oklch(0.478 0.024 110.406);
  --popover: oklch(0.982 0.008 131.156);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 131.156);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.792 0.189 134.172);
  --primary-foreground: oklch(0.344 0.084 134.309);
  --secondary: oklch(0.839 0.159 113.024);
  --secondary-foreground: oklch(0.365 0.07 113.106);
  --accent: oklch(0.769 0.209 144.2);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.474 0.18 31.323);
  --destructive-foreground: oklch(0.941 0.029 28.115);
  --ring: oklch(0.792 0.189 134.172);
  --chart-1: oklch(0.792 0.189 134.172);
  --chart-2: oklch(0.839 0.159 113.024);
  --chart-3: oklch(0.769 0.209 144.2);
  --chart-4: oklch(0.849 0.152 112.783);
  --chart-5: oklch(0.8 0.195 134.338);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.02 129.731);
  --foreground: oklch(0.979 0.004 131.118);
  --muted: oklch(0.305 0.044 112.074);
  --muted-foreground: oklch(0.752 0.022 110.014);
  --popover: oklch(0.145 0.023 129.912);
  --popover-foreground: oklch(0.986 0.003 131.107);
  --card: oklch(0.145 0.023 129.912);
  --card-foreground: oklch(0.986 0.003 131.107);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.792 0.189 134.172);
  --primary-foreground: oklch(0.344 0.084 134.309);
  --secondary: oklch(0.839 0.159 113.024);
  --secondary-foreground: oklch(0.365 0.07 113.106);
  --accent: oklch(0.769 0.209 144.2);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.649 0.226 31.646);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.792 0.189 134.172);
  --chart-1: oklch(0.792 0.189 134.172);
  --chart-2: oklch(0.839 0.159 113.024);
  --chart-3: oklch(0.769 0.209 144.2);
  --chart-4: oklch(0.849 0.152 112.783);
  --chart-5: oklch(0.8 0.195 134.338);
}