Tricky is a shadcn/ui theme built around a vivid deep teal primary color (#05716f) with vivid deep red accents (#710506). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#05716f) on a teal-tinted background (#050f0f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050f0fblack |
| Foreground | #000000black | #f9fbfbghostwhite |
| Card | #fcfcfcsnow | #071313black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #ffffffwhite | #050f0fblack |
| Popover foreground | #000000black | #f9fbfbghostwhite |
| Primary | #05716fteal | #05716fteal |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #710506maroon | #710506maroon |
| Secondary foreground | #fcacadlightpink | #fcacadlightpink |
| Muted | #e6d6d6gainsboro | #291919black |
| Muted foreground | #6f5d5ddimgray | #a29090rosybrown |
| Accent | #710506maroon | #710506maroon |
| Accent foreground | #fcacadlightpink | #fcacadlightpink |
| Destructive | #b82f05firebrick | #fa6538tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #05716fteal | #05716fteal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.86:1 | AA |
| Secondary button | 6.76:1 | AA |
| Muted text | 4.39:1 | AA Large |
| Accent | 6.76:1 | AA |
| Destructive | 6.10:1 | AA |
| Text on background | 18.66:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 5.86:1 | AA |
| Secondary button | 6.76:1 | AA |
| Muted text | 5.54:1 | AA |
| Accent | 6.76:1 | AA |
| Destructive | 6.99:1 | AA |
Paste this into your globals.css to use Tricky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.889 0.018 16.327);
--muted-foreground: oklch(0.496 0.024 16.855);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.495 0.084 192.828);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.347 0.138 27.974);
--secondary-foreground: oklch(0.821 0.094 18.205);
--accent: oklch(0.347 0.138 27.974);
--accent-foreground: oklch(0.821 0.094 18.205);
--destructive: oklch(0.516 0.179 34.736);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.495 0.084 192.828);
--chart-1: oklch(0.495 0.084 192.828);
--chart-2: oklch(0.347 0.138 27.974);
--chart-3: oklch(0.347 0.138 27.974);
--chart-4: oklch(0.378 0.151 28.133);
--chart-5: oklch(0.501 0.085 192.791);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.016 194.403);
--foreground: oklch(0.987 0.003 195.924);
--muted: oklch(0.235 0.026 18.082);
--muted-foreground: oklch(0.669 0.022 16.566);
--popover: oklch(0.159 0.016 194.403);
--popover-foreground: oklch(0.987 0.003 195.924);
--card: oklch(0.175 0.018 194.264);
--card-foreground: oklch(0.993 0.001 195.949);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.495 0.084 192.828);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.347 0.138 27.974);
--secondary-foreground: oklch(0.821 0.094 18.205);
--accent: oklch(0.347 0.138 27.974);
--accent-foreground: oklch(0.821 0.094 18.205);
--destructive: oklch(0.69 0.192 37.122);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.495 0.084 192.828);
--chart-1: oklch(0.495 0.084 192.828);
--chart-2: oklch(0.347 0.138 27.974);
--chart-3: oklch(0.347 0.138 27.974);
--chart-4: oklch(0.378 0.151 28.133);
--chart-5: oklch(0.501 0.085 192.791);
}