Tap for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.59:1AAA
Text on card20.18:1AAA
Primary button6.21:1AA
Secondary button6.86:1AA
Muted text9.38:1AAA
Accent6.86:1AA
Destructive7.28:1AAA
Dark mode
Text on background20.14:1AAA
Text on card20.31:1AAA
Primary button6.21:1AA
Secondary button6.86:1AA
Muted text10.58:1AAA
Accent6.86:1AA
Destructive3.89:1AA Large

CSS variables

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);
}