Territorial Edward for shadcn/ui

Territorial Edward is a shadcn/ui theme built around a muted teal primary color (#5d8183) with muted blue accents (#5d6e83). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#5d8183) on a teal-tinted background (#070d0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070d0dblack
Foreground
#041415black
#f9fbfbghostwhite
Card
#ffffffwhite
#070d0dblack
Card foreground
#041415black
#f9fbfbghostwhite
Popover
#ffffffwhite
#070d0dblack
Popover foreground
#041415black
#f9fbfbghostwhite
Primary
#5d8183slategray
#5d8183slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5d8373dimgray
#5d8373dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eaf0eewhitesmoke
#0f1512black
Muted foreground
#4f5f58dimgray
#a0b0a9darkgray
Accent
#5d6e83dimgray
#5d6e83dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#750401maroon
#fe0a01red
Destructive foreground
#ffaca9lightpink
#ffffffwhite
Border
#e2e9e9lavender
#181f20black
Input
#e2e9e9lavender
#181f20black
Ring
#5d8183slategray
#5d8183slategray

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button4.26:1AA Large
Secondary button4.22:1AA Large
Muted text5.86:1AA
Accent5.23:1AA
Destructive6.61:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button4.26:1AA Large
Secondary button4.22:1AA Large
Muted text8.16:1AAA
Accent5.23:1AA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.178 0.023 201.13);
  --muted: oklch(0.951 0.008 168.504);
  --muted-foreground: oklch(0.468 0.022 167.345);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.178 0.023 201.13);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.178 0.023 201.13);
  --border: oklch(0.928 0.007 202.132);
  --input: oklch(0.928 0.007 202.132);
  --primary: oklch(0.576 0.04 201.637);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.05 166.027);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.532 0.04 255.241);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.355 0.142 29.82);
  --destructive-foreground: oklch(0.823 0.098 21.592);
  --ring: oklch(0.576 0.04 201.637);
  --chart-1: oklch(0.576 0.04 201.637);
  --chart-2: oklch(0.577 0.05 166.027);
  --chart-3: oklch(0.532 0.04 255.241);
  --chart-4: oklch(0.605 0.053 166.008);
  --chart-5: oklch(0.583 0.046 201.595);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.01 201.417);
  --foreground: oklch(0.986 0.002 202.189);
  --muted: oklch(0.188 0.011 166.927);
  --muted-foreground: oklch(0.743 0.02 167.966);
  --popover: oklch(0.152 0.01 201.417);
  --popover-foreground: oklch(0.986 0.002 202.189);
  --card: oklch(0.152 0.01 201.417);
  --card-foreground: oklch(0.986 0.002 202.189);
  --border: oklch(0.234 0.011 201.788);
  --input: oklch(0.234 0.011 201.788);
  --primary: oklch(0.576 0.04 201.637);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.05 166.027);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.532 0.04 255.241);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.627 0.255 29.461);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.576 0.04 201.637);
  --chart-1: oklch(0.576 0.04 201.637);
  --chart-2: oklch(0.577 0.05 166.027);
  --chart-3: oklch(0.532 0.04 255.241);
  --chart-4: oklch(0.605 0.053 166.008);
  --chart-5: oklch(0.583 0.046 201.595);
}