Best for shadcn/ui

Best is a shadcn/ui theme built around a vivid green primary color (#0ad65c) with vivid orange accents (#d65c0a). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the vivid green primary (#0ad65c) on a neutral background (#020805).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#020805black
Foreground
#031109black
#ffffffwhite
Card
#f7fdf9mintcream
#020805black
Card foreground
#031109black
#ffffffwhite
Popover
#f7fdf9mintcream
#020805black
Popover foreground
#031109black
#ffffffwhite
Primary
#0ad65cspringgreen
#0ad65cspringgreen
Primary foreground
#011308black
#011308black
Secondary
#5c0ad6darkviolet
#5c0ad6darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efedf3whitesmoke
#0f0c12black
Muted foreground
#544a64dimgray
#a69bb5darkgray
Accent
#d65c0achocolate
#d65c0achocolate
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ce4712chocolate
#e14e14chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0ad65cspringgreen
#0ad65cspringgreen

Contrast

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

Light mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button9.85:1AAA
Secondary button8.49:1AAA
Muted text7.09:1AAA
Accent3.89:1AA Large
Destructive4.60:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button9.85:1AAA
Secondary button8.49:1AAA
Muted text7.36:1AAA
Accent3.89:1AA Large
Destructive3.95: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.007 160.074);
  --foreground: oklch(0.161 0.029 158.101);
  --muted: oklch(0.949 0.009 304.216);
  --muted-foreground: oklch(0.429 0.044 302.855);
  --popover: oklch(0.988 0.007 160.074);
  --popover-foreground: oklch(0.161 0.029 158.101);
  --card: oklch(0.988 0.007 160.074);
  --card-foreground: oklch(0.161 0.029 158.101);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.766 0.217 148.533);
  --primary-foreground: oklch(0.167 0.037 157.468);
  --secondary: oklch(0.452 0.254 287.957);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.62 0.172 45.574);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.582 0.18 38.42);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.217 148.533);
  --chart-1: oklch(0.766 0.217 148.533);
  --chart-2: oklch(0.452 0.254 287.957);
  --chart-3: oklch(0.62 0.172 45.574);
  --chart-4: oklch(0.475 0.267 287.79);
  --chart-5: oklch(0.774 0.222 148.259);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.017 160.116);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.013 303.162);
  --muted-foreground: oklch(0.708 0.039 303.554);
  --popover: oklch(0.123 0.017 160.116);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.017 160.116);
  --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.766 0.217 148.533);
  --primary-foreground: oklch(0.167 0.037 157.468);
  --secondary: oklch(0.452 0.254 287.957);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.62 0.172 45.574);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.62 0.193 38.313);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.217 148.533);
  --chart-1: oklch(0.766 0.217 148.533);
  --chart-2: oklch(0.452 0.254 287.957);
  --chart-3: oklch(0.62 0.172 45.574);
  --chart-4: oklch(0.475 0.267 287.79);
  --chart-5: oklch(0.774 0.222 148.259);
}