Uncommon for shadcn/ui

Uncommon is a shadcn/ui theme built around a vivid purple primary color (#d008e2) with vivid green accents (#1ae208). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#d008e2) on a neutral background (#070208).

Color palette

TokenLightDark
Background
#ffffffwhite
#070208black
Foreground
#130514black
#fdfcfdwhite
Card
#fcfcfcsnow
#0b030cblack
Card foreground
#0f0410black
#ffffffwhite
Popover
#ffffffwhite
#070208black
Popover foreground
#130514black
#fdfcfdwhite
Primary
#d008e2magenta
#d008e2magenta
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1ae208lime
#1ae208lime
Secondary foreground
#031e01black
#031e01black
Muted
#e8ede8linen
#121712black
Muted foreground
#656765dimgray
#989a98darkgray
Accent
#1ae208lime
#1ae208lime
Accent foreground
#031e01black
#031e01black
Destructive
#b82514firebrick
#e94b3atomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d008e2magenta
#d008e2magenta

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.66:1AAA
Primary button4.35:1AA Large
Secondary button10.05:1AAA
Muted text4.82:1AA
Accent10.05:1AAA
Destructive6.36:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.29:1AAA
Primary button4.35:1AA Large
Secondary button10.05:1AAA
Muted text6.39:1AA
Accent10.05:1AAA
Destructive3.79:1AA Large

CSS variables

Paste this into your globals.css to use Uncommon in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.15 0.04 324.335);
  --muted: oklch(0.942 0.009 143.088);
  --muted-foreground: oklch(0.512 0.004 143.099);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.15 0.04 324.335);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.137 0.035 324.474);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.615 0.287 323.814);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.793 0.266 142.205);
  --secondary-foreground: oklch(0.204 0.064 140.926);
  --accent: oklch(0.793 0.266 142.205);
  --accent-foreground: oklch(0.204 0.064 140.926);
  --destructive: oklch(0.508 0.185 30.502);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.615 0.287 323.814);
  --chart-1: oklch(0.615 0.287 323.814);
  --chart-2: oklch(0.793 0.266 142.205);
  --chart-3: oklch(0.793 0.266 142.205);
  --chart-4: oklch(0.832 0.28 142.213);
  --chart-5: oklch(0.621 0.291 323.751);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.024 324.824);
  --foreground: oklch(0.992 0.001 323.14);
  --muted: oklch(0.198 0.014 142.804);
  --muted-foreground: oklch(0.684 0.004 143.11);
  --popover: oklch(0.108 0.024 324.824);
  --popover-foreground: oklch(0.992 0.001 323.14);
  --card: oklch(0.123 0.028 324.653);
  --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.615 0.287 323.814);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.793 0.266 142.205);
  --secondary-foreground: oklch(0.204 0.064 140.926);
  --accent: oklch(0.793 0.266 142.205);
  --accent-foreground: oklch(0.204 0.064 140.926);
  --destructive: oklch(0.633 0.197 29.846);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.615 0.287 323.814);
  --chart-1: oklch(0.615 0.287 323.814);
  --chart-2: oklch(0.793 0.266 142.205);
  --chart-3: oklch(0.793 0.266 142.205);
  --chart-4: oklch(0.832 0.28 142.213);
  --chart-5: oklch(0.621 0.291 323.751);
}