Immediate for shadcn/ui

Immediate is a shadcn/ui theme built around a muted deep violet primary color (#1d1a23) with muted deep green accents (#20231a). The light mode uses a neutral background (#faf8fc). Dark mode keeps the muted deep violet primary (#1d1a23) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#020104black
Foreground
#040208black
#f7f6f9whitesmoke
Card
#faf8fcghostwhite
#020104black
Card foreground
#040208black
#f7f6f9whitesmoke
Popover
#faf8fcghostwhite
#020104black
Popover foreground
#040208black
#f7f6f9whitesmoke
Primary
#1d1a23black
#1d1a23black
Primary foreground
#b5acc3silver
#b5acc3silver
Secondary
#20231ablack
#20231ablack
Secondary foreground
#bac3acsilver
#bac3acsilver
Muted
#dce6ccgainsboro
#293319darkslategray
Muted foreground
#555850dimgray
#acafa7darkgray
Accent
#20231ablack
#20231ablack
Accent foreground
#bac3acsilver
#bac3acsilver
Destructive
#85260fsaddlebrown
#e74a23chocolate
Destructive foreground
#f9d5cdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d1a23black
#1d1a23black

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.88:1AAA
Secondary button8.69:1AAA
Muted text5.58:1AA
Accent8.69:1AAA
Destructive6.73:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button7.88:1AAA
Secondary button8.69:1AAA
Muted text5.94:1AA
Accent8.69:1AAA
Destructive3.90: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.982 0.004 303.572);
  --foreground: oklch(0.1 0.022 304.607);
  --muted: oklch(0.91 0.036 124.237);
  --muted-foreground: oklch(0.456 0.014 124.097);
  --popover: oklch(0.982 0.004 303.572);
  --popover-foreground: oklch(0.1 0.022 304.607);
  --card: oklch(0.982 0.004 303.572);
  --card-foreground: oklch(0.1 0.022 304.607);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.225 0.019 302.351);
  --primary-foreground: oklch(0.76 0.034 302.985);
  --secondary: oklch(0.251 0.019 124.775);
  --secondary-foreground: oklch(0.804 0.033 124.252);
  --accent: oklch(0.251 0.019 124.775);
  --accent-foreground: oklch(0.804 0.033 124.252);
  --destructive: oklch(0.416 0.133 34.629);
  --destructive-foreground: oklch(0.902 0.042 34.327);
  --ring: oklch(0.225 0.019 302.351);
  --chart-1: oklch(0.225 0.019 302.351);
  --chart-2: oklch(0.251 0.019 124.775);
  --chart-3: oklch(0.251 0.019 124.775);
  --chart-4: oklch(0.286 0.023 124.848);
  --chart-5: oklch(0.223 0.023 302.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.019 304.676);
  --foreground: oklch(0.974 0.005 303.566);
  --muted: oklch(0.305 0.045 126.1);
  --muted-foreground: oklch(0.749 0.012 123.885);
  --popover: oklch(0.079 0.019 304.676);
  --popover-foreground: oklch(0.974 0.005 303.566);
  --card: oklch(0.079 0.019 304.676);
  --card-foreground: oklch(0.974 0.005 303.566);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.225 0.019 302.351);
  --primary-foreground: oklch(0.76 0.034 302.985);
  --secondary: oklch(0.251 0.019 124.775);
  --secondary-foreground: oklch(0.804 0.033 124.252);
  --accent: oklch(0.251 0.019 124.775);
  --accent-foreground: oklch(0.804 0.033 124.252);
  --destructive: oklch(0.625 0.2 34.658);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.225 0.019 302.351);
  --chart-1: oklch(0.225 0.019 302.351);
  --chart-2: oklch(0.251 0.019 124.775);
  --chart-3: oklch(0.251 0.019 124.775);
  --chart-4: oklch(0.286 0.023 124.848);
  --chart-5: oklch(0.223 0.023 302.086);
}