Dapper is a shadcn/ui theme built around a muted light orange primary color (#e9e6e2) with muted light violet accents (#e6e2e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light orange primary (#e9e6e2) on an orange-tinted background (#0f0a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0a05black |
| Foreground | #0c0803black | #ffffffwhite |
| Card | #fcfcfcsnow | #130d07black |
| Card foreground | #080502black | #ffffffwhite |
| Popover | #fcfcfcsnow | #130d07black |
| Popover foreground | #080502black | #ffffffwhite |
| Primary | #e9e6e2gainsboro | #e9e6e2gainsboro |
| Primary foreground | #574d42darkolivegreen | #574d42darkolivegreen |
| Secondary | #e2e9e6gainsboro | #e2e9e6gainsboro |
| Secondary foreground | #42574ddarkslategray | #42574ddarkslategray |
| Muted | #e4f1eblavender | #0e1b14black |
| Muted foreground | #485b52darkslategray | #a4b7addarkgray |
| Accent | #e6e2e9gainsboro | #e6e2e9gainsboro |
| Accent foreground | #4d4257darkslategray | #4d4257darkslategray |
| Destructive | #682b08saddlebrown | #ee752ftomato |
| Destructive foreground | #f8c7aanavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9e6e2gainsboro | #e9e6e2gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 6.30:1 | AA |
| Muted text | 6.24:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 7.07:1 | AAA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 6.30:1 | AA |
| Muted text | 8.41:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 7.24: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.136 0.015 75.19);
--muted: oklch(0.947 0.016 164.699);
--muted-foreground: oklch(0.453 0.029 163.35);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.119 0.013 75.768);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.119 0.013 75.768);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.925 0.006 67.748);
--primary-foreground: oklch(0.426 0.022 67.164);
--secondary: oklch(0.928 0.009 164.888);
--secondary-foreground: oklch(0.436 0.032 163.071);
--accent: oklch(0.917 0.01 308.336);
--accent-foreground: oklch(0.398 0.038 307.4);
--destructive: oklch(0.37 0.097 45.648);
--destructive-foreground: oklch(0.865 0.068 51.573);
--ring: oklch(0.925 0.006 67.748);
--chart-1: oklch(0.925 0.006 67.748);
--chart-2: oklch(0.928 0.009 164.888);
--chart-3: oklch(0.917 0.01 308.336);
--chart-4: oklch(0.95 0.006 164.97);
--chart-5: oklch(0.926 0.008 67.732);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.15 0.014 71.019);
--foreground: oklch(1 0 180);
--muted: oklch(0.207 0.022 161.925);
--muted-foreground: oklch(0.762 0.026 164.23);
--popover: oklch(0.164 0.017 68.064);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.164 0.017 68.064);
--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.925 0.006 67.748);
--primary-foreground: oklch(0.426 0.022 67.164);
--secondary: oklch(0.928 0.009 164.888);
--secondary-foreground: oklch(0.436 0.032 163.071);
--accent: oklch(0.917 0.01 308.336);
--accent-foreground: oklch(0.398 0.038 307.4);
--destructive: oklch(0.694 0.169 46.957);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.925 0.006 67.748);
--chart-1: oklch(0.925 0.006 67.748);
--chart-2: oklch(0.928 0.009 164.888);
--chart-3: oklch(0.917 0.01 308.336);
--chart-4: oklch(0.95 0.006 164.97);
--chart-5: oklch(0.926 0.008 67.732);
}