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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.74:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.40:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 5.22:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.25:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 3.45:1 | AA Large |
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);
}