Trifling is a shadcn/ui theme built around a vivid red primary color (#b41326) with vivid teal accents (#13b4a1). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid red primary (#b41326) on a red-tinted background (#0c0405).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0c0405black |
| Foreground | #110305black | #fbf9f9snow |
| Card | #fcf7f8snow | #0f0506black |
| Card foreground | #0d0204black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #0c0405black |
| Popover foreground | #110305black | #fbf9f9snow |
| Primary | #b41326firebrick | #b41326firebrick |
| Primary foreground | #fffafbsnow | #fffafbsnow |
| Secondary | #13b4a1lightseagreen | #13b4a1lightseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #dee3e3gainsboro | #1c2121black |
| Muted foreground | #434646darkslategray | #b9bcbbsilver |
| Accent | #13b4a1lightseagreen | #13b4a1lightseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #642807maroon | #df5911chocolate |
| Destructive foreground | #f8c2a5navajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b41326firebrick | #b41326firebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 7.19:1 | AAA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Trifling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 8.974);
--foreground: oklch(0.13 0.031 11.741);
--muted: oklch(0.912 0.006 188.754);
--muted-foreground: oklch(0.392 0.004 188.686);
--popover: oklch(0.991 0.003 8.974);
--popover-foreground: oklch(0.13 0.031 11.741);
--card: oklch(0.981 0.005 9.04);
--card-foreground: oklch(0.116 0.027 10.833);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.492 0.19 23.661);
--primary-foreground: oklch(0.99 0.004 9.016);
--secondary: oklch(0.692 0.122 181.744);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.692 0.122 181.744);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.357 0.096 44.299);
--destructive-foreground: oklch(0.855 0.074 49.647);
--ring: oklch(0.492 0.19 23.661);
--chart-1: oklch(0.492 0.19 23.661);
--chart-2: oklch(0.692 0.122 181.744);
--chart-3: oklch(0.692 0.122 181.744);
--chart-4: oklch(0.731 0.129 181.691);
--chart-5: oklch(0.496 0.194 24.21);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.019 10.05);
--foreground: oklch(0.983 0.003 8.971);
--muted: oklch(0.243 0.008 188.103);
--muted-foreground: oklch(0.791 0.003 188.817);
--popover: oklch(0.121 0.019 10.05);
--popover-foreground: oklch(0.983 0.003 8.971);
--card: oklch(0.134 0.021 10.768);
--card-foreground: oklch(0.992 0.001 8.94);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.492 0.19 23.661);
--primary-foreground: oklch(0.99 0.004 9.016);
--secondary: oklch(0.692 0.122 181.744);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.692 0.122 181.744);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.63 0.182 42.494);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.492 0.19 23.661);
--chart-1: oklch(0.492 0.19 23.661);
--chart-2: oklch(0.692 0.122 181.744);
--chart-3: oklch(0.692 0.122 181.744);
--chart-4: oklch(0.731 0.129 181.691);
--chart-5: oklch(0.496 0.194 24.21);
}