Affidavit is a shadcn/ui theme built around a light violet primary color (#cbb0e3) with light green accents (#c8e3b0). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#cbb0e3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #0d0514black | #faf8fcghostwhite |
| Card | #fdfbfewhite | #000000black |
| Card foreground | #0d0514black | #faf8fcghostwhite |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #0d0514black | #faf8fcghostwhite |
| Primary | #cbb0e3thistle | #cbb0e3thistle |
| Primary foreground | #321948midnightblue | #321948midnightblue |
| Secondary | #c8e3b0palegoldenrod | #c8e3b0palegoldenrod |
| Secondary foreground | #2f4819darkslategray | #2f4819darkslategray |
| Muted | #eaede8linen | #141712black |
| Muted foreground | #4f554adarkslategray | #b0b5aadarkgray |
| Accent | #c8e3b0palegoldenrod | #c8e3b0palegoldenrod |
| Accent foreground | #2f4819darkslategray | #2f4819darkslategray |
| Destructive | #ad0101darkred | #fe0b0bred |
| Destructive foreground | #ffe1e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cbb0e3thistle | #cbb0e3thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 8.62:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Affidavit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 309.734);
--foreground: oklch(0.141 0.034 308.329);
--muted: oklch(0.944 0.008 129.872);
--muted-foreground: oklch(0.439 0.019 130.232);
--popover: oklch(0.99 0.005 309.734);
--popover-foreground: oklch(0.141 0.034 308.329);
--card: oklch(0.99 0.005 309.734);
--card-foreground: oklch(0.141 0.034 308.329);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.797 0.077 308.824);
--primary-foreground: oklch(0.274 0.085 306.157);
--secondary: oklch(0.883 0.075 130.673);
--secondary-foreground: oklch(0.368 0.078 132.583);
--accent: oklch(0.883 0.075 130.673);
--accent-foreground: oklch(0.368 0.078 132.583);
--destructive: oklch(0.469 0.192 29.182);
--destructive-foreground: oklch(0.933 0.034 17.768);
--ring: oklch(0.797 0.077 308.824);
--chart-1: oklch(0.797 0.077 308.824);
--chart-2: oklch(0.883 0.075 130.673);
--chart-3: oklch(0.883 0.075 130.673);
--chart-4: oklch(0.9 0.064 130.522);
--chart-5: oklch(0.795 0.082 308.76);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.005 309.733);
--muted: oklch(0.2 0.012 130.406);
--muted-foreground: oklch(0.767 0.017 130.006);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.005 309.733);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.005 309.733);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.797 0.077 308.824);
--primary-foreground: oklch(0.274 0.085 306.157);
--secondary: oklch(0.883 0.075 130.673);
--secondary-foreground: oklch(0.368 0.078 132.583);
--accent: oklch(0.883 0.075 130.673);
--accent-foreground: oklch(0.368 0.078 132.583);
--destructive: oklch(0.628 0.254 28.95);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.797 0.077 308.824);
--chart-1: oklch(0.797 0.077 308.824);
--chart-2: oklch(0.883 0.075 130.673);
--chart-3: oklch(0.883 0.075 130.673);
--chart-4: oklch(0.9 0.064 130.522);
--chart-5: oklch(0.795 0.082 308.76);
}