Bet for shadcn/ui

Bet is a shadcn/ui theme built around a neutral gray primary color (#99a498) with muted light green accents (#c9d5c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#99a498) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#031203black
#f9fbf9mintcream
Card
#fcfcfcsnow
#030303black
Card foreground
#030d02black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#031203black
#f9fbf9mintcream
Primary
#99a498darkgray
#99a498darkgray
Primary foreground
#050505black
#050505black
Secondary
#c9d5c8lightgrey
#111811black
Secondary foreground
#2f3d2fdarkslategray
#9fbd9edarkseagreen
Muted
#dce5dcgainsboro
#1a231ablack
Muted foreground
#4f644fdarkolivegreen
#9cb09bdarkgray
Accent
#c9d5c8lightgrey
#111811black
Accent foreground
#2f3d2fdarkslategray
#9fbd9edarkseagreen
Destructive
#92390csaddlebrown
#e25812chocolate
Destructive foreground
#fce2d5antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#99a498darkgray
#99a498darkgray

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.34:1AAA
Primary button7.86:1AAA
Secondary button7.55:1AAA
Muted text4.98:1AA
Accent7.55:1AAA
Destructive6.04:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.28:1AAA
Primary button7.86:1AAA
Secondary button8.80:1AAA
Muted text6.97:1AA
Accent8.80:1AAA
Destructive3.72: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.04 142.47);
  --muted: oklch(0.913 0.017 144.501);
  --muted-foreground: oklch(0.48 0.042 144.033);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.161 0.04 142.47);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.143 0.035 142.444);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.706 0.021 144.426);
  --primary-foreground: oklch(0.116 0.003 144.443);
  --secondary: oklch(0.86 0.022 144.455);
  --secondary-foreground: oklch(0.341 0.03 144.037);
  --accent: oklch(0.86 0.022 144.455);
  --accent-foreground: oklch(0.341 0.03 144.037);
  --destructive: oklch(0.462 0.132 42.2);
  --destructive-foreground: oklch(0.929 0.034 48.338);
  --ring: oklch(0.706 0.021 144.426);
  --chart-1: oklch(0.706 0.021 144.426);
  --chart-2: oklch(0.86 0.022 144.455);
  --chart-3: oklch(0.86 0.022 144.455);
  --chart-4: oklch(0.882 0.018 144.486);
  --chart-5: oklch(0.71 0.031 144.33);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 144.597);
  --muted: oklch(0.246 0.023 144);
  --muted-foreground: oklch(0.737 0.038 144.279);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 144.597);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 144.608);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.706 0.021 144.426);
  --primary-foreground: oklch(0.116 0.003 144.443);
  --secondary: oklch(0.2 0.019 143.985);
  --secondary-foreground: oklch(0.767 0.054 144.149);
  --accent: oklch(0.2 0.019 143.985);
  --accent-foreground: oklch(0.767 0.054 144.149);
  --destructive: oklch(0.634 0.187 41.431);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.021 144.426);
  --chart-1: oklch(0.706 0.021 144.426);
  --chart-2: oklch(0.2 0.019 143.985);
  --chart-3: oklch(0.2 0.019 143.985);
  --chart-4: oklch(0.236 0.025 143.909);
  --chart-5: oklch(0.71 0.031 144.33);
}