Checkbook is a shadcn/ui theme built around a light violet primary color (#f6effa) with light green accents (#f4faef). The light mode uses a neutral background (#faf7fd). Dark mode keeps the light violet primary (#f6effa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #000000black |
| Foreground | #000000black | #faf8fcghostwhite |
| Card | #faf7fdghostwhite | #000000black |
| Card foreground | #000000black | #faf8fcghostwhite |
| Popover | #faf7fdghostwhite | #000000black |
| Popover foreground | #000000black | #faf8fcghostwhite |
| Primary | #f6effawhitesmoke | #f6effawhitesmoke |
| Primary foreground | #64298erebeccapurple | #64298erebeccapurple |
| Secondary | #f4faefhoneydew | #f4faefhoneydew |
| Secondary foreground | #253f12darkgreen | #253f12darkgreen |
| Muted | #eff2edwhitesmoke | #0f120dblack |
| Muted foreground | #434e3cdarkslategray | #b9c3b1silver |
| Accent | #f4faefhoneydew | #f4faefhoneydew |
| Accent foreground | #253f12darkgreen | #253f12darkgreen |
| Destructive | #a83800saddlebrown | #ff6619orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6effawhitesmoke | #f6effawhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 11.01:1 | AAA |
| Muted text | 7.78:1 | AAA |
| Accent | 11.01:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 11.01:1 | AAA |
| Muted text | 10.34:1 | AAA |
| Accent | 11.01:1 | AAA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Checkbook in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.009 311.65);
--foreground: oklch(0 0 0);
--muted: oklch(0.958 0.008 131.789);
--muted-foreground: oklch(0.408 0.032 132.397);
--popover: oklch(0.98 0.009 311.65);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.009 311.65);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.961 0.016 311.587);
--primary-foreground: oklch(0.417 0.161 307.498);
--secondary: oklch(0.978 0.016 131.861);
--secondary-foreground: oklch(0.336 0.077 134.409);
--accent: oklch(0.978 0.016 131.861);
--accent-foreground: oklch(0.336 0.077 134.409);
--destructive: oklch(0.499 0.157 39.917);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.961 0.016 311.587);
--chart-1: oklch(0.961 0.016 311.587);
--chart-2: oklch(0.978 0.016 131.861);
--chart-3: oklch(0.978 0.016 131.861);
--chart-4: oklch(0.995 0.004 131.758);
--chart-5: oklch(0.961 0.017 311.579);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.006 311.677);
--muted: oklch(0.176 0.012 132.278);
--muted-foreground: oklch(0.804 0.027 132.005);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.006 311.677);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.006 311.677);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.961 0.016 311.587);
--primary-foreground: oklch(0.417 0.161 307.498);
--secondary: oklch(0.978 0.016 131.861);
--secondary-foreground: oklch(0.336 0.077 134.409);
--accent: oklch(0.978 0.016 131.861);
--accent-foreground: oklch(0.336 0.077 134.409);
--destructive: oklch(0.696 0.202 41.791);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.961 0.016 311.587);
--chart-1: oklch(0.961 0.016 311.587);
--chart-2: oklch(0.978 0.016 131.861);
--chart-3: oklch(0.978 0.016 131.861);
--chart-4: oklch(0.995 0.004 131.758);
--chart-5: oklch(0.961 0.017 311.579);
}