Immigration for shadcn/ui

Immigration is a shadcn/ui theme built around a neutral gray primary color (#3d4340) with neutral gray accents (#43403d). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#3d4340) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#ffffffwhite
#030705black
Foreground
#05150eblack
#f8fcfamintcream
Card
#fcfcfcsnow
#050b08black
Card foreground
#04110bblack
#fcfdfdwhite
Popover
#fcfcfcsnow
#050b08black
Popover foreground
#04110bblack
#fcfdfdwhite
Primary
#3d4340darkslategray
#3d4340darkslategray
Primary foreground
#d7dbd9gainsboro
#d7dbd9gainsboro
Secondary
#403d43darkslategray
#403d43darkslategray
Secondary foreground
#d9d7dbgainsboro
#d9d7dbgainsboro
Muted
#ded8e4gainsboro
#221b27black
Muted foreground
#5a5161dimgray
#a79eaedarkgray
Accent
#43403ddarkslategray
#43403ddarkslategray
Accent foreground
#dbd9d7gainsboro
#dbd9d7gainsboro
Destructive
#d51f07firebrick
#f94b34tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3d4340darkslategray
#3d4340darkslategray

Contrast

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

Light mode
Text on background18.74:1AAA
Text on card18.84:1AAA
Primary button7.25:1AAA
Secondary button7.50:1AAA
Muted text5.40:1AA
Accent7.31:1AAA
Destructive5.22:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.51:1AAA
Primary button7.25:1AAA
Secondary button7.50:1AAA
Muted text6.48:1AA
Accent7.31:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.177 0.028 163.651);
  --muted: oklch(0.891 0.018 310.254);
  --muted-foreground: oklch(0.45 0.028 309.86);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.161 0.024 165.324);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.161 0.024 165.324);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.376 0.01 167.08);
  --primary-foreground: oklch(0.887 0.005 167.664);
  --secondary: oklch(0.364 0.012 310.138);
  --secondary-foreground: oklch(0.881 0.006 310.378);
  --accent: oklch(0.373 0.007 73.071);
  --accent-foreground: oklch(0.886 0.003 73.191);
  --destructive: oklch(0.558 0.215 30.743);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.376 0.01 167.08);
  --chart-1: oklch(0.376 0.01 167.08);
  --chart-2: oklch(0.364 0.012 310.138);
  --chart-3: oklch(0.373 0.007 73.071);
  --chart-4: oklch(0.392 0.013 310.132);
  --chart-5: oklch(0.379 0.015 166.641);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.012 167.984);
  --foreground: oklch(0.987 0.004 167.698);
  --muted: oklch(0.236 0.024 309.475);
  --muted-foreground: oklch(0.711 0.025 310.111);
  --popover: oklch(0.139 0.014 167.913);
  --popover-foreground: oklch(0.993 0.002 167.756);
  --card: oklch(0.139 0.014 167.913);
  --card-foreground: oklch(0.993 0.002 167.756);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.376 0.01 167.08);
  --primary-foreground: oklch(0.887 0.005 167.664);
  --secondary: oklch(0.364 0.012 310.138);
  --secondary-foreground: oklch(0.881 0.006 310.378);
  --accent: oklch(0.373 0.007 73.071);
  --accent-foreground: oklch(0.886 0.003 73.191);
  --destructive: oklch(0.658 0.214 30.846);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.376 0.01 167.08);
  --chart-1: oklch(0.376 0.01 167.08);
  --chart-2: oklch(0.364 0.012 310.138);
  --chart-3: oklch(0.373 0.007 73.071);
  --chart-4: oklch(0.392 0.013 310.132);
  --chart-5: oklch(0.379 0.015 166.641);
}