Trinket is a shadcn/ui theme built around a muted green primary color (#b1cebc) with muted teal accents (#b1ceca). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the muted green primary (#b1cebc) on a green-tinted background (#030c07).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf9mintcream | #030c07black |
| Foreground | #030d06black | #ffffffwhite |
| Card | #f7fdf9mintcream | #030c07black |
| Card foreground | #030d06black | #ffffffwhite |
| Popover | #f7fdf9mintcream | #030c07black |
| Popover foreground | #030d06black | #ffffffwhite |
| Primary | #b1cebcsilver | #b1cebcsilver |
| Primary foreground | #1d2f24darkslategray | #1d2f24darkslategray |
| Secondary | #b4ceb1silver | #b4ceb1silver |
| Secondary foreground | #202f1ddarkslategray | #202f1ddarkslategray |
| Muted | #e1ecdfgainsboro | #152013black |
| Muted foreground | #596c56dimgray | #96a993darkseagreen |
| Accent | #b1cecalightsteelblue | #b1cecalightsteelblue |
| Accent foreground | #1d2f2ddarkslategray | #1d2f2ddarkslategray |
| Destructive | #df0c01red | #fe2116red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1cebcsilver | #b1cebcsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 8.35:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 4.64:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 4.99:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.35:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Trinket in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 159.267);
--foreground: oklch(0.143 0.023 158.904);
--muted: oklch(0.93 0.02 142.039);
--muted-foreground: oklch(0.508 0.04 141.839);
--popover: oklch(0.989 0.009 159.267);
--popover-foreground: oklch(0.143 0.023 158.904);
--card: oklch(0.989 0.009 159.267);
--card-foreground: oklch(0.143 0.023 158.904);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.824 0.04 158.333);
--primary-foreground: oklch(0.286 0.031 156.785);
--secondary: oklch(0.824 0.049 141.907);
--secondary-foreground: oklch(0.286 0.038 141.662);
--accent: oklch(0.829 0.032 187.982);
--accent-foreground: oklch(0.289 0.023 186.845);
--destructive: oklch(0.571 0.231 29.66);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.824 0.04 158.333);
--chart-1: oklch(0.824 0.04 158.333);
--chart-2: oklch(0.824 0.049 141.907);
--chart-3: oklch(0.829 0.032 187.982);
--chart-4: oklch(0.845 0.043 141.937);
--chart-5: oklch(0.827 0.045 158.184);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.02 159.087);
--foreground: oklch(1 0 180);
--muted: oklch(0.227 0.028 141.693);
--muted-foreground: oklch(0.713 0.037 141.933);
--popover: oklch(0.141 0.02 159.087);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.02 159.087);
--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.824 0.04 158.333);
--primary-foreground: oklch(0.286 0.031 156.785);
--secondary: oklch(0.824 0.049 141.907);
--secondary-foreground: oklch(0.286 0.038 141.662);
--accent: oklch(0.829 0.032 187.982);
--accent-foreground: oklch(0.289 0.023 186.845);
--destructive: oklch(0.635 0.248 29.392);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.824 0.04 158.333);
--chart-1: oklch(0.824 0.04 158.333);
--chart-2: oklch(0.824 0.049 141.907);
--chart-3: oklch(0.829 0.032 187.982);
--chart-4: oklch(0.845 0.043 141.937);
--chart-5: oklch(0.827 0.045 158.184);
}