Poker is a shadcn/ui theme built around a green primary color (#429d34) with purple accents (#8f349d). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#429d34) on a green-tinted background (#040c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040c03black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fbfefbwhite | #040c03black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fbfefbwhite | #040c03black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #429d34forestgreen | #429d34forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8f349drebeccapurple | #8f349drebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1dae2gainsboro | #241d25black |
| Muted foreground | #534f54darkslategray | #afabb0darkgray |
| Accent | #8f349drebeccapurple | #8f349drebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c94013firebrick | #e94b16orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #429d34forestgreen | #429d34forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.69:1 | AAA |
| Primary button | 3.44:1 | AA Large |
| Secondary button | 6.67:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 4.97:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 3.44:1 | AA Large |
| Secondary button | 6.67:1 | AA |
| Muted text | 7.25:1 | AAA |
| Accent | 6.67:1 | AA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Poker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 141.577);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.014 321.636);
--muted-foreground: oklch(0.434 0.01 321.654);
--popover: oklch(0.994 0.005 141.577);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.005 141.577);
--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.618 0.166 141.124);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.498 0.178 322.09);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.498 0.178 322.09);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.564 0.18 36.646);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.618 0.166 141.124);
--chart-1: oklch(0.618 0.166 141.124);
--chart-2: oklch(0.498 0.178 322.09);
--chart-3: oklch(0.498 0.178 322.09);
--chart-4: oklch(0.524 0.188 322.086);
--chart-5: oklch(0.625 0.173 141.149);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.027 139.847);
--foreground: oklch(0.993 0.001 141.588);
--muted: oklch(0.243 0.02 321.808);
--muted-foreground: oklch(0.746 0.008 321.624);
--popover: oklch(0.142 0.027 139.847);
--popover-foreground: oklch(0.993 0.001 141.588);
--card: oklch(0.142 0.027 139.847);
--card-foreground: oklch(0.993 0.001 141.588);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.618 0.166 141.124);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.498 0.178 322.09);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.498 0.178 322.09);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.63 0.203 36.496);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.618 0.166 141.124);
--chart-1: oklch(0.618 0.166 141.124);
--chart-2: oklch(0.498 0.178 322.09);
--chart-3: oklch(0.498 0.178 322.09);
--chart-4: oklch(0.524 0.188 322.086);
--chart-5: oklch(0.625 0.173 141.149);
}