Urge for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.88:1AAA
Secondary button6.46:1AA
Muted text4.51:1AA
Accent6.46:1AA
Destructive6.76:1AA
Dark mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button7.88:1AAA
Secondary button6.46:1AA
Muted text6.98:1AA
Accent6.46:1AA
Destructive4.04:1AA Large

CSS variables

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);
}