Smuggling for shadcn/ui

Smuggling is a shadcn/ui theme built around a near-black primary color (#070404) with near-black accents (#040407). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#070404) on a red-tinted background (#100404).

Color palette

TokenLightDark
Background
#ffffffwhite
#100404black
Foreground
#0d0202black
#ffffffwhite
Card
#fcfcfcsnow
#140505black
Card foreground
#090101black
#ffffffwhite
Popover
#fcfcfcsnow
#140505black
Popover foreground
#090101black
#ffffffwhite
Primary
#070404black
#070404black
Primary foreground
#ba8282rosybrown
#ba8282rosybrown
Secondary
#040704black
#040704black
Secondary foreground
#82ba82darkseagreen
#82ba82darkseagreen
Muted
#ebf5ebhoneydew
#0a140ablack
Muted foreground
#485648darkslategray
#a9b7a9darkgray
Accent
#040407black
#040407black
Accent foreground
#c4c4delightsteelblue
#c4c4delightsteelblue
Destructive
#b63b07firebrick
#e24a08orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#070404black
#070404black

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card20.21:1AAA
Primary button6.43:1AA
Secondary button8.98:1AAA
Muted text6.94:1AA
Accent12.01:1AAA
Destructive5.79:1AA
Dark mode
Text on background20.15:1AAA
Text on card19.90:1AAA
Primary button6.43:1AA
Secondary button8.98:1AAA
Muted text8.95:1AAA
Accent12.01:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.114 0.029 22.711);
  --muted: oklch(0.959 0.017 145.441);
  --muted-foreground: oklch(0.437 0.029 145.056);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.099 0.025 22.633);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.025 22.633);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.11 0.009 18.545);
  --primary-foreground: oklch(0.663 0.07 19.089);
  --secondary: oklch(0.119 0.012 144.74);
  --secondary-foreground: oklch(0.736 0.099 144.486);
  --accent: oklch(0.106 0.01 284.486);
  --accent-foreground: oklch(0.828 0.037 285.563);
  --destructive: oklch(0.526 0.167 38.418);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.11 0.009 18.545);
  --chart-1: oklch(0.11 0.009 18.545);
  --chart-2: oklch(0.119 0.012 144.74);
  --chart-3: oklch(0.106 0.01 284.486);
  --chart-4: oklch(0.165 0.019 144.643);
  --chart-5: oklch(0.109 0.01 18.726);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.026 21.239);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.025 144.43);
  --muted-foreground: oklch(0.764 0.025 145.321);
  --popover: oklch(0.144 0.03 21.515);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.03 21.515);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.11 0.009 18.545);
  --primary-foreground: oklch(0.663 0.07 19.089);
  --secondary: oklch(0.119 0.012 144.74);
  --secondary-foreground: oklch(0.736 0.099 144.486);
  --accent: oklch(0.106 0.01 284.486);
  --accent-foreground: oklch(0.828 0.037 285.563);
  --destructive: oklch(0.617 0.199 38.012);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.11 0.009 18.545);
  --chart-1: oklch(0.11 0.009 18.545);
  --chart-2: oklch(0.119 0.012 144.74);
  --chart-3: oklch(0.106 0.01 284.486);
  --chart-4: oklch(0.165 0.019 144.643);
  --chart-5: oklch(0.109 0.01 18.726);
}