Plaintive is a shadcn/ui theme built around a neutral gray primary color (#e4e2e2) with neutral gray accents (#e2e2e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#e4e2e2) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070303black |
| Foreground | #150504black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0b0404black |
| Card foreground | #110403black | #ffffffwhite |
| Popover | #ffffffwhite | #070303black |
| Popover foreground | #150504black | #fdfcfcsnow |
| Primary | #e4e2e2gainsboro | #e4e2e2gainsboro |
| Primary foreground | #4d4747darkslategray | #4d4747darkslategray |
| Secondary | #e2e4e2gainsboro | #e2e4e2gainsboro |
| Secondary foreground | #474d47darkslategray | #474d47darkslategray |
| Muted | #e8f2e8honeydew | #0d170dblack |
| Muted foreground | #486149darkolivegreen | #9eb79fdarkgray |
| Accent | #e2e2e4gainsboro | #e2e2e4gainsboro |
| Accent foreground | #47474ddarkslategray | #47474ddarkslategray |
| Destructive | #812b0esaddlebrown | #dc4918chocolate |
| Destructive foreground | #f9d4c8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e4e2e2gainsboro | #e4e2e2gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 6.78:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 6.78:1 | AA |
| Muted text | 8.49:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Plaintive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.032 26.293);
--muted: oklch(0.952 0.017 146.871);
--muted-foreground: oklch(0.464 0.049 145.997);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.032 26.293);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.132 0.028 26.397);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.914 0.002 20.921);
--primary-foreground: oklch(0.404 0.008 21.133);
--secondary: oklch(0.917 0.004 147.001);
--secondary-foreground: oklch(0.413 0.012 146.765);
--accent: oklch(0.913 0.003 288.648);
--accent-foreground: oklch(0.4 0.01 288.246);
--destructive: oklch(0.413 0.124 37.423);
--destructive-foreground: oklch(0.898 0.045 39.286);
--ring: oklch(0.914 0.002 20.921);
--chart-1: oklch(0.914 0.002 20.921);
--chart-2: oklch(0.917 0.004 147.001);
--chart-3: oklch(0.913 0.003 288.648);
--chart-4: oklch(0.94 0.003 147.012);
--chart-5: oklch(0.913 0.004 20.946);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.014 24.161);
--foreground: oklch(0.991 0.002 20.914);
--muted: oklch(0.191 0.025 145.732);
--muted-foreground: oklch(0.755 0.044 146.483);
--popover: oklch(0.107 0.014 24.161);
--popover-foreground: oklch(0.991 0.002 20.914);
--card: oklch(0.123 0.016 24.149);
--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.914 0.002 20.921);
--primary-foreground: oklch(0.404 0.008 21.133);
--secondary: oklch(0.917 0.004 147.001);
--secondary-foreground: oklch(0.413 0.012 146.765);
--accent: oklch(0.913 0.003 288.648);
--accent-foreground: oklch(0.4 0.01 288.246);
--destructive: oklch(0.607 0.191 36.868);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.914 0.002 20.921);
--chart-1: oklch(0.914 0.002 20.921);
--chart-2: oklch(0.917 0.004 147.001);
--chart-3: oklch(0.913 0.003 288.648);
--chart-4: oklch(0.94 0.003 147.012);
--chart-5: oklch(0.913 0.004 20.946);
}