Bonus for shadcn/ui

Bonus is a shadcn/ui theme built around a green primary color (#65b950) with red accents (#b95065). The light mode uses a neutral background (#f8fdf6). Dark mode keeps the green primary (#65b950) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f8fdf6mintcream
#020302black
Foreground
#020401black
#ffffffwhite
Card
#f8fdf6mintcream
#020302black
Card foreground
#020401black
#ffffffwhite
Popover
#f8fdf6mintcream
#020302black
Popover foreground
#020401black
#ffffffwhite
Primary
#65b950mediumseagreen
#65b950mediumseagreen
Primary foreground
#172c11black
#172c11black
Secondary
#5065b9steelblue
#5065b9steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d0d4e7gainsboro
#181d2fblack
Muted foreground
#3e414cdarkslategray
#b3b6c1silver
Accent
#b95065indianred
#b95065indianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#620c04maroon
#f63423orangered
Destructive foreground
#fba59dlightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#65b950mediumseagreen
#65b950mediumseagreen

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button6.14:1AA
Secondary button5.37:1AA
Muted text6.91:1AA
Accent4.76:1AA
Destructive6.97:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button6.14:1AA
Secondary button5.37:1AA
Muted text8.26:1AAA
Accent4.76:1AA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.011 139.441);
  --foreground: oklch(0.099 0.018 137.631);
  --muted: oklch(0.873 0.026 274.657);
  --muted-foreground: oklch(0.376 0.019 274.351);
  --popover: oklch(0.989 0.011 139.441);
  --popover-foreground: oklch(0.099 0.018 137.631);
  --card: oklch(0.989 0.011 139.441);
  --card-foreground: oklch(0.099 0.018 137.631);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.71 0.164 139.692);
  --primary-foreground: oklch(0.267 0.054 139.577);
  --secondary: oklch(0.532 0.134 270.716);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.572 0.137 10.091);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.32 0.12 30.474);
  --destructive-foreground: oklch(0.804 0.103 25.296);
  --ring: oklch(0.71 0.164 139.692);
  --chart-1: oklch(0.71 0.164 139.692);
  --chart-2: oklch(0.532 0.134 270.716);
  --chart-3: oklch(0.572 0.137 10.091);
  --chart-4: oklch(0.562 0.124 271.332);
  --chart-5: oklch(0.718 0.173 139.747);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.009 138.51);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.235 0.036 272.645);
  --muted-foreground: oklch(0.778 0.016 274.777);
  --popover: oklch(0.095 0.009 138.51);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.095 0.009 138.51);
  --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.71 0.164 139.692);
  --primary-foreground: oklch(0.267 0.054 139.577);
  --secondary: oklch(0.532 0.134 270.716);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.572 0.137 10.091);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.632 0.23 29.947);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.71 0.164 139.692);
  --chart-1: oklch(0.71 0.164 139.692);
  --chart-2: oklch(0.532 0.134 270.716);
  --chart-3: oklch(0.572 0.137 10.091);
  --chart-4: oklch(0.562 0.124 271.332);
  --chart-5: oklch(0.718 0.173 139.747);
}