Tricky is a shadcn/ui theme built around a yellow primary color (#b9b222) with green accents (#75b922). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the yellow primary (#b9b222) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcf8snow | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcf8snow | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #b9b222goldenrod | #b9b222goldenrod |
| Primary foreground | #0d0c02black | #0d0c02black |
| Secondary | #b96622chocolate | #b96622chocolate |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edeae8linen | #171412black |
| Muted foreground | #574b42darkolivegreen | #bdb1a8darkgray |
| Accent | #75b922olivedrab | #75b922olivedrab |
| Accent foreground | #080d02black | #080d02black |
| Destructive | #690c07maroon | #f2443atomato |
| Destructive foreground | #f9ada9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b9b222goldenrod | #b9b222goldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 8.81:1 | AAA |
| Secondary button | 4.20:1 | AA Large |
| Muted text | 7.05:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.81:1 | AAA |
| Secondary button | 4.20:1 | AA Large |
| Muted text | 8.74:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Tricky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 104.051);
--foreground: oklch(0 0 0);
--muted: oklch(0.94 0.004 62.135);
--muted-foreground: oklch(0.423 0.022 61.458);
--popover: oklch(0.989 0.005 104.051);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.005 104.051);
--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.746 0.151 106.279);
--primary-foreground: oklch(0.153 0.024 106.855);
--secondary: oklch(0.595 0.132 54.893);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.714 0.186 131.882);
--accent-foreground: oklch(0.149 0.027 125.758);
--destructive: oklch(0.336 0.127 29.247);
--destructive-foreground: oklch(0.819 0.091 22.59);
--ring: oklch(0.746 0.151 106.279);
--chart-1: oklch(0.746 0.151 106.279);
--chart-2: oklch(0.595 0.132 54.893);
--chart-3: oklch(0.714 0.186 131.882);
--chart-4: oklch(0.625 0.139 54.793);
--chart-5: oklch(0.755 0.154 106.249);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.194 0.006 61.763);
--muted-foreground: oklch(0.769 0.019 61.859);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.746 0.151 106.279);
--primary-foreground: oklch(0.153 0.024 106.855);
--secondary: oklch(0.595 0.132 54.893);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.714 0.186 131.882);
--accent-foreground: oklch(0.149 0.027 125.758);
--destructive: oklch(0.641 0.213 27.875);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.746 0.151 106.279);
--chart-1: oklch(0.746 0.151 106.279);
--chart-2: oklch(0.595 0.132 54.893);
--chart-3: oklch(0.714 0.186 131.882);
--chart-4: oklch(0.625 0.139 54.793);
--chart-5: oklch(0.755 0.154 106.249);
}