Bet for shadcn/ui

Bet is a shadcn/ui theme built around a green primary color (#93c770) with green accents (#70c779). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#93c770) on a green-tinted background (#070a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#070a05black
Foreground
#091004black
#f7faf5whitesmoke
Card
#fcfcfcsnow
#0a0e07black
Card foreground
#070c03black
#fafcf8snow
Popover
#fcfcfcsnow
#0a0e07black
Popover foreground
#070c03black
#fafcf8snow
Primary
#93c770darkseagreen
#93c770darkseagreen
Primary foreground
#020401black
#020401black
Secondary
#bfc770darkkhaki
#bfc770darkkhaki
Secondary foreground
#030401black
#030401black
Muted
#e6e7dfgainsboro
#1f2018black
Muted foreground
#56564ddarkolivegreen
#b1b2a9darkgray
Accent
#70c779darkseagreen
#70c779darkseagreen
Accent foreground
#010402black
#010402black
Destructive
#8b180edarkred
#ea3a2acrimson
Destructive foreground
#fad4d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#93c770darkseagreen
#93c770darkseagreen

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card19.33:1AAA
Primary button10.45:1AAA
Secondary button11.38:1AAA
Muted text5.94:1AA
Accent9.96:1AAA
Destructive6.87:1AA
Dark mode
Text on background18.89:1AAA
Text on card18.91:1AAA
Primary button10.45:1AAA
Secondary button11.38:1AAA
Muted text7.67:1AAA
Accent9.96:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.028 132.026);
  --muted: oklch(0.925 0.011 111.227);
  --muted-foreground: oklch(0.451 0.016 111.656);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.144 0.024 131.066);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.144 0.024 131.066);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.773 0.129 133.888);
  --primary-foreground: oklch(0.098 0.013 131.203);
  --secondary: oklch(0.805 0.112 113.61);
  --secondary-foreground: oklch(0.101 0.011 112.126);
  --accent: oklch(0.756 0.14 146.222);
  --accent-foreground: oklch(0.096 0.014 147.605);
  --destructive: oklch(0.414 0.151 29.975);
  --destructive-foreground: oklch(0.902 0.043 24.114);
  --ring: oklch(0.773 0.129 133.888);
  --chart-1: oklch(0.773 0.129 133.888);
  --chart-2: oklch(0.805 0.112 113.61);
  --chart-3: oklch(0.756 0.14 146.222);
  --chart-4: oklch(0.819 0.104 113.376);
  --chart-5: oklch(0.78 0.137 133.999);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.014 131.475);
  --foreground: oklch(0.981 0.008 132.416);
  --muted: oklch(0.24 0.014 112.13);
  --muted-foreground: oklch(0.761 0.014 111.351);
  --popover: oklch(0.154 0.016 132.2);
  --popover-foreground: oklch(0.987 0.005 132.397);
  --card: oklch(0.154 0.016 132.2);
  --card-foreground: oklch(0.987 0.005 132.397);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.773 0.129 133.888);
  --primary-foreground: oklch(0.098 0.013 131.203);
  --secondary: oklch(0.805 0.112 113.61);
  --secondary-foreground: oklch(0.101 0.011 112.126);
  --accent: oklch(0.756 0.14 146.222);
  --accent-foreground: oklch(0.096 0.014 147.605);
  --destructive: oklch(0.616 0.215 29.72);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.773 0.129 133.888);
  --chart-1: oklch(0.773 0.129 133.888);
  --chart-2: oklch(0.805 0.112 113.61);
  --chart-3: oklch(0.756 0.14 146.222);
  --chart-4: oklch(0.819 0.104 113.376);
  --chart-5: oklch(0.78 0.137 133.999);
}