bEST for shadcn/ui

bEST is a shadcn/ui theme built around an orange primary color (#d58920) with violet accents (#8920d5). The light mode uses a neutral background (#fbfaf8). Dark mode keeps the orange primary (#d58920) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#fbfaf8snow
#070503black
Foreground
#000000black
#ffffffwhite
Card
#fbfaf8snow
#070503black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfaf8snow
#070503black
Popover foreground
#000000black
#ffffffwhite
Primary
#d58920goldenrod
#d58920goldenrod
Primary foreground
#231705black
#231705black
Secondary
#20d589lightseagreen
#20d589lightseagreen
Secondary foreground
#052317black
#052317black
Muted
#d3e4ddgainsboro
#1b2c25darkslategray
Muted foreground
#5f6764dimgray
#98a09cdarkgray
Accent
#8920d5blueviolet
#8920d5blueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b12e06firebrick
#f64813orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e2e1dfgainsboro
#282724darkslategray
Input
#e2e1dfgainsboro
#282724darkslategray
Ring
#d58920goldenrod
#d58920goldenrod

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button6.23:1AA
Secondary button8.68:1AAA
Muted text4.39:1AA Large
Accent6.48:1AA
Destructive6.41:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button6.23:1AA
Secondary button8.68:1AAA
Muted text5.47:1AA
Accent6.48:1AA
Destructive3.57: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.986 0.003 76.64);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.903 0.02 169.037);
  --muted-foreground: oklch(0.507 0.011 169.04);
  --popover: oklch(0.986 0.003 76.64);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.003 76.64);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.909 0.003 76.638);
  --input: oklch(0.909 0.003 76.638);
  --primary: oklch(0.694 0.143 68.579);
  --primary-foreground: oklch(0.216 0.036 74.134);
  --secondary: oklch(0.772 0.174 158.282);
  --secondary-foreground: oklch(0.231 0.044 162.277);
  --accent: oklch(0.514 0.247 304.738);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.504 0.173 34.954);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.143 68.579);
  --chart-1: oklch(0.694 0.143 68.579);
  --chart-2: oklch(0.772 0.174 158.282);
  --chart-3: oklch(0.514 0.247 304.738);
  --chart-4: oklch(0.798 0.177 158.619);
  --chart-5: oklch(0.699 0.146 67.926);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.009 81.659);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.276 0.025 166.71);
  --muted-foreground: oklch(0.697 0.01 169.248);
  --popover: oklch(0.12 0.009 81.659);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.009 81.659);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.272 0.005 76.565);
  --input: oklch(0.272 0.005 76.565);
  --primary: oklch(0.694 0.143 68.579);
  --primary-foreground: oklch(0.216 0.036 74.134);
  --secondary: oklch(0.772 0.174 158.282);
  --secondary-foreground: oklch(0.231 0.044 162.277);
  --accent: oklch(0.514 0.247 304.738);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.649 0.218 35.289);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.143 68.579);
  --chart-1: oklch(0.694 0.143 68.579);
  --chart-2: oklch(0.772 0.174 158.282);
  --chart-3: oklch(0.514 0.247 304.738);
  --chart-4: oklch(0.798 0.177 158.619);
  --chart-5: oklch(0.699 0.146 67.926);
}