Immediate for shadcn/ui

Immediate is a shadcn/ui theme built around a near-black primary color (#18191b) with muted light blue accents (#bbbfce). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the near-black primary (#18191b) on a blue-tinted background (#03050c).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#03050cblack
Foreground
#010104black
#f9f9fbghostwhite
Card
#f4f5fbwhitesmoke
#040710black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f4f5fbwhitesmoke
#040710black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#18191bblack
#18191bblack
Primary foreground
#afb0b6darkgray
#afb0b6darkgray
Secondary
#d9dadegainsboro
#1e2024black
Secondary foreground
#3e4047darkslategray
#b5b7c0silver
Muted
#d2d7eagainsboro
#151a2dblack
Muted foreground
#565b6cdimgray
#9398a9darkgray
Accent
#bbbfcesilver
#2b2e3bdarkslategray
Accent foreground
#242732darkslategray
#c4c7d4lightgrey
Destructive
#811a0emaroon
#e73623crimson
Destructive foreground
#f9cdc8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#18191bblack
#18191bblack

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.35:1AAA
Primary button8.14:1AAA
Secondary button7.39:1AAA
Muted text4.70:1AA
Accent8.09:1AAA
Destructive7.02:1AAA
Dark mode
Text on background19.37:1AAA
Text on card19.66:1AAA
Primary button8.14:1AAA
Secondary button8.17:1AAA
Muted text5.99:1AA
Accent8.00:1AAA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 274.977);
  --foreground: oklch(0.077 0.018 264.082);
  --muted: oklch(0.88 0.027 274.643);
  --muted-foreground: oklch(0.472 0.028 274.224);
  --popover: oklch(0.972 0.007 274.946);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.007 274.946);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.213 0.004 274.794);
  --primary-foreground: oklch(0.758 0.009 274.89);
  --secondary: oklch(0.888 0.006 274.958);
  --secondary-foreground: oklch(0.371 0.013 274.581);
  --accent: oklch(0.805 0.021 274.694);
  --accent-foreground: oklch(0.276 0.021 273.969);
  --destructive: oklch(0.394 0.139 30.436);
  --destructive-foreground: oklch(0.884 0.051 25.559);
  --ring: oklch(0.213 0.004 274.794);
  --chart-1: oklch(0.213 0.004 274.794);
  --chart-2: oklch(0.888 0.006 274.958);
  --chart-3: oklch(0.805 0.021 274.694);
  --chart-4: oklch(0.912 0.004 274.976);
  --chart-5: oklch(0.211 0.007 274.635);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.02 267.513);
  --foreground: oklch(0.983 0.002 275.012);
  --muted: oklch(0.223 0.038 272.323);
  --muted-foreground: oklch(0.681 0.025 274.545);
  --popover: oklch(0.128 0.024 268.311);
  --popover-foreground: oklch(0.992 0.001 275.023);
  --card: oklch(0.128 0.024 268.311);
  --card-foreground: oklch(0.992 0.001 275.023);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.213 0.004 274.794);
  --primary-foreground: oklch(0.758 0.009 274.89);
  --secondary: oklch(0.242 0.008 274.595);
  --secondary-foreground: oklch(0.78 0.013 274.831);
  --accent: oklch(0.304 0.024 273.92);
  --accent-foreground: oklch(0.831 0.019 274.753);
  --destructive: oklch(0.607 0.215 30.434);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.213 0.004 274.794);
  --chart-1: oklch(0.213 0.004 274.794);
  --chart-2: oklch(0.242 0.008 274.595);
  --chart-3: oklch(0.304 0.024 273.92);
  --chart-4: oklch(0.273 0.01 274.566);
  --chart-5: oklch(0.211 0.007 274.635);
}