Payoff is a shadcn/ui theme built around a vivid yellow primary color (#f8c868) with vivid green accents (#e0f868). The light mode uses a neutral background (#fcfbf7). Dark mode keeps the vivid yellow primary (#f8c868) on a yellow-tinted background (#100c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf7snow | #100c04black |
| Foreground | #140f05black | #ffffffwhite |
| Card | #fcfbf7snow | #100c04black |
| Card foreground | #140f05black | #ffffffwhite |
| Popover | #fcfbf7snow | #100c04black |
| Popover foreground | #140f05black | #ffffffwhite |
| Primary | #f8c868sandybrown | #f8c868sandybrown |
| Primary foreground | #2c1e02black | #2c1e02black |
| Secondary | #f88068salmon | #f88068salmon |
| Secondary foreground | #2c0902black | #2c0902black |
| Muted | #ece5e4linen | #1b1413black |
| Muted foreground | #5f4d49darkolivegreen | #b6a4a0darkgray |
| Accent | #e0f868khaki | #e0f868khaki |
| Accent foreground | #252c02black | #252c02black |
| Destructive | #a84105saddlebrown | #f86f20chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8c868sandybrown | #f8c868sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.41:1 | AAA |
| Text on card | 18.41:1 | AAA |
| Primary button | 10.39:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 12.34:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 10.39:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 12.34:1 | AAA |
| Destructive | 7.31:1 | AAA |
Paste this into your globals.css to use Payoff in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 84.563);
--foreground: oklch(0.173 0.022 85.576);
--muted: oklch(0.928 0.008 31.06);
--muted-foreground: oklch(0.437 0.025 31.271);
--popover: oklch(0.988 0.005 84.563);
--popover-foreground: oklch(0.173 0.022 85.576);
--card: oklch(0.988 0.005 84.563);
--card-foreground: oklch(0.173 0.022 85.576);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.856 0.126 82.944);
--primary-foreground: oklch(0.246 0.048 81.92);
--secondary: oklch(0.73 0.152 32.612);
--secondary-foreground: oklch(0.201 0.06 36.616);
--accent: oklch(0.934 0.169 117.763);
--accent-foreground: oklch(0.276 0.062 118.864);
--destructive: oklch(0.51 0.149 42.992);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.126 82.944);
--chart-1: oklch(0.856 0.126 82.944);
--chart-2: oklch(0.73 0.152 32.612);
--chart-3: oklch(0.934 0.169 117.763);
--chart-4: oklch(0.753 0.136 32.343);
--chart-5: oklch(0.86 0.13 82.807);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.019 87.292);
--foreground: oklch(1 0 180);
--muted: oklch(0.2 0.012 31.293);
--muted-foreground: oklch(0.732 0.022 31.127);
--popover: oklch(0.157 0.019 87.292);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.157 0.019 87.292);
--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.856 0.126 82.944);
--primary-foreground: oklch(0.246 0.048 81.92);
--secondary: oklch(0.73 0.152 32.612);
--secondary-foreground: oklch(0.201 0.06 36.616);
--accent: oklch(0.934 0.169 117.763);
--accent-foreground: oklch(0.276 0.062 118.864);
--destructive: oklch(0.699 0.187 45.242);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.856 0.126 82.944);
--chart-1: oklch(0.856 0.126 82.944);
--chart-2: oklch(0.73 0.152 32.612);
--chart-3: oklch(0.934 0.169 117.763);
--chart-4: oklch(0.753 0.136 32.343);
--chart-5: oklch(0.86 0.13 82.807);
}