Tap is a shadcn/ui theme built around a vivid orange primary color (#c87a04) with vivid blue accents (#0452c8). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid orange primary (#c87a04) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #000000black |
| Foreground | #000000black | #fbfaf9snow |
| Card | #fcfaf8snow | #030303black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcfaf8snow | #030303black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #c87a04darkgoldenrod | #c87a04darkgoldenrod |
| Primary foreground | #000000black | #000000black |
| Secondary | #0452c8royalblue | #0452c8royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0f2f4whitesmoke | #0b0c0fblack |
| Muted foreground | #3e3f42darkslategray | #bdbfc1silver |
| Accent | #0452c8royalblue | #0452c8royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #913e0dsaddlebrown | #d75b14chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c87a04darkgoldenrod | #c87a04darkgoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 6.86:1 | AA |
| Muted text | 9.38:1 | AAA |
| Accent | 6.86:1 | AA |
| Destructive | 7.28:1 | AAA |
| Text on background | 20.14:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 6.86:1 | AA |
| Muted text | 10.58:1 | AAA |
| Accent | 6.86:1 | AA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Tap in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 78.308);
--foreground: oklch(0 0 0);
--muted: oklch(0.96 0.003 258.321);
--muted-foreground: oklch(0.368 0.004 258.341);
--popover: oklch(0.986 0.003 78.303);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.003 78.303);
--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.648 0.143 66.048);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.478 0.195 260.358);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.478 0.195 260.358);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.467 0.125 45.126);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.648 0.143 66.048);
--chart-1: oklch(0.648 0.143 66.048);
--chart-2: oklch(0.478 0.195 260.358);
--chart-3: oklch(0.478 0.195 260.358);
--chart-4: oklch(0.503 0.207 260.436);
--chart-5: oklch(0.653 0.146 65.415);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.001 78.309);
--muted: oklch(0.156 0.005 258.368);
--muted-foreground: oklch(0.804 0.004 258.324);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.001 78.311);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.001 78.311);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.648 0.143 66.048);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.478 0.195 260.358);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.478 0.195 260.358);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.621 0.172 44.372);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.648 0.143 66.048);
--chart-1: oklch(0.648 0.143 66.048);
--chart-2: oklch(0.478 0.195 260.358);
--chart-3: oklch(0.478 0.195 260.358);
--chart-4: oklch(0.503 0.207 260.436);
--chart-5: oklch(0.653 0.146 65.415);
}