Tricky is a shadcn/ui theme built around a muted pink primary color (#57474f) with near-white accents (#e9e8e8). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted pink primary (#57474f) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #070305black |
| Foreground | #15040dblack | #fcf8fasnow |
| Card | #fefbfcsnow | #070305black |
| Card foreground | #15040dblack | #fcf8fasnow |
| Popover | #fefbfcsnow | #070305black |
| Popover foreground | #15040dblack | #fcf8fasnow |
| Primary | #57474fdarkslategray | #57474fdarkslategray |
| Primary foreground | #eae6e8lavender | #eae6e8lavender |
| Secondary | #e9e8e8lavender | #32252bdarkslategray |
| Secondary foreground | #514d4fdarkslategray | #cdbcc4silver |
| Muted | #e1dbdegainsboro | #241e21black |
| Muted foreground | #695961dimgray | #a6969edarkgray |
| Accent | #e9e8e8lavender | #32252bdarkslategray |
| Accent foreground | #514d4fdarkslategray | #cdbcc4silver |
| Destructive | #da3001orangered | #fe4410orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #57474fdarkslategray | #57474fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 6.77:1 | AA |
| Muted text | 4.79:1 | AA |
| Accent | 6.77:1 | AA |
| Destructive | 4.75:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Tricky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 345.261);
--foreground: oklch(0.147 0.036 349.084);
--muted: oklch(0.897 0.008 345.365);
--muted-foreground: oklch(0.482 0.023 346.364);
--popover: oklch(0.99 0.004 345.261);
--popover-foreground: oklch(0.147 0.036 349.084);
--card: oklch(0.99 0.004 345.261);
--card-foreground: oklch(0.147 0.036 349.084);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.418 0.025 346.626);
--primary-foreground: oklch(0.928 0.006 345.307);
--secondary: oklch(0.931 0.001 345.177);
--secondary-foreground: oklch(0.426 0.005 345.441);
--accent: oklch(0.931 0.001 345.177);
--accent-foreground: oklch(0.426 0.005 345.441);
--destructive: oklch(0.579 0.21 33.491);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.418 0.025 346.626);
--chart-1: oklch(0.418 0.025 346.626);
--chart-2: oklch(0.931 0.001 345.177);
--chart-3: oklch(0.931 0.001 345.177);
--chart-4: oklch(0.954 0.001 345.165);
--chart-5: oklch(0.415 0.032 347.07);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.011 345.043);
--foreground: oklch(0.982 0.005 345.279);
--muted: oklch(0.244 0.011 346.248);
--muted-foreground: oklch(0.69 0.021 345.93);
--popover: oklch(0.111 0.011 345.043);
--popover-foreground: oklch(0.982 0.005 345.279);
--card: oklch(0.111 0.011 345.043);
--card-foreground: oklch(0.982 0.005 345.279);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.418 0.025 346.626);
--primary-foreground: oklch(0.928 0.006 345.307);
--secondary: oklch(0.282 0.022 347.121);
--secondary-foreground: oklch(0.811 0.023 345.874);
--accent: oklch(0.282 0.022 347.121);
--accent-foreground: oklch(0.811 0.023 345.874);
--destructive: oklch(0.658 0.228 34.302);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.418 0.025 346.626);
--chart-1: oklch(0.418 0.025 346.626);
--chart-2: oklch(0.282 0.022 347.121);
--chart-3: oklch(0.282 0.022 347.121);
--chart-4: oklch(0.311 0.026 347.197);
--chart-5: oklch(0.415 0.032 347.07);
}