Trivial is a shadcn/ui theme built around a vivid green primary color (#48ea8c) with vivid orange accents (#ea8c48). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#48ea8c) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #020905black | #f8fcfamintcream |
| Card | #ffffffwhite | #010402black |
| Card foreground | #020905black | #f8fcfamintcream |
| Popover | #ffffffwhite | #010402black |
| Popover foreground | #020905black | #f8fcfamintcream |
| Primary | #48ea8cmediumaquamarine | #48ea8cmediumaquamarine |
| Primary foreground | #000000black | #000000black |
| Secondary | #8c48eablueviolet | #8c48eablueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edeaf0lavender | #110f15black |
| Muted foreground | #444148darkslategray | #bab7besilver |
| Accent | #ea8c48coral | #ea8c48coral |
| Accent foreground | #000000black | #000000black |
| Destructive | #8d260csaddlebrown | #dd3b13orangered |
| Destructive foreground | #fbd9d0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #48ea8cmediumaquamarine | #48ea8cmediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 13.37:1 | AAA |
| Secondary button | 4.96:1 | AA |
| Muted text | 8.42:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 6.61:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 13.37:1 | AAA |
| Secondary button | 4.96:1 | AA |
| Muted text | 9.61:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Trivial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.02 160.932);
--muted: oklch(0.941 0.008 304.927);
--muted-foreground: oklch(0.382 0.012 304.607);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.02 160.932);
--card: oklch(1 0 180);
--card-foreground: oklch(0.125 0.02 160.932);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.831 0.187 153.27);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.571 0.229 297.732);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.726 0.141 53.884);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.429 0.142 34.365);
--destructive-foreground: oklch(0.911 0.04 34.321);
--ring: oklch(0.831 0.187 153.27);
--chart-1: oklch(0.831 0.187 153.27);
--chart-2: oklch(0.571 0.229 297.732);
--chart-3: oklch(0.726 0.141 53.884);
--chart-4: oklch(0.599 0.215 298.905);
--chart-5: oklch(0.838 0.192 153.003);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.013 160.948);
--foreground: oklch(0.987 0.005 160.902);
--muted: oklch(0.174 0.012 304.072);
--muted-foreground: oklch(0.783 0.01 304.866);
--popover: oklch(0.098 0.013 160.948);
--popover-foreground: oklch(0.987 0.005 160.902);
--card: oklch(0.098 0.013 160.948);
--card-foreground: oklch(0.987 0.005 160.902);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.831 0.187 153.27);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.571 0.229 297.732);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.726 0.141 53.884);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.593 0.203 34.015);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.831 0.187 153.27);
--chart-1: oklch(0.831 0.187 153.27);
--chart-2: oklch(0.571 0.229 297.732);
--chart-3: oklch(0.726 0.141 53.884);
--chart-4: oklch(0.599 0.215 298.905);
--chart-5: oklch(0.838 0.192 153.003);
}