Fundraising for shadcn/ui

Fundraising is a shadcn/ui theme built around a deep green primary color (#424b0c) with muted light green accents (#d1d5b8). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the deep green primary (#424b0c) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#fbfcf8snow
#070802black
Foreground
#030401black
#fdfdfcwhite
Card
#fbfcf8snow
#070802black
Card foreground
#030401black
#fdfdfcwhite
Popover
#fbfcf8snow
#070802black
Popover foreground
#030401black
#fdfdfcwhite
Primary
#424b0cdarkolivegreen
#424b0cdarkolivegreen
Primary foreground
#c9e141greenyellow
#c9e141greenyellow
Secondary
#e0e2d5gainsboro
#343626darkslategray
Secondary foreground
#4b4e36darkolivegreen
#ced1bdsilver
Muted
#e1e5cdgainsboro
#2f321adarkslategray
Muted foreground
#646657dimgray
#a6a899darkgray
Accent
#d1d5b8lightgrey
#474b2fdarkolivegreen
Accent foreground
#363a22darkslategray
#dde0cdgainsboro
Destructive
#b83d14firebrick
#cf4517chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#424b0cdarkolivegreen
#424b0cdarkolivegreen

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button6.39:1AA
Secondary button6.53:1AA
Muted text4.55:1AA
Accent7.82:1AAA
Destructive5.65:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button6.39:1AA
Secondary button7.91:1AAA
Muted text5.42:1AA
Accent6.72:1AA
Destructive4.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 113.393);
  --foreground: oklch(0.102 0.013 114.164);
  --muted: oklch(0.913 0.033 113.975);
  --muted-foreground: oklch(0.503 0.023 114.17);
  --popover: oklch(0.989 0.005 113.393);
  --popover-foreground: oklch(0.102 0.013 114.164);
  --card: oklch(0.989 0.005 113.393);
  --card-foreground: oklch(0.102 0.013 114.164);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.391 0.084 118.104);
  --primary-foreground: oklch(0.865 0.179 117.789);
  --secondary: oklch(0.907 0.017 113.662);
  --secondary-foreground: oklch(0.415 0.038 115.015);
  --accent: oklch(0.863 0.039 114.156);
  --accent-foreground: oklch(0.337 0.039 115.497);
  --destructive: oklch(0.532 0.166 37.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.084 118.104);
  --chart-1: oklch(0.391 0.084 118.104);
  --chart-2: oklch(0.907 0.017 113.662);
  --chart-3: oklch(0.863 0.039 114.156);
  --chart-4: oklch(0.927 0.014 113.579);
  --chart-5: oklch(0.396 0.086 118.245);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.017 114.205);
  --foreground: oklch(0.994 0.001 113.333);
  --muted: oklch(0.308 0.041 115.809);
  --muted-foreground: oklch(0.726 0.021 113.856);
  --popover: oklch(0.129 0.017 114.205);
  --popover-foreground: oklch(0.994 0.001 113.333);
  --card: oklch(0.129 0.017 114.205);
  --card-foreground: oklch(0.994 0.001 113.333);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.391 0.084 118.104);
  --primary-foreground: oklch(0.865 0.179 117.789);
  --secondary: oklch(0.326 0.028 114.908);
  --secondary-foreground: oklch(0.853 0.028 113.907);
  --accent: oklch(0.402 0.044 115.386);
  --accent-foreground: oklch(0.898 0.025 113.831);
  --destructive: oklch(0.579 0.182 36.927);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.084 118.104);
  --chart-1: oklch(0.391 0.084 118.104);
  --chart-2: oklch(0.326 0.028 114.908);
  --chart-3: oklch(0.402 0.044 115.386);
  --chart-4: oklch(0.36 0.032 114.956);
  --chart-5: oklch(0.396 0.086 118.245);
}