Plaintive is a shadcn/ui theme built around a green primary color (#5db660) with teal accents (#5db68d). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#5db660) on a green-tinted background (#050f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050f06black |
| Foreground | #031104black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #071307black |
| Card foreground | #020d03black | #ffffffwhite |
| Popover | #fcfcfcsnow | #071307black |
| Popover foreground | #020d03black | #ffffffwhite |
| Primary | #5db660mediumseagreen | #5db660mediumseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #87b65ddarkseagreen | #87b65ddarkseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #e3e9ddgainsboro | #1c2216black |
| Muted foreground | #5c5f58dimgray | #a3a7a0darkgray |
| Accent | #5db68dcadetblue | #5db68dcadetblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #e04006orangered | #f9591forangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5db660mediumseagreen | #5db660mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.89:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 8.56:1 | AAA |
| Destructive | 4.29:1 | AA Large |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.89:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 8.56:1 | AAA |
| Destructive | 6.49:1 | AA |
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.16 0.038 144.47);
--muted: oklch(0.925 0.017 129.97);
--muted-foreground: oklch(0.481 0.013 130.047);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.142 0.033 144.61);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.142 0.033 144.61);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.701 0.149 144.424);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.723 0.13 131.972);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.71 0.107 161.703);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.603 0.204 35.972);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.701 0.149 144.424);
--chart-1: oklch(0.701 0.149 144.424);
--chart-2: oklch(0.723 0.13 131.972);
--chart-3: oklch(0.71 0.107 161.703);
--chart-4: oklch(0.741 0.122 131.727);
--chart-5: oklch(0.708 0.159 144.285);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.027 145.112);
--foreground: oklch(0.993 0.003 146.518);
--muted: oklch(0.241 0.024 130.825);
--muted-foreground: oklch(0.723 0.011 129.942);
--popover: oklch(0.17 0.031 144.941);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.17 0.031 144.941);
--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.701 0.149 144.424);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.723 0.13 131.972);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.71 0.107 161.703);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.673 0.206 37.98);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.701 0.149 144.424);
--chart-1: oklch(0.701 0.149 144.424);
--chart-2: oklch(0.723 0.13 131.972);
--chart-3: oklch(0.71 0.107 161.703);
--chart-4: oklch(0.741 0.122 131.727);
--chart-5: oklch(0.708 0.159 144.285);
}