Urge is a shadcn/ui theme built around a violet primary color (#553267) with green accents (#446732). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the violet primary (#553267) on a violet-tinted background (#0c0510).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #0c0510black |
| Foreground | #030104black | #f8f6f8whitesmoke |
| Card | #fbf7fdghostwhite | #0c0510black |
| Card foreground | #030104black | #f8f6f8whitesmoke |
| Popover | #fbf7fdghostwhite | #0c0510black |
| Popover foreground | #030104black | #f8f6f8whitesmoke |
| Primary | #553267darkslateblue | #553267darkslateblue |
| Primary foreground | #e8ddeelavender | #e8ddeelavender |
| Secondary | #446732darkolivegreen | #446732darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4ebe0gainsboro | #181f14black |
| Muted foreground | #5d6e53dimgray | #9aac91darkseagreen |
| Accent | #446732darkolivegreen | #446732darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #84210bmaroon | #ec3b13orangered |
| Destructive foreground | #fad0c6peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #553267darkslateblue | #553267darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 6.46:1 | AA |
| Muted text | 4.51:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 6.46:1 | AA |
| Muted text | 6.98:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Urge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.009 314.167);
--foreground: oklch(0.082 0.02 316.367);
--muted: oklch(0.931 0.016 134.317);
--muted-foreground: oklch(0.517 0.047 134.764);
--popover: oklch(0.98 0.009 314.167);
--popover-foreground: oklch(0.082 0.02 316.367);
--card: oklch(0.98 0.009 314.167);
--card-foreground: oklch(0.082 0.02 316.367);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.383 0.096 312.66);
--primary-foreground: oklch(0.911 0.027 314.057);
--secondary: oklch(0.474 0.09 135.625);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.474 0.09 135.625);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.408 0.138 33.6);
--destructive-foreground: oklch(0.891 0.05 32.785);
--ring: oklch(0.383 0.096 312.66);
--chart-1: oklch(0.383 0.096 312.66);
--chart-2: oklch(0.474 0.09 135.625);
--chart-3: oklch(0.474 0.09 135.625);
--chart-4: oklch(0.507 0.097 135.648);
--chart-5: oklch(0.381 0.103 312.482);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.029 314.427);
--foreground: oklch(0.976 0.003 314.203);
--muted: oklch(0.228 0.023 134.825);
--muted-foreground: oklch(0.722 0.043 134.568);
--popover: oklch(0.132 0.029 314.427);
--popover-foreground: oklch(0.976 0.003 314.203);
--card: oklch(0.132 0.029 314.427);
--card-foreground: oklch(0.976 0.003 314.203);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.383 0.096 312.66);
--primary-foreground: oklch(0.911 0.027 314.057);
--secondary: oklch(0.474 0.09 135.625);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.474 0.09 135.625);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.619 0.218 33.206);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.383 0.096 312.66);
--chart-1: oklch(0.383 0.096 312.66);
--chart-2: oklch(0.474 0.09 135.625);
--chart-3: oklch(0.474 0.09 135.625);
--chart-4: oklch(0.507 0.097 135.648);
--chart-5: oklch(0.381 0.103 312.482);
}