Poignance is a shadcn/ui theme built around an indigo primary color (#4f43db) with green accents (#cedb43). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#4f43db) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020203black |
| Foreground | #04040cblack | #f9f9fbghostwhite |
| Card | #f7f7fdghostwhite | #040407black |
| Card foreground | #030208black | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #020203black |
| Popover foreground | #04040cblack | #f9f9fbghostwhite |
| Primary | #4f43dbslateblue | #4f43dbslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cedb43greenyellow | #cedb43greenyellow |
| Secondary foreground | #40450ddarkolivegreen | #40450ddarkolivegreen |
| Muted | #ebecdfbeige | #1f2013black |
| Muted foreground | #5e5f53dimgray | #abaca0darkgray |
| Accent | #cedb43greenyellow | #cedb43greenyellow |
| Accent foreground | #40450ddarkolivegreen | #40450ddarkolivegreen |
| Destructive | #c54d11chocolate | #ee763atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f43dbslateblue | #4f43dbslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 5.42:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 4.72:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 7.18:1 | AAA |
| Accent | 6.67:1 | AA |
| Destructive | 7.27:1 | AAA |
Paste this into your globals.css to use Poignance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 290.172);
--foreground: oklch(0.111 0.023 287.4);
--muted: oklch(0.938 0.017 110.583);
--muted-foreground: oklch(0.482 0.019 110.993);
--popover: oklch(0.989 0.004 290.172);
--popover-foreground: oklch(0.111 0.023 287.4);
--card: oklch(0.978 0.008 290.096);
--card-foreground: oklch(0.097 0.02 287.473);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.497 0.222 278.316);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.855 0.17 114.136);
--secondary-foreground: oklch(0.373 0.075 114.229);
--accent: oklch(0.855 0.17 114.136);
--accent-foreground: oklch(0.373 0.075 114.229);
--destructive: oklch(0.574 0.166 41.811);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.497 0.222 278.316);
--chart-1: oklch(0.497 0.222 278.316);
--chart-2: oklch(0.855 0.17 114.136);
--chart-3: oklch(0.855 0.17 114.136);
--chart-4: oklch(0.864 0.163 113.864);
--chart-5: oklch(0.493 0.23 277.527);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.009 288.967);
--foreground: oklch(0.982 0.003 290.187);
--muted: oklch(0.238 0.023 112.015);
--muted-foreground: oklch(0.74 0.018 110.689);
--popover: oklch(0.084 0.009 288.967);
--popover-foreground: oklch(0.982 0.003 290.187);
--card: oklch(0.106 0.011 288.967);
--card-foreground: oklch(0.991 0.002 290.217);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.497 0.222 278.316);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.855 0.17 114.136);
--secondary-foreground: oklch(0.373 0.075 114.229);
--accent: oklch(0.855 0.17 114.136);
--accent-foreground: oklch(0.373 0.075 114.229);
--destructive: oklch(0.696 0.165 44.872);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.497 0.222 278.316);
--chart-1: oklch(0.497 0.222 278.316);
--chart-2: oklch(0.855 0.17 114.136);
--chart-3: oklch(0.855 0.17 114.136);
--chart-4: oklch(0.864 0.163 113.864);
--chart-5: oklch(0.493 0.23 277.527);
}