Tape for shadcn/ui

Tape is a shadcn/ui theme built around a violet primary color (#3f2484) with muted light violet accents (#c4bcd7). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the violet primary (#3f2484) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#000000black
Foreground
#000000black
#f9f8fcghostwhite
Card
#f9f8fcghostwhite
#000000black
Card foreground
#000000black
#f9f8fcghostwhite
Popover
#f9f8fcghostwhite
#000000black
Popover foreground
#000000black
#f9f8fcghostwhite
Primary
#3f2484darkslateblue
#3f2484darkslateblue
Primary foreground
#e9e3f7lavender
#e9e3f7lavender
Secondary
#d9d6e1gainsboro
#2b2735darkslategray
Secondary foreground
#3e384cdarkslategray
#c3bed0silver
Muted
#e0dbebgainsboro
#191424black
Muted foreground
#585365dimgray
#9f9aacdarkgray
Accent
#c4bcd7thistle
#3a324ddarkslategray
Accent foreground
#2b243ddarkslategray
#d5d1e1gainsboro
Destructive
#a1250cfirebrick
#ee3e1borangered
Destructive foreground
#fde7e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f2484darkslateblue
#3f2484darkslateblue

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button9.31:1AAA
Secondary button7.81:1AAA
Muted text5.45:1AA
Accent8.09:1AAA
Destructive6.34:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button9.31:1AAA
Secondary button8.06:1AAA
Muted text6.58:1AA
Accent8.02:1AAA
Destructive3.92:1AA Large

CSS variables

Paste this into your globals.css to use Tape in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 299.203);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.9 0.022 298.889);
  --muted-foreground: oklch(0.453 0.03 298.149);
  --popover: oklch(0.981 0.006 299.203);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 299.203);
  --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.359 0.15 289.572);
  --primary-foreground: oklch(0.926 0.028 298.785);
  --secondary: oklch(0.881 0.015 299.014);
  --secondary-foreground: oklch(0.356 0.035 297.6);
  --accent: oklch(0.81 0.038 298.494);
  --accent-foreground: oklch(0.281 0.045 296.452);
  --destructive: oklch(0.466 0.164 32.73);
  --destructive-foreground: oklch(0.944 0.025 31.112);
  --ring: oklch(0.359 0.15 289.572);
  --chart-1: oklch(0.359 0.15 289.572);
  --chart-2: oklch(0.881 0.015 299.014);
  --chart-3: oklch(0.81 0.038 298.494);
  --chart-4: oklch(0.907 0.012 299.085);
  --chart-5: oklch(0.356 0.157 288.799);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.005 299.213);
  --muted: oklch(0.206 0.031 296.578);
  --muted-foreground: oklch(0.697 0.027 298.634);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.005 299.213);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.981 0.005 299.213);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.359 0.15 289.572);
  --primary-foreground: oklch(0.926 0.028 298.785);
  --secondary: oklch(0.282 0.027 297.619);
  --secondary-foreground: oklch(0.811 0.026 298.763);
  --accent: oklch(0.339 0.047 296.825);
  --accent-foreground: oklch(0.868 0.022 298.86);
  --destructive: oklch(0.626 0.216 32.852);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.359 0.15 289.572);
  --chart-1: oklch(0.359 0.15 289.572);
  --chart-2: oklch(0.282 0.027 297.619);
  --chart-3: oklch(0.339 0.047 296.825);
  --chart-4: oklch(0.31 0.031 297.554);
  --chart-5: oklch(0.356 0.157 288.799);
}