Trivial is a shadcn/ui theme built around a muted deep pink primary color (#47393e) with muted deep blue accents (#393e47). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted deep pink primary (#47393e) on a pink-tinted background (#0e0609).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0e0609black |
| Foreground | #0c0306black | #fbf8f9snow |
| Card | #fcf8f9snow | #12080bblack |
| Card foreground | #080204black | #fdfcfcsnow |
| Popover | #fefbfcsnow | #0e0609black |
| Popover foreground | #0c0306black | #fbf8f9snow |
| Primary | #47393edarkslategray | #47393edarkslategray |
| Primary foreground | #ddd5d7gainsboro | #ddd5d7gainsboro |
| Secondary | #3e4739darkslategray | #3e4739darkslategray |
| Secondary foreground | #d7ddd5gainsboro | #d7ddd5gainsboro |
| Muted | #dbe9d3gainsboro | #1e2c16black |
| Muted foreground | #4e5c47darkolivegreen | #aab8a3darkgray |
| Accent | #393e47darkslategray | #393e47darkslategray |
| Accent foreground | #d5d7ddgainsboro | #d5d7ddgainsboro |
| Destructive | #a5180dfirebrick | #ef4539tomato |
| Destructive foreground | #fde9e7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #47393edarkslategray | #47393edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Trivial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 353.649);
--foreground: oklch(0.12 0.024 353.483);
--muted: oklch(0.917 0.033 134.424);
--muted-foreground: oklch(0.457 0.038 134.713);
--popover: oklch(0.991 0.003 353.649);
--popover-foreground: oklch(0.12 0.024 353.483);
--card: oklch(0.982 0.005 353.726);
--card-foreground: oklch(0.105 0.02 353.175);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.36 0.021 355.212);
--primary-foreground: oklch(0.879 0.01 353.902);
--secondary: oklch(0.384 0.026 134.619);
--secondary-foreground: oklch(0.891 0.013 134.3);
--accent: oklch(0.361 0.017 262.903);
--accent-foreground: oklch(0.88 0.008 263.036);
--destructive: oklch(0.464 0.176 29.656);
--destructive-foreground: oklch(0.949 0.022 22.489);
--ring: oklch(0.36 0.021 355.212);
--chart-1: oklch(0.36 0.021 355.212);
--chart-2: oklch(0.384 0.026 134.619);
--chart-3: oklch(0.361 0.017 262.903);
--chart-4: oklch(0.414 0.029 134.627);
--chart-5: oklch(0.358 0.027 355.668);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.017 354.651);
--foreground: oklch(0.983 0.004 353.681);
--muted: oklch(0.274 0.043 135.29);
--muted-foreground: oklch(0.766 0.033 134.47);
--popover: oklch(0.138 0.017 354.651);
--popover-foreground: oklch(0.983 0.004 353.681);
--card: oklch(0.15 0.02 356.486);
--card-foreground: oklch(0.991 0.002 353.627);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.36 0.021 355.212);
--primary-foreground: oklch(0.879 0.01 353.902);
--secondary: oklch(0.384 0.026 134.619);
--secondary-foreground: oklch(0.891 0.013 134.3);
--accent: oklch(0.361 0.017 262.903);
--accent-foreground: oklch(0.88 0.008 263.036);
--destructive: oklch(0.636 0.208 28.543);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.36 0.021 355.212);
--chart-1: oklch(0.36 0.021 355.212);
--chart-2: oklch(0.384 0.026 134.619);
--chart-3: oklch(0.361 0.017 262.903);
--chart-4: oklch(0.414 0.029 134.627);
--chart-5: oklch(0.358 0.027 355.668);
}