Territory for shadcn/ui

Territory is a shadcn/ui theme built around a muted light teal primary color (#e3e8e7) with muted light yellow accents (#e8e7e3). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the muted light teal primary (#e3e8e7) on a teal-tinted background (#060e0c).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#060e0cblack
Foreground
#020e0bblack
#ffffffwhite
Card
#f5faf9mintcream
#08120fblack
Card foreground
#010907black
#ffffffwhite
Popover
#f5faf9mintcream
#08120fblack
Popover foreground
#010907black
#ffffffwhite
Primary
#e3e8e7gainsboro
#e3e8e7gainsboro
Primary foreground
#445551darkslategray
#445551darkslategray
Secondary
#e7e3e8gainsboro
#e7e3e8gainsboro
Secondary foreground
#514455darkslategray
#514455darkslategray
Muted
#e0dae2gainsboro
#231d25black
Muted foreground
#544559darkslategray
#b5a6badarkgray
Accent
#e8e7e3gainsboro
#e8e7e3gainsboro
Accent foreground
#555144darkolivegreen
#555144darkolivegreen
Destructive
#682a08saddlebrown
#e45b11chocolate
Destructive foreground
#f9c5aanavajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3e8e7gainsboro
#e3e8e7gainsboro

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card19.09:1AAA
Primary button6.37:1AA
Secondary button7.15:1AAA
Muted text6.43:1AA
Accent6.41:1AA
Destructive7.07:1AAA
Dark mode
Text on background19.48:1AAA
Text on card19.04:1AAA
Primary button6.37:1AA
Secondary button7.15:1AAA
Muted text7.15:1AAA
Accent6.41:1AA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 179.749);
  --foreground: oklch(0.147 0.022 178.557);
  --muted: oklch(0.895 0.012 317.74);
  --muted-foreground: oklch(0.413 0.039 317.606);
  --popover: oklch(0.981 0.006 179.688);
  --popover-foreground: oklch(0.128 0.019 179.927);
  --card: oklch(0.981 0.006 179.688);
  --card-foreground: oklch(0.128 0.019 179.927);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.927 0.006 179.672);
  --primary-foreground: oklch(0.433 0.022 178.331);
  --secondary: oklch(0.92 0.009 317.747);
  --secondary-foreground: oklch(0.406 0.032 317.633);
  --accent: oklch(0.928 0.006 91.464);
  --accent-foreground: oklch(0.434 0.021 91.742);
  --destructive: oklch(0.368 0.1 44.155);
  --destructive-foreground: oklch(0.863 0.07 49.711);
  --ring: oklch(0.927 0.006 179.672);
  --chart-1: oklch(0.927 0.006 179.672);
  --chart-2: oklch(0.92 0.009 317.747);
  --chart-3: oklch(0.928 0.006 91.464);
  --chart-4: oklch(0.944 0.006 317.753);
  --chart-5: oklch(0.928 0.008 179.619);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.014 178.035);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.242 0.017 317.645);
  --muted-foreground: oklch(0.744 0.034 317.689);
  --popover: oklch(0.17 0.016 177.024);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.17 0.016 177.024);
  --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.927 0.006 179.672);
  --primary-foreground: oklch(0.433 0.022 178.331);
  --secondary: oklch(0.92 0.009 317.747);
  --secondary-foreground: oklch(0.406 0.032 317.633);
  --accent: oklch(0.928 0.006 91.464);
  --accent-foreground: oklch(0.434 0.021 91.742);
  --destructive: oklch(0.64 0.185 42.459);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.927 0.006 179.672);
  --chart-1: oklch(0.927 0.006 179.672);
  --chart-2: oklch(0.92 0.009 317.747);
  --chart-3: oklch(0.928 0.006 91.464);
  --chart-4: oklch(0.944 0.006 317.753);
  --chart-5: oklch(0.928 0.008 179.619);
}