Trifling is a shadcn/ui theme built around a muted cyan primary color (#a7bcc3) with muted blue accents (#a7aec3). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the muted cyan primary (#a7bcc3) on a cyan-tinted background (#060c0e).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #060c0eblack |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f7fbfdghostwhite | #060c0eblack |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f7fbfdghostwhite | #060c0eblack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #a7bcc3silver | #a7bcc3silver |
| Primary foreground | #171f21black | #171f21black |
| Secondary | #a7c3bcsilver | #a7c3bcsilver |
| Secondary foreground | #17211fblack | #17211fblack |
| Muted | #d9e3e1gainsboro | #1c2624black |
| Muted foreground | #48615adarkslategray | #9eb7b1darkgray |
| Accent | #a7aec3darkgray | #a7aec3darkgray |
| Accent foreground | #171921black | #171921black |
| Destructive | #a61603darkred | #f11f04red |
| Destructive foreground | #fee0dcmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7bcc3silver | #a7bcc3silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 8.47:1 | AAA |
| Secondary button | 8.78:1 | AAA |
| Muted text | 5.11:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 8.47:1 | AAA |
| Secondary button | 8.78:1 | AAA |
| Muted text | 7.26:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Trifling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 219.542);
--foreground: oklch(0 0 0);
--muted: oklch(0.908 0.012 179.488);
--muted-foreground: oklch(0.469 0.032 177.758);
--popover: oklch(0.986 0.005 219.542);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.005 219.542);
--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.782 0.025 219.799);
--primary-foreground: oklch(0.231 0.013 220.107);
--secondary: oklch(0.795 0.032 178.671);
--secondary-foreground: oklch(0.238 0.016 177.789);
--accent: oklch(0.752 0.031 270.976);
--accent-foreground: oklch(0.216 0.016 270.556);
--destructive: oklch(0.463 0.179 30.948);
--destructive-foreground: oklch(0.93 0.034 26.728);
--ring: oklch(0.782 0.025 219.799);
--chart-1: oklch(0.782 0.025 219.799);
--chart-2: oklch(0.795 0.032 178.671);
--chart-3: oklch(0.752 0.031 270.976);
--chart-4: oklch(0.816 0.029 178.833);
--chart-5: oklch(0.783 0.029 219.856);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.011 218.753);
--foreground: oklch(0.993 0.001 219.512);
--muted: oklch(0.259 0.016 178.017);
--muted-foreground: oklch(0.76 0.029 178.732);
--popover: oklch(0.149 0.011 218.753);
--popover-foreground: oklch(0.993 0.001 219.512);
--card: oklch(0.149 0.011 218.753);
--card-foreground: oklch(0.993 0.001 219.512);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.782 0.025 219.799);
--primary-foreground: oklch(0.231 0.013 220.107);
--secondary: oklch(0.795 0.032 178.671);
--secondary-foreground: oklch(0.238 0.016 177.789);
--accent: oklch(0.752 0.031 270.976);
--accent-foreground: oklch(0.216 0.016 270.556);
--destructive: oklch(0.611 0.239 30.609);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.782 0.025 219.799);
--chart-1: oklch(0.782 0.025 219.799);
--chart-2: oklch(0.795 0.032 178.671);
--chart-3: oklch(0.752 0.031 270.976);
--chart-4: oklch(0.816 0.029 178.833);
--chart-5: oklch(0.783 0.029 219.856);
}