Urban is a shadcn/ui theme built around a deep cyan primary color (#172d36) with deep orange accents (#361f17). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#172d36) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #f6f8f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #f9fafbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #f6f8f9whitesmoke |
| Primary | #172d36darkslategray | #172d36darkslategray |
| Primary foreground | #a5cbd9lightsteelblue | #a5cbd9lightsteelblue |
| Secondary | #361f17black | #361f17black |
| Secondary foreground | #d9b4a5tan | #d9b4a5tan |
| Muted | #ece6e4linen | #1b1513black |
| Muted foreground | #565352dimgray | #adaaa9darkgray |
| Accent | #361f17black | #361f17black |
| Accent foreground | #d9b4a5tan | #d9b4a5tan |
| Destructive | #5c160amaroon | #e83f21orangered |
| Destructive foreground | #f5afa3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #172d36darkslategray | #172d36darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 7.31:1 | AAA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.06:1 | AA Large |
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 0 0);
--muted: oklch(0.93 0.008 43.056);
--muted-foreground: oklch(0.446 0.004 43.058);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.283 0.033 225.527);
--primary-foreground: oklch(0.818 0.045 223.868);
--secondary: oklch(0.268 0.039 42.288);
--secondary-foreground: oklch(0.799 0.048 42.704);
--accent: oklch(0.268 0.039 42.288);
--accent-foreground: oklch(0.799 0.048 42.704);
--destructive: oklch(0.319 0.104 32.378);
--destructive-foreground: oklch(0.817 0.085 30.194);
--ring: oklch(0.283 0.033 225.527);
--chart-1: oklch(0.283 0.033 225.527);
--chart-2: oklch(0.268 0.039 42.288);
--chart-3: oklch(0.268 0.039 42.288);
--chart-4: oklch(0.299 0.045 42.246);
--chart-5: oklch(0.284 0.035 225.795);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.002 223.152);
--muted: oklch(0.203 0.011 42.728);
--muted-foreground: oklch(0.74 0.003 43.092);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.002 223.152);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.001 223.144);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.283 0.033 225.527);
--primary-foreground: oklch(0.818 0.045 223.868);
--secondary: oklch(0.268 0.039 42.288);
--secondary-foreground: oklch(0.799 0.048 42.704);
--accent: oklch(0.268 0.039 42.288);
--accent-foreground: oklch(0.799 0.048 42.704);
--destructive: oklch(0.617 0.209 32.322);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.283 0.033 225.527);
--chart-1: oklch(0.283 0.033 225.527);
--chart-2: oklch(0.268 0.039 42.288);
--chart-3: oklch(0.268 0.039 42.288);
--chart-4: oklch(0.299 0.045 42.246);
--chart-5: oklch(0.284 0.035 225.795);
}