Giving for shadcn/ui

Giving is a shadcn/ui theme built around a light green primary color (#caeaa4) with light green accents (#a8eaa4). The light mode uses a neutral background (#fafcf8). Dark mode keeps the light green primary (#caeaa4) on a green-tinted background (#080a05).

Color palette

TokenLightDark
Background
#fafcf8snow
#080a05black
Foreground
#0b1202black
#fcfdfcwhite
Card
#f8faf4whitesmoke
#0b0d07black
Card foreground
#080e02black
#ffffffwhite
Popover
#f8faf4whitesmoke
#0b0d07black
Popover foreground
#080e02black
#ffffffwhite
Primary
#caeaa4palegoldenrod
#caeaa4palegoldenrod
Primary foreground
#314a11darkolivegreen
#314a11darkolivegreen
Secondary
#eae6a4palegoldenrod
#eae6a4palegoldenrod
Secondary foreground
#4a4811darkolivegreen
#4a4811darkolivegreen
Muted
#e7e6dfgainsboro
#201f18black
Muted foreground
#5e5d4adarkolivegreen
#b5b4a1darkgray
Accent
#a8eaa4palegreen
#a8eaa4palegreen
Accent foreground
#144a11darkgreen
#144a11darkgreen
Destructive
#ac2d11firebrick
#ea512etomato
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#caeaa4palegoldenrod
#caeaa4palegoldenrod

Contrast

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

Light mode
Text on background18.45:1AAA
Text on card18.61:1AAA
Primary button7.45:1AAA
Secondary button7.35:1AAA
Muted text5.34:1AA
Accent7.39:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.50:1AAA
Primary button7.45:1AAA
Secondary button7.35:1AAA
Muted text7.85:1AAA
Accent7.39:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 126.499);
  --foreground: oklch(0.171 0.037 127.285);
  --muted: oklch(0.924 0.009 104.143);
  --muted-foreground: oklch(0.474 0.03 104.978);
  --popover: oklch(0.982 0.008 126.535);
  --popover-foreground: oklch(0.152 0.032 125.791);
  --card: oklch(0.982 0.008 126.535);
  --card-foreground: oklch(0.152 0.032 125.791);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.897 0.097 127.914);
  --primary-foreground: oklch(0.377 0.088 130.65);
  --secondary: oklch(0.913 0.085 105.413);
  --secondary-foreground: oklch(0.391 0.073 106.331);
  --accent: oklch(0.874 0.115 143.322);
  --accent-foreground: oklch(0.362 0.104 142.393);
  --destructive: oklch(0.494 0.167 33.578);
  --destructive-foreground: oklch(0.973 0.011 32.664);
  --ring: oklch(0.897 0.097 127.914);
  --chart-1: oklch(0.897 0.097 127.914);
  --chart-2: oklch(0.913 0.085 105.413);
  --chart-3: oklch(0.874 0.115 143.322);
  --chart-4: oklch(0.924 0.074 105.231);
  --chart-5: oklch(0.9 0.101 127.984);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.013 125.864);
  --foreground: oklch(0.993 0.001 126.439);
  --muted: oklch(0.239 0.013 104.843);
  --muted-foreground: oklch(0.765 0.027 104.551);
  --popover: oklch(0.155 0.015 126.887);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.015 126.887);
  --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.897 0.097 127.914);
  --primary-foreground: oklch(0.377 0.088 130.65);
  --secondary: oklch(0.913 0.085 105.413);
  --secondary-foreground: oklch(0.391 0.073 106.331);
  --accent: oklch(0.874 0.115 143.322);
  --accent-foreground: oklch(0.362 0.104 142.393);
  --destructive: oklch(0.64 0.196 34.053);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.897 0.097 127.914);
  --chart-1: oklch(0.897 0.097 127.914);
  --chart-2: oklch(0.913 0.085 105.413);
  --chart-3: oklch(0.874 0.115 143.322);
  --chart-4: oklch(0.924 0.074 105.231);
  --chart-5: oklch(0.9 0.101 127.984);
}