Uncommon for shadcn/ui

Uncommon is a shadcn/ui theme built around a near-black primary color (#151316) with near-black accents (#161315). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the near-black primary (#151316) on a violet-tinted background (#0c060f).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#0c060fblack
Foreground
#09040cblack
#ffffffwhite
Card
#fbf7fdghostwhite
#0c060fblack
Card foreground
#09040cblack
#ffffffwhite
Popover
#fbf7fdghostwhite
#0c060fblack
Popover foreground
#09040cblack
#ffffffwhite
Primary
#151316black
#151316black
Primary foreground
#afa9b2darkgray
#afa9b2darkgray
Secondary
#141316black
#141316black
Secondary foreground
#aaa9b2darkgray
#aaa9b2darkgray
Muted
#e5e3eelavender
#14111cblack
Muted foreground
#615e6edimgray
#9491a1lightslategray
Accent
#161315black
#161315black
Accent foreground
#b2a9b0darkgray
#b2a9b0darkgray
Destructive
#db4d00orangered
#f05400orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#151316black
#151316black

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button8.03:1AAA
Secondary button7.95:1AAA
Muted text4.94:1AA
Accent8.07:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button8.03:1AAA
Secondary button7.95:1AAA
Muted text6.04:1AA
Accent8.07:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 315.987);
  --foreground: oklch(0.121 0.026 317.622);
  --muted: oklch(0.919 0.015 295.278);
  --muted-foreground: oklch(0.49 0.026 294.589);
  --popover: oklch(0.981 0.009 315.987);
  --popover-foreground: oklch(0.121 0.026 317.622);
  --card: oklch(0.981 0.009 315.987);
  --card-foreground: oklch(0.121 0.026 317.622);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.191 0.006 315.917);
  --primary-foreground: oklch(0.742 0.016 315.945);
  --secondary: oklch(0.189 0.005 295.095);
  --secondary-foreground: oklch(0.738 0.014 295.227);
  --accent: oklch(0.191 0.006 332.427);
  --accent-foreground: oklch(0.744 0.016 332.316);
  --destructive: oklch(0.609 0.19 40.231);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.191 0.006 315.917);
  --chart-1: oklch(0.191 0.006 315.917);
  --chart-2: oklch(0.189 0.005 295.095);
  --chart-3: oklch(0.191 0.006 332.427);
  --chart-4: oklch(0.222 0.007 295.032);
  --chart-5: oklch(0.189 0.008 315.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.023 316.269);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.022 293.302);
  --muted-foreground: oklch(0.664 0.024 294.906);
  --popover: oklch(0.136 0.023 316.269);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.023 316.269);
  --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.191 0.006 315.917);
  --primary-foreground: oklch(0.742 0.016 315.945);
  --secondary: oklch(0.189 0.005 295.095);
  --secondary-foreground: oklch(0.738 0.014 295.227);
  --accent: oklch(0.191 0.006 332.427);
  --accent-foreground: oklch(0.744 0.016 332.316);
  --destructive: oklch(0.65 0.204 40.009);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.191 0.006 315.917);
  --chart-1: oklch(0.191 0.006 315.917);
  --chart-2: oklch(0.189 0.005 295.095);
  --chart-3: oklch(0.191 0.006 332.427);
  --chart-4: oklch(0.222 0.007 295.032);
  --chart-5: oklch(0.189 0.008 315.865);
}