Best for shadcn/ui

Best is a shadcn/ui theme built around a neutral gray primary color (#2b312c) with neutral gray accents (#312b2f). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the neutral gray primary (#2b312c) on a green-tinted background (#050f07).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#050f07black
Foreground
#030c05black
#ffffffwhite
Card
#f3fcf5mintcream
#061309black
Card foreground
#020803black
#ffffffwhite
Popover
#f7fdf8mintcream
#050f07black
Popover foreground
#030c05black
#ffffffwhite
Primary
#2b312cdarkslategray
#2b312cdarkslategray
Primary foreground
#c4cac5silver
#c4cac5silver
Secondary
#312b2fdarkslategray
#312b2fdarkslategray
Secondary foreground
#cac4c9silver
#cac4c9silver
Muted
#f3e7f0whitesmoke
#180c15black
Muted foreground
#6e5969dimgray
#a691a1darkgray
Accent
#312b2fdarkslategray
#312b2fdarkslategray
Accent foreground
#cac4c9silver
#cac4c9silver
Destructive
#b81f14firebrick
#e94135tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b312cdarkslategray
#2b312cdarkslategray

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.29:1AAA
Primary button8.00:1AAA
Secondary button8.06:1AAA
Muted text5.31:1AA
Accent8.06:1AAA
Destructive6.48:1AA
Dark mode
Text on background19.43:1AAA
Text on card18.97:1AAA
Primary button8.00:1AAA
Secondary button8.06:1AAA
Muted text6.52:1AA
Accent8.06:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 153.091);
  --foreground: oklch(0.142 0.026 152.244);
  --muted: oklch(0.94 0.018 333.555);
  --muted-foreground: oklch(0.49 0.038 334.446);
  --popover: oklch(0.988 0.009 153.091);
  --popover-foreground: oklch(0.142 0.026 152.244);
  --card: oklch(0.982 0.014 153.013);
  --card-foreground: oklch(0.124 0.022 152.424);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.305 0.011 152.654);
  --primary-foreground: oklch(0.833 0.01 153.039);
  --secondary: oklch(0.297 0.011 333.82);
  --secondary-foreground: oklch(0.826 0.01 333.441);
  --accent: oklch(0.297 0.011 333.82);
  --accent-foreground: oklch(0.826 0.01 333.441);
  --destructive: oklch(0.504 0.188 29.548);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.305 0.011 152.654);
  --chart-1: oklch(0.305 0.011 152.654);
  --chart-2: oklch(0.297 0.011 333.82);
  --chart-3: oklch(0.297 0.011 333.82);
  --chart-4: oklch(0.327 0.012 333.84);
  --chart-5: oklch(0.307 0.016 152.36);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.024 151.813);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.175 0.028 335.639);
  --muted-foreground: oklch(0.68 0.035 334.052);
  --popover: oklch(0.156 0.024 151.813);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.172 0.028 150.93);
  --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.305 0.011 152.654);
  --primary-foreground: oklch(0.833 0.01 153.039);
  --secondary: oklch(0.297 0.011 333.82);
  --secondary-foreground: oklch(0.826 0.01 333.441);
  --accent: oklch(0.297 0.011 333.82);
  --accent-foreground: oklch(0.826 0.01 333.441);
  --destructive: oklch(0.621 0.206 28.642);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.305 0.011 152.654);
  --chart-1: oklch(0.305 0.011 152.654);
  --chart-2: oklch(0.297 0.011 333.82);
  --chart-3: oklch(0.297 0.011 333.82);
  --chart-4: oklch(0.327 0.012 333.84);
  --chart-5: oklch(0.307 0.016 152.36);
}