Giving is a shadcn/ui theme built around a muted violet primary color (#73667a) with muted green accents (#6e7a66). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#73667a) on a neutral background (#060308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060308black |
| Foreground | #09030cblack | #faf9fasnow |
| Card | #ffffffwhite | #060308black |
| Card foreground | #09030cblack | #faf9fasnow |
| Popover | #ffffffwhite | #060308black |
| Popover foreground | #09030cblack | #faf9fasnow |
| Primary | #73667adimgray | #73667adimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6e7a66dimgray | #6e7a66dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2f5f0whitesmoke | #0c0f0ablack |
| Muted foreground | #53594fdarkolivegreen | #aab0a6darkgray |
| Accent | #6e7a66dimgray | #6e7a66dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8f2004darkred | #f85025orangered |
| Destructive foreground | #fdd3c9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #73667adimgray | #73667adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 5.36:1 | AA |
| Secondary button | 4.51:1 | AA |
| Muted text | 6.55:1 | AA |
| Accent | 4.51:1 | AA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 5.36:1 | AA |
| Secondary button | 4.51:1 | AA |
| Muted text | 8.68:1 | AAA |
| Accent | 4.51:1 | AA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use Giving in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.03 315.364);
--muted: oklch(0.966 0.008 133.657);
--muted-foreground: oklch(0.456 0.018 133.857);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.03 315.364);
--card: oklch(1 0 180);
--card-foreground: oklch(0.117 0.03 315.364);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.53 0.035 313.204);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.034 133.997);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.564 0.034 133.997);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.428 0.151 33.827);
--destructive-foreground: oklch(0.9 0.05 34.348);
--ring: oklch(0.53 0.035 313.204);
--chart-1: oklch(0.53 0.035 313.204);
--chart-2: oklch(0.564 0.034 133.997);
--chart-3: oklch(0.564 0.034 133.997);
--chart-4: oklch(0.591 0.036 134);
--chart-5: oklch(0.525 0.046 313.064);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.02 315.269);
--foreground: oklch(0.984 0.002 313.595);
--muted: oklch(0.164 0.012 134.105);
--muted-foreground: oklch(0.749 0.016 133.74);
--popover: oklch(0.105 0.02 315.269);
--popover-foreground: oklch(0.984 0.002 313.595);
--card: oklch(0.105 0.02 315.269);
--card-foreground: oklch(0.984 0.002 313.595);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.53 0.035 313.204);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.034 133.997);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.564 0.034 133.997);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.661 0.212 34.628);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.53 0.035 313.204);
--chart-1: oklch(0.53 0.035 313.204);
--chart-2: oklch(0.564 0.034 133.997);
--chart-3: oklch(0.564 0.034 133.997);
--chart-4: oklch(0.591 0.036 134);
--chart-5: oklch(0.525 0.046 313.064);
}