Territory for shadcn/ui

Territory is a shadcn/ui theme built around a light green primary color (#d4f3cd) with light purple accents (#eccdf3). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the light green primary (#d4f3cd) on a green-tinted background (#050c03).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#050c03black
Foreground
#020401black
#ffffffwhite
Card
#f4fcf2honeydew
#061004black
Card foreground
#000000black
#ffffffwhite
Popover
#f4fcf2honeydew
#061004black
Popover foreground
#000000black
#ffffffwhite
Primary
#d4f3cdgainsboro
#d4f3cdgainsboro
Primary foreground
#0c2108black
#0c2108black
Secondary
#eccdf3lavender
#eccdf3lavender
Secondary foreground
#631b74indigo
#631b74indigo
Muted
#ebddeelavender
#1f1122black
Muted foreground
#615a63dimgray
#a49ca5darkgray
Accent
#eccdf3lavender
#eccdf3lavender
Accent foreground
#631b74indigo
#631b74indigo
Destructive
#a82a0bfirebrick
#e1390eorangered
Destructive foreground
#fdece7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d4f3cdgainsboro
#d4f3cdgainsboro

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card20.10:1AAA
Primary button14.20:1AAA
Secondary button7.55:1AAA
Muted text5.10:1AA
Accent7.55:1AAA
Destructive6.11:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.35:1AAA
Primary button14.20:1AAA
Secondary button7.55:1AAA
Muted text6.78:1AA
Accent7.55:1AAA
Destructive4.37: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.989 0.01 139.982);
  --foreground: oklch(0.099 0.019 138.111);
  --muted: oklch(0.913 0.028 320.019);
  --muted-foreground: oklch(0.477 0.018 320.025);
  --popover: oklch(0.983 0.016 139.977);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.016 139.977);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.933 0.06 139.937);
  --primary-foreground: oklch(0.223 0.053 139.959);
  --secondary: oklch(0.887 0.061 320.051);
  --secondary-foreground: oklch(0.381 0.152 319.531);
  --accent: oklch(0.887 0.061 320.051);
  --accent-foreground: oklch(0.381 0.152 319.531);
  --destructive: oklch(0.483 0.167 33.939);
  --destructive-foreground: oklch(0.955 0.021 34.297);
  --ring: oklch(0.933 0.06 139.937);
  --chart-1: oklch(0.933 0.06 139.937);
  --chart-2: oklch(0.887 0.061 320.051);
  --chart-3: oklch(0.887 0.061 320.051);
  --chart-4: oklch(0.915 0.045 320.036);
  --chart-5: oklch(0.934 0.063 139.935);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.026 138.273);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.205 0.039 320.097);
  --muted-foreground: oklch(0.702 0.016 320.012);
  --popover: oklch(0.159 0.031 138.643);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.031 138.643);
  --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.933 0.06 139.937);
  --primary-foreground: oklch(0.223 0.053 139.959);
  --secondary: oklch(0.887 0.061 320.051);
  --secondary-foreground: oklch(0.381 0.152 319.531);
  --accent: oklch(0.887 0.061 320.051);
  --accent-foreground: oklch(0.381 0.152 319.531);
  --destructive: oklch(0.599 0.21 33.68);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.933 0.06 139.937);
  --chart-1: oklch(0.933 0.06 139.937);
  --chart-2: oklch(0.887 0.061 320.051);
  --chart-3: oklch(0.887 0.061 320.051);
  --chart-4: oklch(0.915 0.045 320.036);
  --chart-5: oklch(0.934 0.063 139.935);
}