Dapper is a shadcn/ui theme built around a blue primary color (#1e4294) with muted light blue accents (#d2d6e0). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the blue primary (#1e4294) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #010204black |
| Foreground | #010409black | #f8f9fcghostwhite |
| Card | #f8f9fcghostwhite | #030407black |
| Card foreground | #010204black | #fcfcfdwhite |
| Popover | #f8f9fcghostwhite | #030407black |
| Popover foreground | #010204black | #fcfcfdwhite |
| Primary | #1e4294darkslateblue | #1e4294darkslateblue |
| Primary foreground | #eaeffblavender | #eaeffblavender |
| Secondary | #d2d6e0gainsboro | #2e2f33darkslategray |
| Secondary foreground | #343b4bdarkslategray | #c7c8ccsilver |
| Muted | #dce2eflavender | #101623black |
| Muted foreground | #525866dimgray | #999faddarkgray |
| Accent | #d2d6e0gainsboro | #2e2f33darkslategray |
| Accent foreground | #343b4bdarkslategray | #c7c8ccsilver |
| Destructive | #6b1b0bmaroon | #ec5d41tomato |
| Destructive foreground | #f7bcb0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1e4294darkslateblue | #1e4294darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 5.48:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 7.17:1 | AAA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.22:1 | AA |
Paste this into your globals.css to use Dapper in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 267.41);
--foreground: oklch(0.102 0.02 255.868);
--muted: oklch(0.912 0.018 267.292);
--muted-foreground: oklch(0.459 0.024 267.032);
--popover: oklch(0.983 0.004 267.399);
--popover-foreground: oklch(0.081 0.016 255.868);
--card: oklch(0.983 0.004 267.399);
--card-foreground: oklch(0.081 0.016 255.868);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.404 0.142 263.723);
--primary-foreground: oklch(0.951 0.017 267.311);
--secondary: oklch(0.876 0.014 267.322);
--secondary-foreground: oklch(0.353 0.03 266.737);
--accent: oklch(0.876 0.014 267.322);
--accent-foreground: oklch(0.353 0.03 266.737);
--destructive: oklch(0.352 0.116 33.083);
--destructive-foreground: oklch(0.846 0.071 31.447);
--ring: oklch(0.404 0.142 263.723);
--chart-1: oklch(0.404 0.142 263.723);
--chart-2: oklch(0.876 0.014 267.322);
--chart-3: oklch(0.876 0.014 267.322);
--chart-4: oklch(0.901 0.011 267.346);
--chart-5: oklch(0.403 0.148 263.593);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 261.889);
--foreground: oklch(0.982 0.004 267.399);
--muted: oklch(0.201 0.027 266.165);
--muted-foreground: oklch(0.703 0.022 267.214);
--popover: oklch(0.108 0.011 261.889);
--popover-foreground: oklch(0.991 0.002 267.409);
--card: oklch(0.108 0.011 261.889);
--card-foreground: oklch(0.991 0.002 267.409);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.404 0.142 263.723);
--primary-foreground: oklch(0.951 0.017 267.311);
--secondary: oklch(0.307 0.006 267.288);
--secondary-foreground: oklch(0.834 0.005 267.382);
--accent: oklch(0.307 0.006 267.288);
--accent-foreground: oklch(0.834 0.005 267.382);
--destructive: oklch(0.66 0.183 33.155);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.404 0.142 263.723);
--chart-1: oklch(0.404 0.142 263.723);
--chart-2: oklch(0.307 0.006 267.288);
--chart-3: oklch(0.307 0.006 267.288);
--chart-4: oklch(0.337 0.007 267.283);
--chart-5: oklch(0.403 0.148 263.593);
}