Plaintive is a shadcn/ui theme built around a near-white primary color (#f4f5f5) with near-white accents (#f4f4f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f4f5f5) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #02090dblack | #f9fafaghostwhite |
| Card | #fcfcfcsnow | #030607black |
| Card foreground | #010609black | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #030607black |
| Popover foreground | #010609black | #fcfdfdwhite |
| Primary | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
| Primary foreground | #565d61dimgray | #565d61dimgray |
| Secondary | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
| Secondary foreground | #262b2bdarkslategray | #262b2bdarkslategray |
| Muted | #eaeceblavender | #131515black |
| Muted foreground | #636968dimgray | #969c9bdarkgray |
| Accent | #f4f4f5whitesmoke | #f4f4f5whitesmoke |
| Accent foreground | #565861dimgray | #565861dimgray |
| Destructive | #be0404firebrick | #fa1919red |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.13:1 | AA |
| Secondary button | 13.18:1 | AAA |
| Muted text | 4.70:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 6.12:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 6.13:1 | AA |
| Secondary button | 13.18:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 4.01: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.132 0.018 227.475);
--muted: oklch(0.94 0.002 188.854);
--muted-foreground: oklch(0.515 0.008 188.557);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.115 0.015 225.989);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.115 0.015 225.989);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.97 0.001 234.521);
--primary-foreground: oklch(0.474 0.011 234.847);
--secondary: oklch(0.97 0.001 188.878);
--secondary-foreground: oklch(0.285 0.007 188.319);
--accent: oklch(0.968 0.001 280.307);
--accent-foreground: oklch(0.461 0.016 279.775);
--destructive: oklch(0.504 0.205 29.048);
--destructive-foreground: oklch(0.978 0.011 17.336);
--ring: oklch(0.97 0.001 234.521);
--chart-1: oklch(0.97 0.001 234.521);
--chart-2: oklch(0.97 0.001 188.878);
--chart-3: oklch(0.968 0.001 280.307);
--chart-4: oklch(0.993 0 188.902);
--chart-5: oklch(0.97 0.002 234.529);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.007 229.301);
--foreground: oklch(0.985 0.001 234.519);
--muted: oklch(0.195 0.003 188.514);
--muted-foreground: oklch(0.688 0.007 188.663);
--popover: oklch(0.116 0.009 229.301);
--popover-foreground: oklch(0.992 0 234.513);
--card: oklch(0.116 0.009 229.301);
--card-foreground: oklch(0.992 0 234.513);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.97 0.001 234.521);
--primary-foreground: oklch(0.474 0.011 234.847);
--secondary: oklch(0.97 0.001 188.878);
--secondary-foreground: oklch(0.285 0.007 188.319);
--accent: oklch(0.968 0.001 280.307);
--accent-foreground: oklch(0.461 0.016 279.775);
--destructive: oklch(0.626 0.247 28.444);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.97 0.001 234.521);
--chart-1: oklch(0.97 0.001 234.521);
--chart-2: oklch(0.97 0.001 188.878);
--chart-3: oklch(0.968 0.001 280.307);
--chart-4: oklch(0.993 0 188.902);
--chart-5: oklch(0.97 0.002 234.529);
}