Trivial is a shadcn/ui theme built around a deep green primary color (#071c0c) with deep red accents (#1c0c07). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#071c0c) on a green-tinted background (#050f07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #050f07black |
| Foreground | #030c05black | #fcfdfcwhite |
| Card | #f7fcf9mintcream | #071309black |
| Card foreground | #020803black | #ffffffwhite |
| Popover | #fbfefcwhite | #050f07black |
| Popover foreground | #030c05black | #fcfdfcwhite |
| Primary | #071c0cblack | #071c0cblack |
| Primary foreground | #32bd50limegreen | #32bd50limegreen |
| Secondary | #0c071cblack | #0c071cblack |
| Secondary foreground | #d3cbf1thistle | #d3cbf1thistle |
| Muted | #e5e3edlavender | #14121cblack |
| Muted foreground | #534e65dimgray | #9f9ab1darkgray |
| Accent | #1c0c07black | #1c0c07black |
| Accent foreground | #dc8f7adarksalmon | #dc8f7adarksalmon |
| Destructive | #bc3310firebrick | #ee623ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #071c0cblack | #071c0cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 12.75:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 12.75:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Trivial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 152.56);
--foreground: oklch(0.141 0.024 151.646);
--muted: oklch(0.92 0.014 296.058);
--muted-foreground: oklch(0.437 0.038 294.699);
--popover: oklch(0.994 0.004 152.56);
--popover-foreground: oklch(0.141 0.024 151.646);
--card: oklch(0.987 0.007 152.502);
--card-foreground: oklch(0.123 0.021 151.78);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.205 0.042 148.861);
--primary-foreground: oklch(0.704 0.19 146.668);
--secondary: oklch(0.152 0.043 290.682);
--secondary-foreground: oklch(0.86 0.053 295.183);
--accent: oklch(0.177 0.03 36.967);
--accent-foreground: oklch(0.723 0.099 36.18);
--destructive: oklch(0.527 0.179 34.134);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.042 148.861);
--chart-1: oklch(0.205 0.042 148.861);
--chart-2: oklch(0.152 0.043 290.682);
--chart-3: oklch(0.177 0.03 36.967);
--chart-4: oklch(0.177 0.058 289.086);
--chart-5: oklch(0.206 0.044 148.744);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.023 151.301);
--foreground: oklch(0.993 0.002 152.584);
--muted: oklch(0.189 0.02 294.298);
--muted-foreground: oklch(0.699 0.034 295.437);
--popover: oklch(0.155 0.023 151.301);
--popover-foreground: oklch(0.993 0.002 152.584);
--card: oklch(0.17 0.026 150.487);
--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.205 0.042 148.861);
--primary-foreground: oklch(0.704 0.19 146.668);
--secondary: oklch(0.152 0.043 290.682);
--secondary-foreground: oklch(0.86 0.053 295.183);
--accent: oklch(0.177 0.03 36.967);
--accent-foreground: oklch(0.723 0.099 36.18);
--destructive: oklch(0.668 0.181 35.176);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.205 0.042 148.861);
--chart-1: oklch(0.205 0.042 148.861);
--chart-2: oklch(0.152 0.043 290.682);
--chart-3: oklch(0.177 0.03 36.967);
--chart-4: oklch(0.177 0.058 289.086);
--chart-5: oklch(0.206 0.044 148.744);
}