Gateway is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#dad2d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#100404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100404black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #140505black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #140505black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #dad2d2lightgrey | #1f1e1eblack |
| Secondary foreground | #433737darkslategray | #b9b6b6silver |
| Muted | #e0d7d7gainsboro | #281f1fblack |
| Muted foreground | #625b5bdimgray | #a49d9ddarkgray |
| Accent | #dad2d2lightgrey | #1f1e1eblack |
| Accent foreground | #433737darkslategray | #b9b6b6silver |
| Destructive | #8f1c0fdarkred | #e72d18orangered |
| Destructive foreground | #fbd9d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 4.68:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.66:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 8.25:1 | AAA |
| Destructive | 4.39:1 | AA Large |
Paste this into your globals.css to use Gateway in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.08 0.019 22.205);
--muted: oklch(0.886 0.01 17.35);
--muted-foreground: oklch(0.477 0.01 17.501);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--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(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.871 0.009 17.33);
--secondary-foreground: oklch(0.35 0.017 18.016);
--accent: oklch(0.871 0.009 17.33);
--accent-foreground: oklch(0.35 0.017 18.016);
--destructive: oklch(0.424 0.152 30.479);
--destructive-foreground: oklch(0.913 0.038 25.38);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.871 0.009 17.33);
--chart-3: oklch(0.871 0.009 17.33);
--chart-4: oklch(0.895 0.007 17.292);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.025 21.016);
--foreground: oklch(0.991 0.001 17.183);
--muted: oklch(0.251 0.014 18.159);
--muted-foreground: oklch(0.702 0.009 17.367);
--popover: oklch(0.144 0.029 21.284);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.029 21.284);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.236 0.002 17.289);
--secondary-foreground: oklch(0.779 0.003 17.227);
--accent: oklch(0.236 0.002 17.289);
--accent-foreground: oklch(0.779 0.003 17.227);
--destructive: oklch(0.6 0.222 30.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.236 0.002 17.289);
--chart-3: oklch(0.236 0.002 17.289);
--chart-4: oklch(0.268 0.002 17.298);
--chart-5: oklch(1 0 180);
}