Black Tie Tick for shadcn/ui

Black Tie Tick is a shadcn/ui theme built around a neutral gray primary color (#434446) with neutral gray accents (#444346). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the neutral gray primary (#434446) on a neutral background (#030308).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#030308black
Foreground
#05070fblack
#f6f6f9whitesmoke
Card
#f8f8fcghostwhite
#030308black
Card foreground
#05070fblack
#f6f6f9whitesmoke
Popover
#f8f8fcghostwhite
#030308black
Popover foreground
#05070fblack
#f6f6f9whitesmoke
Primary
#434446darkslategray
#434446darkslategray
Primary foreground
#dddddfgainsboro
#dddddfgainsboro
Secondary
#434546darkslategray
#434546darkslategray
Secondary foreground
#dddedfgainsboro
#dddedfgainsboro
Muted
#eef0f2whitesmoke
#0d1011black
Muted foreground
#555b5edimgray
#a1a7aadarkgray
Accent
#444346darkslategray
#444346darkslategray
Accent foreground
#dedddfgainsboro
#dedddfgainsboro
Destructive
#9c0a07darkred
#e50e0bred
Destructive foreground
#fdd9d8mistyrose
#ffffffwhite
Border
#e2e2e4gainsboro
#18191bblack
Input
#e2e2e4gainsboro
#18191bblack
Ring
#434446darkslategray
#434446darkslategray

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button7.18:1AAA
Secondary button7.12:1AAA
Muted text6.04:1AA
Accent7.20:1AAA
Destructive6.55:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button7.18:1AAA
Secondary button7.12:1AAA
Muted text7.84:1AAA
Accent7.20:1AAA
Destructive4.77:1AA

CSS variables

Paste this into your globals.css to use Black Tie Tick in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 278.242);
  --foreground: oklch(0.129 0.021 273.13);
  --muted: oklch(0.954 0.004 230.711);
  --muted-foreground: oklch(0.466 0.009 230.931);
  --popover: oklch(0.981 0.005 278.242);
  --popover-foreground: oklch(0.129 0.021 273.13);
  --card: oklch(0.981 0.005 278.242);
  --card-foreground: oklch(0.129 0.021 273.13);
  --border: oklch(0.914 0.003 278.277);
  --input: oklch(0.914 0.003 278.277);
  --primary: oklch(0.387 0.004 278.169);
  --primary-foreground: oklch(0.899 0.002 278.293);
  --secondary: oklch(0.39 0.003 230.761);
  --secondary-foreground: oklch(0.9 0.001 230.677);
  --accent: oklch(0.387 0.005 302.02);
  --accent-foreground: oklch(0.899 0.002 302.181);
  --destructive: oklch(0.439 0.174 28.932);
  --destructive-foreground: oklch(0.915 0.041 19.078);
  --ring: oklch(0.387 0.004 278.169);
  --chart-1: oklch(0.387 0.004 278.169);
  --chart-2: oklch(0.39 0.003 230.761);
  --chart-3: oklch(0.387 0.005 302.02);
  --chart-4: oklch(0.419 0.003 230.763);
  --chart-5: oklch(0.382 0.01 277.927);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.015 273.067);
  --foreground: oklch(0.974 0.004 278.258);
  --muted: oklch(0.17 0.005 231.134);
  --muted-foreground: oklch(0.725 0.008 230.812);
  --popover: oklch(0.103 0.015 273.067);
  --popover-foreground: oklch(0.974 0.004 278.258);
  --card: oklch(0.103 0.015 273.067);
  --card-foreground: oklch(0.974 0.004 278.258);
  --border: oklch(0.213 0.003 278.082);
  --input: oklch(0.213 0.003 278.082);
  --primary: oklch(0.387 0.004 278.169);
  --primary-foreground: oklch(0.899 0.002 278.293);
  --secondary: oklch(0.39 0.003 230.761);
  --secondary-foreground: oklch(0.9 0.001 230.677);
  --accent: oklch(0.387 0.005 302.02);
  --accent-foreground: oklch(0.899 0.002 302.181);
  --destructive: oklch(0.582 0.234 29.061);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.387 0.004 278.169);
  --chart-1: oklch(0.387 0.004 278.169);
  --chart-2: oklch(0.39 0.003 230.761);
  --chart-3: oklch(0.387 0.005 302.02);
  --chart-4: oklch(0.419 0.003 230.763);
  --chart-5: oklch(0.382 0.01 277.927);
}