Plaintive is a shadcn/ui theme built around a vivid purple primary color (#b113b4) with vivid green accents (#16b413). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#b113b4) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070307black |
| Foreground | #0d020dblack | #ffffffwhite |
| Card | #fcfcfcsnow | #0a050ablack |
| Card foreground | #090109black | #ffffffwhite |
| Popover | #ffffffwhite | #070307black |
| Popover foreground | #0d020dblack | #ffffffwhite |
| Primary | #b113b4darkorchid | #b113b4darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #16b413forestgreen | #16b413forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfecdfgainsboro | #132013black |
| Muted foreground | #4e6a4edarkolivegreen | #96b195darkseagreen |
| Accent | #16b413forestgreen | #16b413forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c71d0afirebrick | #f2240dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b113b4darkorchid | #b113b4darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 5.78:1 | AA |
| Secondary button | 2.77:1 | Fail |
| Muted text | 4.92:1 | AA |
| Accent | 2.77:1 | Fail |
| Destructive | 5.83:1 | AA |
| Text on background | 20.45:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 5.78:1 | AA |
| Secondary button | 2.77:1 | Fail |
| Muted text | 7.24:1 | AAA |
| Accent | 2.77:1 | Fail |
| Destructive | 4.16: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.122 0.04 327.211);
--muted: oklch(0.93 0.022 144.93);
--muted-foreground: oklch(0.493 0.054 144.298);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.04 327.211);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.035 327.267);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.541 0.241 327.467);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.669 0.221 142.504);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.669 0.221 142.504);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.531 0.203 30.457);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.541 0.241 327.467);
--chart-1: oklch(0.541 0.241 327.467);
--chart-2: oklch(0.669 0.221 142.504);
--chart-3: oklch(0.669 0.221 142.504);
--chart-4: oklch(0.707 0.234 142.501);
--chart-5: oklch(0.546 0.245 327.472);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.014 326.014);
--foreground: oklch(1 0 180);
--muted: oklch(0.227 0.031 144.079);
--muted-foreground: oklch(0.732 0.049 144.615);
--popover: oklch(0.112 0.014 326.014);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.016 326.014);
--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.541 0.241 327.467);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.669 0.221 142.504);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.669 0.221 142.504);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.615 0.237 30.417);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.541 0.241 327.467);
--chart-1: oklch(0.541 0.241 327.467);
--chart-2: oklch(0.669 0.221 142.504);
--chart-3: oklch(0.669 0.221 142.504);
--chart-4: oklch(0.707 0.234 142.501);
--chart-5: oklch(0.546 0.245 327.472);
}