Urban for shadcn/ui

Urban is a shadcn/ui theme built around a deep teal primary color (#0e4e40) with muted teal accents (#b3c7c2). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0e4e40) on a teal-tinted background (#040b0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b0ablack
Foreground
#030d0bblack
#fcfdfdwhite
Card
#fcfcfcsnow
#050f0dblack
Card foreground
#020907black
#ffffffwhite
Popover
#fcfcfcsnow
#050f0dblack
Popover foreground
#020907black
#ffffffwhite
Primary
#0e4e40darkslategray
#0e4e40darkslategray
Primary foreground
#a0eeddpaleturquoise
#a0eeddpaleturquoise
Secondary
#cad3d1lightgrey
#202726darkslategray
Secondary foreground
#313a38darkslategray
#b6c3c0silver
Muted
#dce0dfgainsboro
#1f2322black
Muted foreground
#494b4adarkslategray
#b4b6b5silver
Accent
#b3c7c2silver
#334743darkslategray
Accent foreground
#1e2927darkslategray
#d0dddagainsboro
Destructive
#5e1208maroon
#dd2b13firebrick
Destructive foreground
#f7aba1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e4e40darkslategray
#0e4e40darkslategray

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.66:1AAA
Primary button7.22:1AAA
Secondary button7.66:1AAA
Muted text6.60:1AA
Accent8.43:1AAA
Destructive7.21:1AAA
Dark mode
Text on background19.45:1AAA
Text on card19.39:1AAA
Primary button7.22:1AAA
Secondary button8.35:1AAA
Muted text7.75:1AAA
Accent7.07:1AAA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.019 180.987);
  --muted: oklch(0.903 0.005 181.907);
  --muted-foreground: oklch(0.41 0.002 181.93);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.126 0.017 181.976);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.017 181.976);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.381 0.066 174.246);
  --primary-foreground: oklch(0.894 0.081 179.22);
  --secondary: oklch(0.859 0.01 181.747);
  --secondary-foreground: oklch(0.34 0.013 180.933);
  --accent: oklch(0.812 0.022 181.282);
  --accent-foreground: oklch(0.27 0.015 180.373);
  --destructive: oklch(0.317 0.11 31.057);
  --destructive-foreground: oklch(0.812 0.091 27.583);
  --ring: oklch(0.381 0.066 174.246);
  --chart-1: oklch(0.381 0.066 174.246);
  --chart-2: oklch(0.859 0.01 181.747);
  --chart-3: oklch(0.812 0.022 181.282);
  --chart-4: oklch(0.882 0.008 181.806);
  --chart-5: oklch(0.385 0.068 173.936);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.015 181.615);
  --foreground: oklch(0.993 0.002 182.022);
  --muted: oklch(0.253 0.007 181.279);
  --muted-foreground: oklch(0.774 0.002 182.005);
  --popover: oklch(0.158 0.017 179.868);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.017 179.868);
  --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.381 0.066 174.246);
  --primary-foreground: oklch(0.894 0.081 179.22);
  --secondary: oklch(0.266 0.011 180.926);
  --secondary-foreground: oklch(0.807 0.015 181.54);
  --accent: oklch(0.38 0.026 180.031);
  --accent-foreground: oklch(0.886 0.015 181.606);
  --destructive: oklch(0.58 0.215 30.984);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.381 0.066 174.246);
  --chart-1: oklch(0.381 0.066 174.246);
  --chart-2: oklch(0.266 0.011 180.926);
  --chart-3: oklch(0.38 0.026 180.031);
  --chart-4: oklch(0.299 0.012 180.867);
  --chart-5: oklch(0.385 0.068 173.936);
}