Canal for shadcn/ui

Canal is a shadcn/ui theme built around a muted teal primary color (#99bdb1) with neutral gray accents (#e2e4e3). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted teal primary (#99bdb1) on a teal-tinted background (#050b09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#050b09black
Foreground
#04100cblack
#f8fcfbmintcream
Card
#fbfefdwhite
#050b09black
Card foreground
#04100cblack
#f8fcfbmintcream
Popover
#fbfefdwhite
#050b09black
Popover foreground
#04100cblack
#f8fcfbmintcream
Primary
#99bdb1darkgray
#99bdb1darkgray
Primary foreground
#0e1613black
#0e1613black
Secondary
#e2e4e3gainsboro
#18201dblack
Secondary foreground
#464e4bdarkslategray
#abbfb9silver
Muted
#d5ebe4gainsboro
#142a23black
Muted foreground
#3b4e48darkslategray
#b1c4besilver
Accent
#e2e4e3gainsboro
#18201dblack
Accent foreground
#464e4bdarkslategray
#abbfb9silver
Destructive
#6b1805maroon
#db310aorangered
Destructive foreground
#fbb7a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#99bdb1darkgray
#99bdb1darkgray

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button8.95:1AAA
Secondary button6.71:1AA
Muted text7.13:1AAA
Accent6.71:1AA
Destructive7.07:1AAA
Dark mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button8.95:1AAA
Secondary button8.62:1AAA
Muted text8.34:1AAA
Accent8.62:1AAA
Destructive4.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 175.543);
  --foreground: oklch(0.16 0.021 173.024);
  --muted: oklch(0.923 0.025 174.802);
  --muted-foreground: oklch(0.407 0.026 173.585);
  --popover: oklch(0.994 0.002 175.543);
  --popover-foreground: oklch(0.16 0.021 173.024);
  --card: oklch(0.994 0.002 175.543);
  --card-foreground: oklch(0.16 0.021 173.024);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.768 0.041 173.943);
  --primary-foreground: oklch(0.19 0.012 173.563);
  --secondary: oklch(0.918 0.003 175.512);
  --secondary-foreground: oklch(0.415 0.01 174.875);
  --accent: oklch(0.918 0.003 175.512);
  --accent-foreground: oklch(0.415 0.01 174.875);
  --destructive: oklch(0.35 0.12 33.733);
  --destructive-foreground: oklch(0.838 0.083 33.024);
  --ring: oklch(0.768 0.041 173.943);
  --chart-1: oklch(0.768 0.041 173.943);
  --chart-2: oklch(0.918 0.003 175.512);
  --chart-3: oklch(0.918 0.003 175.512);
  --chart-4: oklch(0.94 0.002 175.543);
  --chart-5: oklch(0.772 0.047 173.707);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.013 175.681);
  --foreground: oklch(0.987 0.004 175.492);
  --muted: oklch(0.263 0.031 171.354);
  --muted-foreground: oklch(0.803 0.023 174.768);
  --popover: oklch(0.14 0.013 175.681);
  --popover-foreground: oklch(0.987 0.004 175.492);
  --card: oklch(0.14 0.013 175.681);
  --card-foreground: oklch(0.987 0.004 175.492);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.768 0.041 173.943);
  --primary-foreground: oklch(0.19 0.012 173.563);
  --secondary: oklch(0.234 0.012 174.097);
  --secondary-foreground: oklch(0.787 0.023 174.748);
  --accent: oklch(0.234 0.012 174.097);
  --accent-foreground: oklch(0.787 0.023 174.748);
  --destructive: oklch(0.581 0.21 32.823);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.768 0.041 173.943);
  --chart-1: oklch(0.768 0.041 173.943);
  --chart-2: oklch(0.234 0.012 174.097);
  --chart-3: oklch(0.234 0.012 174.097);
  --chart-4: oklch(0.268 0.014 173.982);
  --chart-5: oklch(0.772 0.047 173.707);
}