Both for shadcn/ui

Both is a shadcn/ui theme built around a muted light green primary color (#cad8cd) with muted light purple accents (#d8cad5). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted light green primary (#cad8cd) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#fbfefcwhite
#030704black
Foreground
#010903black
#f9fbf9mintcream
Card
#f7fdf8mintcream
#040b06black
Card foreground
#010501black
#fcfdfcwhite
Popover
#f7fdf8mintcream
#040b06black
Popover foreground
#010501black
#fcfdfcwhite
Primary
#cad8cdlightgrey
#cad8cdlightgrey
Primary foreground
#2f4133darkslategray
#2f4133darkslategray
Secondary
#d8cad5lightgrey
#d8cad5lightgrey
Secondary foreground
#412f3ddarkslategray
#412f3ddarkslategray
Muted
#ecdae8gainsboro
#251321black
Muted foreground
#5b575adimgray
#a8a4a7darkgray
Accent
#d8cad5lightgrey
#d8cad5lightgrey
Accent foreground
#412f3ddarkslategray
#412f3ddarkslategray
Destructive
#c65310chocolate
#ee722bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cad8cdlightgrey
#cad8cdlightgrey

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.90:1AAA
Primary button7.40:1AAA
Secondary button7.84:1AAA
Muted text5.33:1AA
Accent7.84:1AAA
Destructive4.52:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.49:1AAA
Primary button7.40:1AAA
Secondary button7.84:1AAA
Muted text7.13:1AAA
Accent7.84:1AAA
Destructive7.08:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 152.541);
  --foreground: oklch(0.125 0.028 151.492);
  --muted: oklch(0.907 0.026 333.059);
  --muted-foreground: oklch(0.463 0.006 332.829);
  --popover: oklch(0.988 0.01 152.464);
  --popover-foreground: oklch(0.1 0.022 151.492);
  --card: oklch(0.988 0.01 152.464);
  --card-foreground: oklch(0.1 0.022 151.492);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.869 0.022 152.21);
  --primary-foreground: oklch(0.355 0.033 151.031);
  --secondary: oklch(0.854 0.022 333.02);
  --secondary-foreground: oklch(0.332 0.035 334.157);
  --accent: oklch(0.854 0.022 333.02);
  --accent-foreground: oklch(0.332 0.035 334.157);
  --destructive: oklch(0.583 0.163 44.156);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0.022 152.21);
  --chart-1: oklch(0.869 0.022 152.21);
  --chart-2: oklch(0.854 0.022 333.02);
  --chart-3: oklch(0.854 0.022 333.02);
  --chart-4: oklch(0.878 0.019 332.942);
  --chart-5: oklch(0.871 0.026 152.134);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.016 151.975);
  --foreground: oklch(0.986 0.002 152.579);
  --muted: oklch(0.218 0.037 335.055);
  --muted-foreground: oklch(0.722 0.006 332.739);
  --popover: oklch(0.139 0.019 151.934);
  --popover-foreground: oklch(0.993 0.001 152.598);
  --card: oklch(0.139 0.019 151.934);
  --card-foreground: oklch(0.993 0.001 152.598);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.869 0.022 152.21);
  --primary-foreground: oklch(0.355 0.033 151.031);
  --secondary: oklch(0.854 0.022 333.02);
  --secondary-foreground: oklch(0.332 0.035 334.157);
  --accent: oklch(0.854 0.022 333.02);
  --accent-foreground: oklch(0.332 0.035 334.157);
  --destructive: oklch(0.689 0.172 46.527);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.869 0.022 152.21);
  --chart-1: oklch(0.869 0.022 152.21);
  --chart-2: oklch(0.854 0.022 333.02);
  --chart-3: oklch(0.854 0.022 333.02);
  --chart-4: oklch(0.878 0.019 332.942);
  --chart-5: oklch(0.871 0.026 152.134);
}