Trivial is a shadcn/ui theme built around a muted deep purple primary color (#423342) with muted deep teal accents (#334242). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#423342) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a050ablack |
| Foreground | #150514black | #f8f7f8whitesmoke |
| Card | #ffffffwhite | #0a050ablack |
| Card foreground | #150514black | #f8f7f8whitesmoke |
| Popover | #ffffffwhite | #0a050ablack |
| Popover foreground | #150514black | #f8f7f8whitesmoke |
| Primary | #423342darkslategray | #423342darkslategray |
| Primary foreground | #d9ced9lightgrey | #d9ced9lightgrey |
| Secondary | #424233darkslategray | #424233darkslategray |
| Secondary foreground | #d9d9celightgrey | #d9d9celightgrey |
| Muted | #efefe6linen | #181910black |
| Muted foreground | #65665cdimgray | #a2a399darkgray |
| Accent | #334242darkslategray | #334242darkslategray |
| Accent foreground | #ced9d9lightgrey | #ced9d9lightgrey |
| Destructive | #c82609firebrick | #e52c0borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #423342darkslategray | #423342darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 5.63:1 | AA |
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 4.48: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.151 0.042 329.192);
--muted: oklch(0.95 0.012 108.941);
--muted-foreground: oklch(0.506 0.015 109.251);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.042 329.192);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.042 329.192);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.344 0.032 327.869);
--primary-foreground: oklch(0.864 0.019 327.24);
--secondary: oklch(0.375 0.025 109.909);
--secondary-foreground: oklch(0.883 0.015 109.027);
--accent: oklch(0.365 0.019 200.333);
--accent-foreground: oklch(0.876 0.012 200.73);
--destructive: oklch(0.538 0.2 31.777);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.344 0.032 327.869);
--chart-1: oklch(0.344 0.032 327.869);
--chart-2: oklch(0.375 0.025 109.909);
--chart-3: oklch(0.365 0.019 200.333);
--chart-4: oklch(0.406 0.028 109.932);
--chart-5: oklch(0.343 0.04 328.052);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.018 327.993);
--foreground: oklch(0.976 0.003 327.064);
--muted: oklch(0.209 0.017 110.151);
--muted-foreground: oklch(0.712 0.014 109.065);
--popover: oklch(0.127 0.018 327.993);
--popover-foreground: oklch(0.976 0.003 327.064);
--card: oklch(0.127 0.018 327.993);
--card-foreground: oklch(0.976 0.003 327.064);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.344 0.032 327.869);
--primary-foreground: oklch(0.864 0.019 327.24);
--secondary: oklch(0.375 0.025 109.909);
--secondary-foreground: oklch(0.883 0.015 109.027);
--accent: oklch(0.365 0.019 200.333);
--accent-foreground: oklch(0.876 0.012 200.73);
--destructive: oklch(0.595 0.222 31.698);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.344 0.032 327.869);
--chart-1: oklch(0.344 0.032 327.869);
--chart-2: oklch(0.375 0.025 109.909);
--chart-3: oklch(0.365 0.019 200.333);
--chart-4: oklch(0.406 0.028 109.932);
--chart-5: oklch(0.343 0.04 328.052);
}