Immediate for shadcn/ui

Immediate is a shadcn/ui theme built around a muted light green primary color (#e3e6e0) with muted light green accents (#e0e6e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#e3e6e0) on a green-tinted background (#080b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#080b04black
Foreground
#030401black
#f8f9f6whitesmoke
Card
#fcfcfcsnow
#0b0f05black
Card foreground
#000000black
#fafbf9snow
Popover
#ffffffwhite
#080b04black
Popover foreground
#030401black
#f8f9f6whitesmoke
Primary
#e3e6e0gainsboro
#e3e6e0gainsboro
Primary foreground
#4b5242darkslategray
#4b5242darkslategray
Secondary
#e6e6e0gainsboro
#e6e6e0gainsboro
Secondary foreground
#525142darkolivegreen
#525142darkolivegreen
Muted
#edecdebeige
#212012black
Muted foreground
#565443darkolivegreen
#bcbaa9silver
Accent
#e0e6e0gainsboro
#e0e6e0gainsboro
Accent foreground
#435242darkslategray
#435242darkslategray
Destructive
#ad0900darkred
#e60b00red
Destructive foreground
#ffe2e0mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3e6e0gainsboro
#e3e6e0gainsboro

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.54:1AAA
Primary button6.45:1AA
Secondary button6.39:1AA
Muted text6.43:1AA
Accent6.56:1AA
Destructive6.09:1AA
Dark mode
Text on background18.72:1AAA
Text on card18.65:1AAA
Primary button6.45:1AA
Secondary button6.39:1AA
Muted text8.37:1AAA
Accent6.56:1AA
Destructive4.77:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.014 124.923);
  --muted: oklch(0.94 0.019 103.439);
  --muted-foreground: oklch(0.444 0.027 104.059);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.101 0.014 124.923);
  --card: oklch(0.992 0 161.565);
  --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.921 0.009 125.866);
  --primary-foreground: oklch(0.427 0.028 126.626);
  --secondary: oklch(0.923 0.008 103.246);
  --secondary-foreground: oklch(0.431 0.024 103.989);
  --accent: oklch(0.919 0.01 143.576);
  --accent-foreground: oklch(0.421 0.033 143.217);
  --destructive: oklch(0.473 0.19 29.864);
  --destructive-foreground: oklch(0.936 0.032 21.349);
  --ring: oklch(0.921 0.009 125.866);
  --chart-1: oklch(0.921 0.009 125.866);
  --chart-2: oklch(0.923 0.008 103.246);
  --chart-3: oklch(0.919 0.01 143.576);
  --chart-4: oklch(0.944 0.006 103.206);
  --chart-5: oklch(0.923 0.011 125.901);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.019 125.124);
  --foreground: oklch(0.98 0.004 125.801);
  --muted: oklch(0.241 0.025 104.646);
  --muted-foreground: oklch(0.787 0.024 103.598);
  --popover: oklch(0.144 0.019 125.124);
  --popover-foreground: oklch(0.98 0.004 125.801);
  --card: oklch(0.16 0.022 126.425);
  --card-foreground: oklch(0.987 0.003 125.78);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.921 0.009 125.866);
  --primary-foreground: oklch(0.427 0.028 126.626);
  --secondary: oklch(0.923 0.008 103.246);
  --secondary-foreground: oklch(0.431 0.024 103.989);
  --accent: oklch(0.919 0.01 143.576);
  --accent-foreground: oklch(0.421 0.033 143.217);
  --destructive: oklch(0.582 0.236 29.68);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.921 0.009 125.866);
  --chart-1: oklch(0.921 0.009 125.866);
  --chart-2: oklch(0.923 0.008 103.246);
  --chart-3: oklch(0.919 0.01 143.576);
  --chart-4: oklch(0.944 0.006 103.206);
  --chart-5: oklch(0.923 0.011 125.901);
}