Trifling is a shadcn/ui theme built around a vivid green primary color (#349108) with vivid pink accents (#910834). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid green primary (#349108) on a green-tinted background (#060b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #060b04black |
| Foreground | #040802black | #ffffffwhite |
| Card | #fcfefbwhite | #060b04black |
| Card foreground | #040802black | #ffffffwhite |
| Popover | #fcfefbwhite | #060b04black |
| Popover foreground | #040802black | #ffffffwhite |
| Primary | #349108forestgreen | #349108forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #083491midnightblue | #083491midnightblue |
| Secondary foreground | #cfddfclavender | #cfddfclavender |
| Muted | #e8ebf3lavender | #0c1017black |
| Muted foreground | #434851darkslategray | #aeb3bcdarkgray |
| Accent | #910834brown | #910834brown |
| Accent foreground | #fccfddmistyrose | #fccfddmistyrose |
| Destructive | #8f110adarkred | #e51b10red |
| Destructive foreground | #fcd2cfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #349108forestgreen | #349108forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 4.06:1 | AA Large |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 4.06:1 | AA Large |
| Secondary button | 8.10:1 | AAA |
| Muted text | 9.04:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use Trifling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 135.447);
--foreground: oklch(0.126 0.023 133.682);
--muted: oklch(0.94 0.011 265.954);
--muted-foreground: oklch(0.399 0.016 265.774);
--popover: oklch(0.995 0.005 135.447);
--popover-foreground: oklch(0.126 0.023 133.682);
--card: oklch(0.995 0.005 135.447);
--card-foreground: oklch(0.126 0.023 133.682);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.577 0.179 139.19);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.365 0.16 262.704);
--secondary-foreground: oklch(0.897 0.045 265.702);
--accent: oklch(0.421 0.163 12.731);
--accent-foreground: oklch(0.897 0.054 357.297);
--destructive: oklch(0.416 0.16 29.285);
--destructive-foreground: oklch(0.898 0.048 21.625);
--ring: oklch(0.577 0.179 139.19);
--chart-1: oklch(0.577 0.179 139.19);
--chart-2: oklch(0.365 0.16 262.704);
--chart-3: oklch(0.421 0.163 12.731);
--chart-4: oklch(0.39 0.173 262.724);
--chart-5: oklch(0.583 0.183 139.334);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.022 134.059);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.016 265.336);
--muted-foreground: oklch(0.765 0.014 265.918);
--popover: oklch(0.142 0.022 134.059);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.022 134.059);
--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.577 0.179 139.19);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.365 0.16 262.704);
--secondary-foreground: oklch(0.897 0.045 265.702);
--accent: oklch(0.421 0.163 12.731);
--accent-foreground: oklch(0.897 0.054 357.297);
--destructive: oklch(0.586 0.23 29.432);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.577 0.179 139.19);
--chart-1: oklch(0.577 0.179 139.19);
--chart-2: oklch(0.365 0.16 262.704);
--chart-3: oklch(0.421 0.163 12.731);
--chart-4: oklch(0.39 0.173 262.724);
--chart-5: oklch(0.583 0.183 139.334);
}