Pince-nez is a shadcn/ui theme built around a muted blue primary color (#6f849f) with muted green accents (#849f6f). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted blue primary (#6f849f) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #010204black |
| Foreground | #040910black | #f9fafbghostwhite |
| Card | #f8fafcghostwhite | #020508black |
| Card foreground | #03070cblack | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #010204black |
| Popover foreground | #040910black | #f9fafbghostwhite |
| Primary | #6f849flightslategray | #6f849flightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #9f6f84gray | #9f6f84gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f2edefwhitesmoke | #120d0fblack |
| Muted foreground | #65585ddimgray | #a79aa0darkgray |
| Accent | #849f6fgray | #849f6fgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #6d2009maroon | #f06b42tomato |
| Destructive foreground | #f8c0aflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f849flightslategray | #6f849flightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 5.09:1 | AA |
| Muted text | 5.85:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 5.47:1 | AA |
| Secondary button | 5.09:1 | AA |
| Muted text | 7.13:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.86:1 | AA |
Paste this into your globals.css to use Pince-nez in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.001 254.962);
--foreground: oklch(0.139 0.019 249.618);
--muted: oklch(0.951 0.006 348.896);
--muted-foreground: oklch(0.474 0.019 349.83);
--popover: oklch(0.992 0.001 254.962);
--popover-foreground: oklch(0.139 0.019 249.618);
--card: oklch(0.984 0.003 254.97);
--card-foreground: oklch(0.126 0.016 246.762);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.607 0.048 255.255);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.598 0.067 351.644);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.669 0.075 132.152);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.362 0.113 36.298);
--destructive-foreground: oklch(0.854 0.07 37.598);
--ring: oklch(0.607 0.048 255.255);
--chart-1: oklch(0.607 0.048 255.255);
--chart-2: oklch(0.598 0.067 351.644);
--chart-3: oklch(0.669 0.075 132.152);
--chart-4: oklch(0.624 0.062 351.321);
--chart-5: oklch(0.605 0.055 255.289);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.01 246.943);
--foreground: oklch(0.984 0.002 254.965);
--muted: oklch(0.166 0.009 350.143);
--muted-foreground: oklch(0.699 0.017 349.413);
--popover: oklch(0.087 0.01 246.943);
--popover-foreground: oklch(0.984 0.002 254.965);
--card: oklch(0.11 0.013 246.943);
--card-foreground: oklch(0.992 0.001 254.959);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.607 0.048 255.255);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.598 0.067 351.644);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.669 0.075 132.152);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.683 0.174 37.43);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.607 0.048 255.255);
--chart-1: oklch(0.607 0.048 255.255);
--chart-2: oklch(0.598 0.067 351.644);
--chart-3: oklch(0.669 0.075 132.152);
--chart-4: oklch(0.624 0.062 351.321);
--chart-5: oklch(0.605 0.055 255.289);
}