Urban for shadcn/ui

Urban is a shadcn/ui theme built around a vivid light orange primary color (#fcccb1) with vivid light blue accents (#b1e0fc). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid light orange primary (#fcccb1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf9f7snow
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#fbf6f3whitesmoke
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf9f7snow
#000000black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fcccb1peachpuff
#fcccb1peachpuff
Primary foreground
#762e05saddlebrown
#762e05saddlebrown
Secondary
#b1e0fcpaleturquoise
#b1e0fcpaleturquoise
Secondary foreground
#054c76teal
#054c76teal
Muted
#ecedeewhitesmoke
#111213black
Muted foreground
#44484bdarkslategray
#b4b9bbsilver
Accent
#b1e0fcpaleturquoise
#b1e0fcpaleturquoise
Accent foreground
#054c76teal
#054c76teal
Destructive
#780802maroon
#fa291eorangered
Destructive foreground
#fdb3aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcccb1peachpuff
#fcccb1peachpuff

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card19.63:1AAA
Primary button6.66:1AA
Secondary button6.49:1AA
Muted text7.90:1AAA
Accent6.49:1AA
Destructive6.67:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button6.66:1AA
Secondary button6.49:1AA
Muted text9.46:1AAA
Accent6.49:1AA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 52.518);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.947 0.002 232.606);
  --muted-foreground: oklch(0.4 0.007 232.848);
  --popover: oklch(0.985 0.004 52.518);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.977 0.007 52.487);
  --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.88 0.066 51.633);
  --primary-foreground: oklch(0.398 0.111 44.429);
  --secondary: oklch(0.883 0.062 233.791);
  --secondary-foreground: oklch(0.4 0.093 242.547);
  --accent: oklch(0.883 0.062 233.791);
  --accent-foreground: oklch(0.4 0.093 242.547);
  --destructive: oklch(0.364 0.143 29.878);
  --destructive-foreground: oklch(0.836 0.088 22.478);
  --ring: oklch(0.88 0.066 51.633);
  --chart-1: oklch(0.88 0.066 51.633);
  --chart-2: oklch(0.883 0.062 233.791);
  --chart-3: oklch(0.883 0.062 233.791);
  --chart-4: oklch(0.904 0.051 233.493);
  --chart-5: oklch(0.881 0.068 51.602);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 52.567);
  --muted: oklch(0.182 0.003 232.794);
  --muted-foreground: oklch(0.782 0.006 232.693);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 52.567);
  --card: oklch(0.092 0 180);
  --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.88 0.066 51.633);
  --primary-foreground: oklch(0.398 0.111 44.429);
  --secondary: oklch(0.883 0.062 233.791);
  --secondary-foreground: oklch(0.4 0.093 242.547);
  --accent: oklch(0.883 0.062 233.791);
  --accent-foreground: oklch(0.4 0.093 242.547);
  --destructive: oklch(0.633 0.241 29.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.88 0.066 51.633);
  --chart-1: oklch(0.88 0.066 51.633);
  --chart-2: oklch(0.883 0.062 233.791);
  --chart-3: oklch(0.883 0.062 233.791);
  --chart-4: oklch(0.904 0.051 233.493);
  --chart-5: oklch(0.881 0.068 51.602);
}