Urgency is a shadcn/ui theme built around a vivid deep yellow primary color (#8e6101) with vivid deep blue accents (#012d8e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#8e6101) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #120d03black | #ffffffwhite |
| Card | #fcfcfcsnow | #070603black |
| Card foreground | #0d0a02black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070603black |
| Popover foreground | #0d0a02black | #ffffffwhite |
| Primary | #8e6101saddlebrown | #8e6101saddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #012d8emidnightblue | #012d8emidnightblue |
| Secondary foreground | #c2d5ffpowderblue | #c2d5ffpowderblue |
| Muted | #eff1f5whitesmoke | #0a0c10black |
| Muted foreground | #494d55darkslategray | #aaaeb6darkgray |
| Accent | #012d8emidnightblue | #012d8emidnightblue |
| Accent foreground | #c2d5ffpowderblue | #c2d5ffpowderblue |
| Destructive | #d00101red | #fe2a2acrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8e6101saddlebrown | #8e6101saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 5.42:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 5.69:1 | AA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 5.42:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.81:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Urgency in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.161 0.024 89.336);
--muted: oklch(0.958 0.006 265.98);
--muted-foreground: oklch(0.419 0.015 265.803);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.144 0.021 92.044);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.144 0.021 92.044);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.528 0.11 77.282);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.349 0.165 262.449);
--secondary-foreground: oklch(0.873 0.061 265.548);
--accent: oklch(0.349 0.165 262.449);
--accent-foreground: oklch(0.873 0.061 265.548);
--destructive: oklch(0.539 0.221 29.193);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.528 0.11 77.282);
--chart-1: oklch(0.528 0.11 77.282);
--chart-2: oklch(0.349 0.165 262.449);
--chart-3: oklch(0.349 0.165 262.449);
--chart-4: oklch(0.374 0.179 262.567);
--chart-5: oklch(0.532 0.112 76.838);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.008 90.467);
--foreground: oklch(1 0 180);
--muted: oklch(0.153 0.009 265.643);
--muted-foreground: oklch(0.749 0.013 265.92);
--popover: oklch(0.122 0.011 90.467);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.011 90.467);
--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.528 0.11 77.282);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.349 0.165 262.449);
--secondary-foreground: oklch(0.873 0.061 265.548);
--accent: oklch(0.349 0.165 262.449);
--accent-foreground: oklch(0.873 0.061 265.548);
--destructive: oklch(0.641 0.242 27.561);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.528 0.11 77.282);
--chart-1: oklch(0.528 0.11 77.282);
--chart-2: oklch(0.349 0.165 262.449);
--chart-3: oklch(0.349 0.165 262.449);
--chart-4: oklch(0.374 0.179 262.567);
--chart-5: oklch(0.532 0.112 76.838);
}