Gateway for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button12.63:1AAA
Secondary button7.69:1AAA
Muted text4.68:1AA
Accent7.69:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.66:1AAA
Text on card19.89:1AAA
Primary button12.63:1AAA
Secondary button8.25:1AAA
Muted text6.03:1AA
Accent8.25:1AAA
Destructive4.39:1AA Large

CSS variables

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);
}