Trapezium is a shadcn/ui theme built around an indigo primary color (#a2a4d2) with muted light indigo accents (#bfbfd4). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#a2a4d2) on an indigo-tinted background (#06060f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #06060fblack |
| Foreground | #04040cblack | #fcfcfdwhite |
| Card | #fbfbfeghostwhite | #06060fblack |
| Card foreground | #04040cblack | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #06060fblack |
| Popover foreground | #04040cblack | #fcfcfdwhite |
| Primary | #a2a4d2lightsteelblue | #a2a4d2lightsteelblue |
| Primary foreground | #16162dblack | #16162dblack |
| Secondary | #d7d8dfgainsboro | #19191ablack |
| Secondary foreground | #3b3b4adarkslategray | #b1b1b4darkgray |
| Muted | #d6d7eagainsboro | #151529black |
| Muted foreground | #555668dimgray | #9798aadarkgray |
| Accent | #bfbfd4lightsteelblue | #28292edarkslategray |
| Accent foreground | #27273adarkslategray | #c0c1c8silver |
| Destructive | #b61f11firebrick | #eb3d2dcrimson |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2a4d2lightsteelblue | #a2a4d2lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 5.06:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Trapezium in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 284.756);
--foreground: oklch(0.112 0.022 280.134);
--muted: oklch(0.884 0.027 284.263);
--muted-foreground: oklch(0.458 0.03 283.608);
--popover: oklch(0.99 0.003 284.756);
--popover-foreground: oklch(0.112 0.022 280.134);
--card: oklch(0.99 0.003 284.756);
--card-foreground: oklch(0.112 0.022 280.134);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.733 0.067 283.062);
--primary-foreground: oklch(0.214 0.044 280.517);
--secondary: oklch(0.883 0.01 284.6);
--secondary-foreground: oklch(0.359 0.024 283.549);
--accent: oklch(0.812 0.029 284.161);
--accent-foreground: oklch(0.283 0.034 282.437);
--destructive: oklch(0.501 0.187 30.057);
--destructive-foreground: oklch(0.99 0.004 23.622);
--ring: oklch(0.733 0.067 283.062);
--chart-1: oklch(0.733 0.067 283.062);
--chart-2: oklch(0.883 0.01 284.6);
--chart-3: oklch(0.812 0.029 284.161);
--chart-4: oklch(0.908 0.008 284.651);
--chart-5: oklch(0.728 0.073 282.882);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.021 281.094);
--foreground: oklch(0.99 0.002 284.765);
--muted: oklch(0.207 0.038 280.968);
--muted-foreground: oklch(0.685 0.027 284.101);
--popover: oklch(0.127 0.021 281.094);
--popover-foreground: oklch(0.99 0.002 284.765);
--card: oklch(0.127 0.021 281.094);
--card-foreground: oklch(0.99 0.002 284.765);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.733 0.067 283.062);
--primary-foreground: oklch(0.214 0.044 280.517);
--secondary: oklch(0.214 0.002 284.649);
--secondary-foreground: oklch(0.761 0.004 284.711);
--accent: oklch(0.281 0.011 284.117);
--accent-foreground: oklch(0.812 0.011 284.566);
--destructive: oklch(0.622 0.213 29.622);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.733 0.067 283.062);
--chart-1: oklch(0.733 0.067 283.062);
--chart-2: oklch(0.214 0.002 284.649);
--chart-3: oklch(0.281 0.011 284.117);
--chart-4: oklch(0.246 0.002 284.635);
--chart-5: oklch(0.728 0.073 282.882);
}