Donation is a shadcn/ui theme built around a violet primary color (#9663b6) with purple accents (#b663ac). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#9663b6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0c0410black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #09030cblack | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0c0410black | #fdfcfdwhite |
| Primary | #9663b6mediumpurple | #9663b6mediumpurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6d63b6slateblue | #6d63b6slateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbd9e8gainsboro | #191726black |
| Muted foreground | #44434cdarkslategray | #b4b3bcsilver |
| Accent | #b663acmediumorchid | #b663acmediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #862403darkred | #fa612etomato |
| Destructive foreground | #fdcebepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9663b6mediumpurple | #9663b6mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 4.42:1 | AA Large |
| Secondary button | 5.12:1 | AA |
| Muted text | 6.99:1 | AA |
| Accent | 5.35:1 | AA |
| Destructive | 6.48:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.42:1 | AA Large |
| Secondary button | 5.12:1 | AA |
| Muted text | 8.49:1 | AAA |
| Accent | 5.35:1 | AA |
| Destructive | 6.80:1 | AA |
Paste this into your globals.css to use Donation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.031 313.111);
--muted: oklch(0.89 0.021 291.335);
--muted-foreground: oklch(0.387 0.014 291.07);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.031 313.111);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.119 0.027 314.6);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.587 0.133 311.317);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.547 0.126 286.806);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.619 0.141 331.558);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.415 0.138 36.214);
--destructive-foreground: oklch(0.889 0.058 39.253);
--ring: oklch(0.587 0.133 311.317);
--chart-1: oklch(0.587 0.133 311.317);
--chart-2: oklch(0.547 0.126 286.806);
--chart-3: oklch(0.619 0.141 331.558);
--chart-4: oklch(0.578 0.116 287.52);
--chart-5: oklch(0.584 0.143 311.143);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.003 312.967);
--muted: oklch(0.214 0.03 288.962);
--muted-foreground: oklch(0.771 0.012 291.483);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.003 312.967);
--card: oklch(0.092 0 180);
--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.587 0.133 311.317);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.547 0.126 286.806);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.619 0.141 331.558);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.683 0.197 37.822);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.587 0.133 311.317);
--chart-1: oklch(0.587 0.133 311.317);
--chart-2: oklch(0.547 0.126 286.806);
--chart-3: oklch(0.619 0.141 331.558);
--chart-4: oklch(0.578 0.116 287.52);
--chart-5: oklch(0.584 0.143 311.143);
}