Uncomfortable for shadcn/ui

Uncomfortable is a shadcn/ui theme built around a vivid indigo primary color (#0a11a4) with vivid green accents (#11a40a). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#0a11a4) on an indigo-tinted background (#05060f).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#05060fblack
Foreground
#030312black
#ffffffwhite
Card
#f4f4fbwhitesmoke
#070713black
Card foreground
#02020dblack
#ffffffwhite
Popover
#f4f4fbwhitesmoke
#070713black
Popover foreground
#02020dblack
#ffffffwhite
Primary
#0a11a4darkblue
#0a11a4darkblue
Primary foreground
#e2e3fdlavender
#e2e3fdlavender
Secondary
#a40a11darkred
#a40a11darkred
Secondary foreground
#fde2e3mistyrose
#fde2e3mistyrose
Muted
#e8d4d5gainsboro
#2b1718black
Muted foreground
#4e4b4bdarkslategray
#b4b1b1darkgray
Accent
#11a40aforestgreen
#11a40aforestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bc3510firebrick
#ed5d35tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a11a4darkblue
#0a11a4darkblue

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card18.91:1AAA
Primary button10.21:1AAA
Secondary button6.53:1AA
Muted text6.08:1AA
Accent3.31:1AA Large
Destructive5.74:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.02:1AAA
Primary button10.21:1AAA
Secondary button6.53:1AA
Muted text7.95:1AAA
Accent3.31:1AA Large
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.005 283.876);
  --foreground: oklch(0.112 0.038 274.552);
  --muted: oklch(0.886 0.022 14.106);
  --muted-foreground: oklch(0.416 0.004 13.802);
  --popover: oklch(0.97 0.008 283.826);
  --popover-foreground: oklch(0.101 0.032 274.721);
  --card: oklch(0.97 0.008 283.826);
  --card-foreground: oklch(0.101 0.032 274.721);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.338 0.215 265.739);
  --primary-foreground: oklch(0.924 0.035 283.292);
  --secondary: oklch(0.455 0.181 27.3);
  --secondary-foreground: oklch(0.936 0.03 14.251);
  --accent: oklch(0.624 0.208 142.323);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.53 0.177 34.907);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.338 0.215 265.739);
  --chart-1: oklch(0.338 0.215 265.739);
  --chart-2: oklch(0.455 0.181 27.3);
  --chart-3: oklch(0.624 0.208 142.323);
  --chart-4: oklch(0.484 0.193 27.41);
  --chart-5: oklch(0.339 0.22 265.294);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.023 279.514);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.233 0.032 16.605);
  --muted-foreground: oklch(0.763 0.003 13.698);
  --popover: oklch(0.136 0.027 279.427);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.027 279.427);
  --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.338 0.215 265.739);
  --primary-foreground: oklch(0.924 0.035 283.292);
  --secondary: oklch(0.455 0.181 27.3);
  --secondary-foreground: oklch(0.936 0.03 14.251);
  --accent: oklch(0.624 0.208 142.323);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.187 36.081);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.338 0.215 265.739);
  --chart-1: oklch(0.338 0.215 265.739);
  --chart-2: oklch(0.455 0.181 27.3);
  --chart-3: oklch(0.624 0.208 142.323);
  --chart-4: oklch(0.484 0.193 27.41);
  --chart-5: oklch(0.339 0.22 265.294);
}