Bumpy for shadcn/ui

Bumpy is a shadcn/ui theme built around a green primary color (#6fc882) with near-white accents (#ebebeb). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#6fc882) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fbfefcwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefcwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#6fc882darkseagreen
#6fc882darkseagreen
Primary foreground
#010402black
#010402black
Secondary
#ebebeblinen
#121713black
Secondary foreground
#525252darkslategray
#a4b6a8darkgray
Muted
#efebeblinen
#101411black
Muted foreground
#695d5ddimgray
#96a298darkgray
Accent
#ebebeblinen
#121713black
Accent foreground
#525252darkslategray
#a4b6a8darkgray
Destructive
#710505maroon
#f62323crimson
Destructive foreground
#fcacaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6fc882darkseagreen
#6fc882darkseagreen

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button10.08:1AAA
Secondary button6.53:1AA
Muted text5.34:1AA
Accent6.53:1AA
Destructive6.76:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button10.08:1AAA
Secondary button8.51:1AAA
Muted text7.01:1AAA
Accent8.51:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 152.562);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.004 17.232);
  --muted-foreground: oklch(0.491 0.015 17.689);
  --popover: oklch(0.994 0.003 152.562);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 152.562);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.76 0.133 149.384);
  --primary-foreground: oklch(0.096 0.013 151.975);
  --secondary: oklch(0.939 0 180);
  --secondary-foreground: oklch(0.437 0 180);
  --accent: oklch(0.939 0 180);
  --accent-foreground: oklch(0.437 0 180);
  --destructive: oklch(0.347 0.138 28.555);
  --destructive-foreground: oklch(0.82 0.094 19.286);
  --ring: oklch(0.76 0.133 149.384);
  --chart-1: oklch(0.76 0.133 149.384);
  --chart-2: oklch(0.939 0 180);
  --chart-3: oklch(0.939 0 180);
  --chart-4: oklch(0.962 0 180);
  --chart-5: oklch(0.765 0.14 149.178);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.009 151.854);
  --muted-foreground: oklch(0.698 0.019 152.182);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.76 0.133 149.384);
  --primary-foreground: oklch(0.096 0.013 151.975);
  --secondary: oklch(0.197 0.01 151.81);
  --secondary-foreground: oklch(0.76 0.028 152.025);
  --accent: oklch(0.197 0.01 151.81);
  --accent-foreground: oklch(0.76 0.028 152.025);
  --destructive: oklch(0.622 0.239 27.902);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.76 0.133 149.384);
  --chart-1: oklch(0.76 0.133 149.384);
  --chart-2: oklch(0.197 0.01 151.81);
  --chart-3: oklch(0.197 0.01 151.81);
  --chart-4: oklch(0.232 0.013 151.709);
  --chart-5: oklch(0.765 0.14 149.178);
}