Both for shadcn/ui

Both is a shadcn/ui theme built around a vivid green primary color (#8be228) with vivid violet accents (#7e28e2). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid green primary (#8be228) on a neutral background (#050803).

Color palette

TokenLightDark
Background
#fdfefbwhite
#050803black
Foreground
#080d02black
#ffffffwhite
Card
#fdfefbwhite
#050803black
Card foreground
#080d02black
#ffffffwhite
Popover
#fdfefbwhite
#050803black
Popover foreground
#080d02black
#ffffffwhite
Primary
#8be228yellowgreen
#8be228yellowgreen
Primary foreground
#203607darkgreen
#203607darkgreen
Secondary
#7e28e2blueviolet
#7e28e2blueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5ddeelavender
#191122black
Muted foreground
#59565ddimgray
#a6a2a9darkgray
Accent
#7e28e2blueviolet
#7e28e2blueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bc2710firebrick
#dd2e13orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8be228yellowgreen
#8be228yellowgreen

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button8.14:1AAA
Secondary button6.39:1AA
Muted text5.44:1AA
Accent6.39:1AA
Destructive6.12:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button8.14:1AAA
Secondary button6.39:1AA
Muted text7.32:1AAA
Accent6.39:1AA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 127.173);
  --foreground: oklch(0.15 0.029 126.344);
  --muted: oklch(0.908 0.026 306.767);
  --muted-foreground: oklch(0.458 0.012 306.787);
  --popover: oklch(0.995 0.005 127.173);
  --popover-foreground: oklch(0.15 0.029 126.344);
  --card: oklch(0.995 0.005 127.173);
  --card-foreground: oklch(0.15 0.029 126.344);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.825 0.22 132.653);
  --primary-foreground: oklch(0.303 0.075 131.596);
  --secondary: oklch(0.517 0.251 297.484);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.517 0.251 297.484);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.517 0.187 31.54);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.825 0.22 132.653);
  --chart-1: oklch(0.825 0.22 132.653);
  --chart-2: oklch(0.517 0.251 297.484);
  --chart-3: oklch(0.517 0.251 297.484);
  --chart-4: oklch(0.54 0.242 299.019);
  --chart-5: oklch(0.834 0.225 132.876);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.017 126.205);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.037 304.715);
  --muted-foreground: oklch(0.718 0.011 306.927);
  --popover: oklch(0.126 0.017 126.205);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.017 126.205);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.825 0.22 132.653);
  --primary-foreground: oklch(0.303 0.075 131.596);
  --secondary: oklch(0.517 0.251 297.484);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.517 0.251 297.484);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.582 0.213 31.497);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.825 0.22 132.653);
  --chart-1: oklch(0.825 0.22 132.653);
  --chart-2: oklch(0.517 0.251 297.484);
  --chart-3: oklch(0.517 0.251 297.484);
  --chart-4: oklch(0.54 0.242 299.019);
  --chart-5: oklch(0.834 0.225 132.876);
}