Plaintiff is a shadcn/ui theme built around a violet primary color (#694389) with muted light violet accents (#d2c8da). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#694389) on a violet-tinted background (#0b0410).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0410black |
| Foreground | #000000black | #f8f5fawhitesmoke |
| Card | #fcfcfcsnow | #0d0614black |
| Card foreground | #000000black | #faf8fcghostwhite |
| Popover | #fcfcfcsnow | #0d0614black |
| Popover foreground | #000000black | #faf8fcghostwhite |
| Primary | #694389rebeccapurple | #694389rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e8e6ealavender | #2e2b31darkslategray |
| Secondary foreground | #504757darkslategray | #c7c3cbsilver |
| Muted | #f2f1f4whitesmoke | #0d0b0eblack |
| Muted foreground | #453f4bdarkslategray | #bbb4c0silver |
| Accent | #d2c8dathistle | #3b3342darkslategray |
| Accent foreground | #392d43darkslategray | #d4ced9lightgrey |
| Destructive | #9d3a02saddlebrown | #fc5e03orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #694389rebeccapurple | #694389rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 18.67:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 9.69:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Plaintiff in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.96 0.004 310.402);
--muted-foreground: oklch(0.378 0.023 309.883);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.459 0.115 307.867);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.927 0.007 310.37);
--secondary-foreground: oklch(0.413 0.028 309.805);
--accent: oklch(0.847 0.026 310.152);
--accent-foreground: oklch(0.321 0.04 309.263);
--destructive: oklch(0.482 0.143 42.696);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.459 0.115 307.867);
--chart-1: oklch(0.459 0.115 307.867);
--chart-2: oklch(0.927 0.007 310.37);
--chart-3: oklch(0.847 0.026 310.152);
--chart-4: oklch(0.952 0.004 310.394);
--chart-5: oklch(0.456 0.125 307.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.03 310.346);
--foreground: oklch(0.973 0.007 310.37);
--muted: oklch(0.155 0.006 310.089);
--muted-foreground: oklch(0.779 0.019 310.212);
--popover: oklch(0.141 0.034 309.095);
--popover-foreground: oklch(0.982 0.005 310.393);
--card: oklch(0.141 0.034 309.095);
--card-foreground: oklch(0.982 0.005 310.393);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.459 0.115 307.867);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.294 0.012 310.044);
--secondary-foreground: oklch(0.823 0.012 310.304);
--accent: oklch(0.336 0.029 309.648);
--accent-foreground: oklch(0.86 0.017 310.256);
--destructive: oklch(0.682 0.208 41.342);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.459 0.115 307.867);
--chart-1: oklch(0.459 0.115 307.867);
--chart-2: oklch(0.294 0.012 310.044);
--chart-3: oklch(0.336 0.029 309.648);
--chart-4: oklch(0.324 0.014 310.03);
--chart-5: oklch(0.456 0.125 307.576);
}