Bountiful for shadcn/ui

Bountiful is a shadcn/ui theme built around a vivid deep purple primary color (#6d0d53) with vivid deep green accents (#0d6d27). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#6d0d53) on a purple-tinted background (#0e060c).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060cblack
Foreground
#080207black
#fbf9fasnow
Card
#fcfcfcsnow
#12080fblack
Card foreground
#040103black
#fdfcfdwhite
Popover
#ffffffwhite
#0e060cblack
Popover foreground
#080207black
#fbf9fasnow
Primary
#6d0d53purple
#6d0d53purple
Primary foreground
#f6b6e5pink
#f6b6e5pink
Secondary
#0d6d27forestgreen
#0d6d27forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9ecealavender
#131614black
Muted foreground
#404a43darkslategray
#b5bfb8silver
Accent
#0d6d27forestgreen
#0d6d27forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#680f03maroon
#ed2207red
Destructive foreground
#fcaca1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d0d53purple
#6d0d53purple

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.32:1AAA
Primary button6.94:1AA
Secondary button6.49:1AA
Muted text7.75:1AAA
Accent6.49:1AA
Destructive6.97:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.25:1AAA
Primary button6.94:1AA
Secondary button6.49:1AA
Muted text9.65:1AAA
Accent6.49:1AA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.107 0.024 335.224);
  --muted: oklch(0.94 0.004 154.45);
  --muted-foreground: oklch(0.397 0.017 153.74);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.107 0.024 335.224);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.085 0.019 335.224);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.366 0.145 342.089);
  --primary-foreground: oklch(0.85 0.095 336.364);
  --secondary: oklch(0.468 0.134 146.745);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.468 0.134 146.745);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.335 0.124 31.496);
  --destructive-foreground: oklch(0.818 0.097 27.665);
  --ring: oklch(0.366 0.145 342.089);
  --chart-1: oklch(0.366 0.145 342.089);
  --chart-2: oklch(0.468 0.134 146.745);
  --chart-3: oklch(0.468 0.134 146.745);
  --chart-4: oklch(0.508 0.147 146.619);
  --chart-5: oklch(0.369 0.148 342.352);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.02 336.162);
  --foreground: oklch(0.984 0.004 334.59);
  --muted: oklch(0.195 0.006 153.967);
  --muted-foreground: oklch(0.795 0.014 154.202);
  --popover: oklch(0.139 0.02 336.162);
  --popover-foreground: oklch(0.984 0.004 334.59);
  --card: oklch(0.152 0.024 336.854);
  --card-foreground: oklch(0.992 0.002 334.558);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.366 0.145 342.089);
  --primary-foreground: oklch(0.85 0.095 336.364);
  --secondary: oklch(0.468 0.134 146.745);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.468 0.134 146.745);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.605 0.234 30.683);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.366 0.145 342.089);
  --chart-1: oklch(0.366 0.145 342.089);
  --chart-2: oklch(0.468 0.134 146.745);
  --chart-3: oklch(0.468 0.134 146.745);
  --chart-4: oklch(0.508 0.147 146.619);
  --chart-5: oklch(0.369 0.148 342.352);
}