Posh is a shadcn/ui theme built around a muted light violet primary color (#ebe8ed) with neutral gray accents (#e6e4e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light violet primary (#ebe8ed) on a violet-tinted background (#0b0410).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0410black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #ffffffwhite | #0b0410black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #ffffffwhite | #0b0410black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #ebe8edlavender | #ebe8edlavender |
| Primary foreground | #53465ddarkslategray | #53465ddarkslategray |
| Secondary | #e6e4e7gainsboro | #2f2636darkslategray |
| Secondary foreground | #4d4950darkslategray | #c8bdd1thistle |
| Muted | #ece3f2lavender | #150d1cblack |
| Muted foreground | #525053darkslategray | #aeacafdarkgray |
| Accent | #e6e4e7gainsboro | #2f2636darkslategray |
| Accent foreground | #4d4950darkslategray | #c8bdd1thistle |
| Destructive | #d43302orangered | #e83802orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebe8edlavender | #ebe8edlavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 6.38:1 | AA |
| Accent | 6.98:1 | AA |
| Destructive | 4.90:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.43:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Posh in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.927 0.023 310.871);
--muted-foreground: oklch(0.434 0.006 310.968);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.934 0.008 311.006);
--primary-foreground: oklch(0.417 0.041 310.236);
--secondary: oklch(0.922 0.003 311.056);
--secondary-foreground: oklch(0.413 0.011 310.853);
--accent: oklch(0.922 0.003 311.056);
--accent-foreground: oklch(0.413 0.011 310.853);
--destructive: oklch(0.57 0.203 34.263);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.934 0.008 311.006);
--chart-1: oklch(0.934 0.008 311.006);
--chart-2: oklch(0.922 0.003 311.056);
--chart-3: oklch(0.922 0.003 311.056);
--chart-4: oklch(0.945 0.002 311.065);
--chart-5: oklch(0.933 0.01 310.99);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.031 311.055);
--foreground: oklch(0.992 0.002 311.07);
--muted: oklch(0.178 0.034 309.373);
--muted-foreground: oklch(0.746 0.005 311.025);
--popover: oklch(0.13 0.031 311.055);
--popover-foreground: oklch(0.992 0.002 311.07);
--card: oklch(0.13 0.031 311.055);
--card-foreground: oklch(0.992 0.002 311.07);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.934 0.008 311.006);
--primary-foreground: oklch(0.417 0.041 310.236);
--secondary: oklch(0.285 0.032 310.095);
--secondary-foreground: oklch(0.813 0.031 310.758);
--accent: oklch(0.285 0.032 310.095);
--accent-foreground: oklch(0.813 0.031 310.758);
--destructive: oklch(0.61 0.218 34.112);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.934 0.008 311.006);
--chart-1: oklch(0.934 0.008 311.006);
--chart-2: oklch(0.285 0.032 310.095);
--chart-3: oklch(0.285 0.032 310.095);
--chart-4: oklch(0.313 0.037 310.058);
--chart-5: oklch(0.933 0.01 310.99);
}