Dapper is a shadcn/ui theme built around a muted light red primary color (#d9c4c6) with neutral gray accents (#cfc9c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#d9c4c6) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0505black |
| Foreground | #0d0203black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0e0707black |
| Card foreground | #090102black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0e0707black |
| Popover foreground | #090102black | #ffffffwhite |
| Primary | #d9c4c6thistle | #d9c4c6thistle |
| Primary foreground | #412a2cdarkslategray | #412a2cdarkslategray |
| Secondary | #e0e0e0gainsboro | #261d1dblack |
| Secondary foreground | #474747darkslategray | #c4b1b2silver |
| Muted | #e8dedegainsboro | #211718black |
| Muted foreground | #4f3b3bdarkslategray | #c4b0b2silver |
| Accent | #cfc9c9lightgrey | #412a2cdarkslategray |
| Accent foreground | #363030darkslategray | #d9c4c6thistle |
| Destructive | #c55311chocolate | #ef8243coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9c4c6thistle | #d9c4c6thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 4.54:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 7.94:1 | AAA |
Paste this into your globals.css to use Dapper in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.028 14.08);
--muted: oklch(0.909 0.01 17.349);
--muted-foreground: oklch(0.373 0.029 18.556);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.1 0.024 13.839);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.024 13.839);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.838 0.024 11.882);
--primary-foreground: oklch(0.313 0.035 13.809);
--secondary: oklch(0.908 0 180);
--secondary-foreground: oklch(0.399 0 180);
--accent: oklch(0.841 0.007 17.292);
--accent-foreground: oklch(0.315 0.009 17.63);
--destructive: oklch(0.582 0.161 44.343);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.838 0.024 11.882);
--chart-1: oklch(0.838 0.024 11.882);
--chart-2: oklch(0.908 0 180);
--chart-3: oklch(0.841 0.007 17.292);
--chart-4: oklch(0.931 0 180);
--chart-5: oklch(0.836 0.028 11.972);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.012 12.128);
--foreground: oklch(0.992 0.001 11.274);
--muted: oklch(0.218 0.015 12.822);
--muted-foreground: oklch(0.775 0.024 11.926);
--popover: oklch(0.138 0.013 12.523);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.013 12.523);
--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.838 0.024 11.882);
--primary-foreground: oklch(0.313 0.035 13.809);
--secondary: oklch(0.24 0.015 12.596);
--secondary-foreground: oklch(0.776 0.022 11.879);
--accent: oklch(0.313 0.035 13.809);
--accent-foreground: oklch(0.838 0.024 11.882);
--destructive: oklch(0.717 0.154 48.462);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.838 0.024 11.882);
--chart-1: oklch(0.838 0.024 11.882);
--chart-2: oklch(0.24 0.015 12.596);
--chart-3: oklch(0.313 0.035 13.809);
--chart-4: oklch(0.27 0.018 12.683);
--chart-5: oklch(0.836 0.028 11.972);
}