Poignance is a shadcn/ui theme built around a green primary color (#a1cf72) with pink accents (#cf72a1). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#a1cf72) on a green-tinted background (#0a0d07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0d07black |
| Foreground | #080d02black | #ffffffwhite |
| Card | #ffffffwhite | #0a0d07black |
| Card foreground | #080d02black | #ffffffwhite |
| Popover | #ffffffwhite | #0a0d07black |
| Popover foreground | #080d02black | #ffffffwhite |
| Primary | #a1cf72darkkhaki | #a1cf72darkkhaki |
| Primary foreground | #080b04black | #080b04black |
| Secondary | #72a1cfcornflowerblue | #72a1cfcornflowerblue |
| Secondary foreground | #04080bblack | #04080bblack |
| Muted | #dee0e3gainsboro | #1c1f21black |
| Muted foreground | #565758dimgray | #a7a8a9darkgray |
| Accent | #cf72a1palevioletred | #cf72a1palevioletred |
| Accent foreground | #0b0408black | #0b0408black |
| Destructive | #790e02maroon | #fb1d04red |
| Destructive foreground | #feb7aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a1cf72darkkhaki | #a1cf72darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 11.00:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.48:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 11.00:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Poignance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.15 0.03 127.484);
--muted: oklch(0.907 0.005 247.877);
--muted-foreground: oklch(0.455 0.002 247.863);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.15 0.03 127.484);
--card: oklch(1 0 180);
--card-foreground: oklch(0.15 0.03 127.484);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.8 0.131 130.601);
--primary-foreground: oklch(0.144 0.02 127.581);
--secondary: oklch(0.693 0.085 249.136);
--secondary-foreground: oklch(0.129 0.012 241.241);
--accent: oklch(0.67 0.128 349.78);
--accent-foreground: oklch(0.123 0.02 345.156);
--destructive: oklch(0.368 0.141 30.995);
--destructive-foreground: oklch(0.842 0.084 26.114);
--ring: oklch(0.8 0.131 130.601);
--chart-1: oklch(0.8 0.131 130.601);
--chart-2: oklch(0.693 0.085 249.136);
--chart-3: oklch(0.67 0.128 349.78);
--chart-4: oklch(0.718 0.077 248.953);
--chart-5: oklch(0.806 0.138 130.732);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.015 128.707);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.007 248.113);
--muted-foreground: oklch(0.732 0.002 247.844);
--popover: oklch(0.155 0.015 128.707);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.015 128.707);
--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.8 0.131 130.601);
--primary-foreground: oklch(0.144 0.02 127.581);
--secondary: oklch(0.693 0.085 249.136);
--secondary-foreground: oklch(0.129 0.012 241.241);
--accent: oklch(0.67 0.128 349.78);
--accent-foreground: oklch(0.123 0.02 345.156);
--destructive: oklch(0.628 0.248 30.267);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.8 0.131 130.601);
--chart-1: oklch(0.8 0.131 130.601);
--chart-2: oklch(0.693 0.085 249.136);
--chart-3: oklch(0.67 0.128 349.78);
--chart-4: oklch(0.718 0.077 248.953);
--chart-5: oklch(0.806 0.138 130.732);
}