Tricky is a shadcn/ui theme built around an indigo primary color (#7b65c8) with violet accents (#ac65c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#7b65c8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030209black | #f9f8fcghostwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #030209black | #f9f8fcghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030209black | #f9f8fcghostwhite |
| Primary | #7b65c8slateblue | #7b65c8slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6581c8steelblue | #6581c8steelblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7ebf3lavender | #0c0f18black |
| Muted foreground | #5e5e5edimgray | #a1a1a1darkgray |
| Accent | #ac65c8mediumorchid | #ac65c8mediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #a61008darkred | #f6453ctomato |
| Destructive foreground | #fee3e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b65c8slateblue | #7b65c8slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.65:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 5.53:1 | AA |
| Muted text | 5.41:1 | AA |
| Accent | 5.45:1 | AA |
| Destructive | 6.43:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 5.53:1 | AA |
| Muted text | 7.40:1 | AAA |
| Accent | 5.45:1 | AA |
| Destructive | 3.59:1 | AA Large |
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.093 0.026 295.28);
--muted: oklch(0.939 0.012 268.696);
--muted-foreground: oklch(0.483 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.093 0.026 295.28);
--card: oklch(1 0 180);
--card-foreground: oklch(0.093 0.026 295.28);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.574 0.147 291.017);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.613 0.112 266.75);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.625 0.159 315.691);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.46 0.181 29.457);
--destructive-foreground: oklch(0.937 0.029 21.304);
--ring: oklch(0.574 0.147 291.017);
--chart-1: oklch(0.574 0.147 291.017);
--chart-2: oklch(0.613 0.112 266.75);
--chart-3: oklch(0.625 0.159 315.691);
--chart-4: oklch(0.642 0.103 267.054);
--chart-5: oklch(0.569 0.156 290.555);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.005 296.232);
--muted: oklch(0.17 0.019 267.671);
--muted-foreground: oklch(0.708 0 158.199);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.005 296.232);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.005 296.232);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.574 0.147 291.017);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.613 0.112 266.75);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.625 0.159 315.691);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.649 0.214 27.832);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.147 291.017);
--chart-1: oklch(0.574 0.147 291.017);
--chart-2: oklch(0.613 0.112 266.75);
--chart-3: oklch(0.625 0.159 315.691);
--chart-4: oklch(0.642 0.103 267.054);
--chart-5: oklch(0.569 0.156 290.555);
}