Bend for shadcn/ui

Bend is a shadcn/ui theme built around a vivid green primary color (#bef958) with vivid pink accents (#f958be). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#bef958) on a neutral background (#060802).

Color palette

TokenLightDark
Background
#ffffffwhite
#060802black
Foreground
#0c1202black
#f8f9f6whitesmoke
Card
#ffffffwhite
#060802black
Card foreground
#0c1202black
#f8f9f6whitesmoke
Popover
#ffffffwhite
#060802black
Popover foreground
#0c1202black
#f8f9f6whitesmoke
Primary
#bef958greenyellow
#bef958greenyellow
Primary foreground
#131e01black
#131e01black
Secondary
#58bef9cornflowerblue
#58bef9cornflowerblue
Secondary foreground
#01131eblack
#01131eblack
Muted
#eff0f1whitesmoke
#0e1010black
Muted foreground
#4a4d4fdarkslategray
#b0b3b5darkgray
Accent
#f958behotpink
#f958behotpink
Accent foreground
#1e0113black
#1e0113black
Destructive
#ad410bsaddlebrown
#f16b27chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bef958greenyellow
#bef958greenyellow

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button13.89:1AAA
Secondary button9.09:1AAA
Muted text7.45:1AAA
Accent6.69:1AA
Destructive5.95:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button13.89:1AAA
Secondary button9.09:1AAA
Muted text9.06:1AAA
Accent6.69:1AA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.171 0.035 124.415);
  --muted: oklch(0.954 0.002 232.606);
  --muted-foreground: oklch(0.419 0.005 232.74);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.171 0.035 124.415);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.171 0.035 124.415);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.911 0.197 127.22);
  --primary-foreground: oklch(0.215 0.053 126.484);
  --secondary: oklch(0.764 0.127 237.143);
  --secondary-foreground: oklch(0.177 0.034 233.742);
  --accent: oklch(0.704 0.221 345.302);
  --accent-foreground: oklch(0.159 0.062 344.528);
  --destructive: oklch(0.518 0.152 41.416);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.197 127.22);
  --chart-1: oklch(0.911 0.197 127.22);
  --chart-2: oklch(0.764 0.127 237.143);
  --chart-3: oklch(0.704 0.221 345.302);
  --chart-4: oklch(0.783 0.117 236.331);
  --chart-5: oklch(0.918 0.201 127.351);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.019 122.406);
  --foreground: oklch(0.98 0.005 123.004);
  --muted: oklch(0.17 0.003 232.813);
  --muted-foreground: oklch(0.765 0.004 232.654);
  --popover: oklch(0.128 0.019 122.406);
  --popover-foreground: oklch(0.98 0.005 123.004);
  --card: oklch(0.128 0.019 122.406);
  --card-foreground: oklch(0.98 0.005 123.004);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.911 0.197 127.22);
  --primary-foreground: oklch(0.215 0.053 126.484);
  --secondary: oklch(0.764 0.127 237.143);
  --secondary-foreground: oklch(0.177 0.034 233.742);
  --accent: oklch(0.704 0.221 345.302);
  --accent-foreground: oklch(0.159 0.062 344.528);
  --destructive: oklch(0.683 0.182 43.384);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.911 0.197 127.22);
  --chart-1: oklch(0.911 0.197 127.22);
  --chart-2: oklch(0.764 0.127 237.143);
  --chart-3: oklch(0.704 0.221 345.302);
  --chart-4: oklch(0.783 0.117 236.331);
  --chart-5: oklch(0.918 0.201 127.351);
}