Urban is a shadcn/ui theme built around a blue primary color (#678dcb) with indigo accents (#7367cb). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the blue primary (#678dcb) on a blue-tinted background (#05070b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #05070bblack |
| Foreground | #010409black | #fcfcfdwhite |
| Card | #f4f7fawhitesmoke | #06090eblack |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #f4f7fawhitesmoke | #06090eblack |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #678dcbcornflowerblue | #678dcbcornflowerblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #67bfcbmediumaquamarine | #67bfcbmediumaquamarine |
| Secondary foreground | #000000black | #000000black |
| Muted | #dfe6e7gainsboro | #181f20black |
| Muted foreground | #4f5859darkslategray | #a6afb0darkgray |
| Accent | #7367cbslateblue | #7367cbslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d34203orangered | #fc601dorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #678dcbcornflowerblue | #678dcbcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 9.91:1 | AAA |
| Muted text | 5.78:1 | AA |
| Accent | 4.63:1 | AA |
| Destructive | 4.62:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 9.91:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 4.63:1 | AA |
| Destructive | 6.80:1 | AA |
Paste this into your globals.css to use Urban in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 259.938);
--foreground: oklch(0.106 0.018 248.316);
--muted: oklch(0.92 0.008 206.392);
--muted-foreground: oklch(0.453 0.011 206.313);
--popover: oklch(0.974 0.006 259.94);
--popover-foreground: oklch(0.084 0.015 248.316);
--card: oklch(0.974 0.006 259.94);
--card-foreground: oklch(0.084 0.015 248.316);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.642 0.103 259.616);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.755 0.086 206.667);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.573 0.149 285.996);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.582 0.191 37.624);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.642 0.103 259.616);
--chart-1: oklch(0.642 0.103 259.616);
--chart-2: oklch(0.755 0.086 206.667);
--chart-3: oklch(0.573 0.149 285.996);
--chart-4: oklch(0.772 0.081 206.53);
--chart-5: oklch(0.64 0.109 259.589);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.011 254.522);
--foreground: oklch(0.992 0.001 259.934);
--muted: oklch(0.233 0.01 206.262);
--muted-foreground: oklch(0.746 0.01 206.364);
--popover: oklch(0.14 0.012 256.514);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.012 256.514);
--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.642 0.103 259.616);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.755 0.086 206.667);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.573 0.149 285.996);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.684 0.203 39.875);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.642 0.103 259.616);
--chart-1: oklch(0.642 0.103 259.616);
--chart-2: oklch(0.755 0.086 206.667);
--chart-3: oklch(0.573 0.149 285.996);
--chart-4: oklch(0.772 0.081 206.53);
--chart-5: oklch(0.64 0.109 259.589);
}