Tunnel for shadcn/ui

Tunnel is a shadcn/ui theme built around a light indigo primary color (#d0cdf4) with light violet accents (#e4cdf4). The light mode uses a neutral background (#f7f6fd). Dark mode keeps the light indigo primary (#d0cdf4) on an indigo-tinted background (#06060f).

Color palette

TokenLightDark
Background
#f7f6fdghostwhite
#06060fblack
Foreground
#050416black
#ffffffwhite
Card
#f3f2fdaliceblue
#080712black
Card foreground
#040311black
#ffffffwhite
Popover
#f3f2fdaliceblue
#080712black
Popover foreground
#040311black
#ffffffwhite
Primary
#d0cdf4gainsboro
#d0cdf4gainsboro
Primary foreground
#221a74midnightblue
#221a74midnightblue
Secondary
#cdddf4lavender
#cdddf4lavender
Secondary foreground
#1a4074midnightblue
#1a4074midnightblue
Muted
#d4dce8gainsboro
#171f2bblack
Muted foreground
#454d59darkslategray
#a6aebadarkgray
Accent
#e4cdf4lavender
#e4cdf4lavender
Accent foreground
#4f1a74indigo
#4f1a74indigo
Destructive
#b52408firebrick
#e12d09orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0cdf4gainsboro
#d0cdf4gainsboro

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.45:1AAA
Primary button9.35:1AAA
Secondary button7.52:1AAA
Muted text6.18:1AA
Accent8.27:1AAA
Destructive6.50:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.00:1AAA
Primary button9.35:1AAA
Secondary button7.52:1AAA
Muted text7.37:1AAA
Accent8.27:1AAA
Destructive4.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 290.069);
  --foreground: oklch(0.124 0.042 283.912);
  --muted: oklch(0.892 0.019 256.727);
  --muted-foreground: oklch(0.418 0.023 256.796);
  --popover: oklch(0.965 0.014 289.975);
  --popover-foreground: oklch(0.114 0.037 284.82);
  --card: oklch(0.965 0.014 289.975);
  --card-foreground: oklch(0.114 0.037 284.82);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.864 0.053 289.055);
  --primary-foreground: oklch(0.301 0.146 276.834);
  --secondary: oklch(0.893 0.035 256.771);
  --secondary-foreground: oklch(0.374 0.1 257.448);
  --accent: oklch(0.879 0.057 311.199);
  --accent-foreground: oklch(0.351 0.146 306.833);
  --destructive: oklch(0.503 0.184 32.344);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.053 289.055);
  --chart-1: oklch(0.864 0.053 289.055);
  --chart-2: oklch(0.893 0.035 256.771);
  --chart-3: oklch(0.879 0.057 311.199);
  --chart-4: oklch(0.92 0.026 256.746);
  --chart-5: oklch(0.862 0.056 288.992);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.022 287.596);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.239 0.026 256.851);
  --muted-foreground: oklch(0.749 0.02 256.741);
  --popover: oklch(0.137 0.026 286.928);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.026 286.928);
  --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.864 0.053 289.055);
  --primary-foreground: oklch(0.301 0.146 276.834);
  --secondary: oklch(0.893 0.035 256.771);
  --secondary-foreground: oklch(0.374 0.1 257.448);
  --accent: oklch(0.879 0.057 311.199);
  --accent-foreground: oklch(0.351 0.146 306.833);
  --destructive: oklch(0.59 0.218 32.164);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.053 289.055);
  --chart-1: oklch(0.864 0.053 289.055);
  --chart-2: oklch(0.893 0.035 256.771);
  --chart-3: oklch(0.879 0.057 311.199);
  --chart-4: oklch(0.92 0.026 256.746);
  --chart-5: oklch(0.862 0.056 288.992);
}