Redirect for shadcn/ui

Redirect is a shadcn/ui theme built around a neutral gray primary color (#5c5c5c) with muted light red accents (#dcc7c7). The light mode uses a neutral background (#fcf7f7). Dark mode keeps the neutral gray primary (#5c5c5c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf7f7snow
#000000black
Foreground
#040101black
#fdfcfcsnow
Card
#fcf7f7snow
#000000black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fcf7f7snow
#000000black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#5c5c5cdimgray
#5c5c5cdimgray
Primary foreground
#f5f5f5whitesmoke
#f5f5f5whitesmoke
Secondary
#ebe5e5linen
#322525darkslategray
Secondary foreground
#594545darkolivegreen
#cdbcbcsilver
Muted
#f2e3e3mistyrose
#1c0d0dblack
Muted foreground
#4e4646darkslategray
#b9b1b1darkgray
Accent
#dcc7c7thistle
#492c2cdarkslategray
Accent foreground
#452b2bdarkslategray
#dec9c9lightgrey
Destructive
#6b140amaroon
#db2814firebrick
Destructive foreground
#f8b7b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5c5c5cdimgray
#5c5c5cdimgray

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button6.15:1AA
Secondary button7.14:1AAA
Muted text7.39:1AAA
Accent7.94:1AAA
Destructive7.15:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button6.15:1AA
Secondary button8.08:1AAA
Muted text8.97:1AAA
Accent7.90:1AAA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 17.246);
  --foreground: oklch(0.078 0.021 23.097);
  --muted: oklch(0.929 0.016 17.438);
  --muted-foreground: oklch(0.402 0.01 17.576);
  --popover: oklch(0.981 0.005 17.246);
  --popover-foreground: oklch(0.078 0.021 23.097);
  --card: oklch(0.981 0.005 17.246);
  --card-foreground: oklch(0.078 0.021 23.097);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.474 0 198.435);
  --primary-foreground: oklch(0.97 0 180);
  --secondary: oklch(0.927 0.006 17.274);
  --secondary-foreground: oklch(0.411 0.028 18.372);
  --accent: oklch(0.846 0.024 17.632);
  --accent-foreground: oklch(0.322 0.039 19.395);
  --destructive: oklch(0.346 0.123 30.438);
  --destructive-foreground: oklch(0.837 0.076 25.994);
  --ring: oklch(0.474 0 198.435);
  --chart-1: oklch(0.474 0 198.435);
  --chart-2: oklch(0.927 0.006 17.274);
  --chart-3: oklch(0.846 0.024 17.632);
  --chart-4: oklch(0.951 0.004 17.232);
  --chart-5: oklch(0.469 0.007 17.411);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 17.173);
  --muted: oklch(0.181 0.025 19.757);
  --muted-foreground: oklch(0.768 0.008 17.34);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 17.173);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 17.173);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.474 0 198.435);
  --primary-foreground: oklch(0.97 0 180);
  --secondary: oklch(0.279 0.02 18.409);
  --secondary-foreground: oklch(0.808 0.02 17.574);
  --accent: oklch(0.329 0.044 19.668);
  --accent-foreground: oklch(0.853 0.024 17.64);
  --destructive: oklch(0.576 0.215 30.518);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.474 0 198.435);
  --chart-1: oklch(0.474 0 198.435);
  --chart-2: oklch(0.279 0.02 18.409);
  --chart-3: oklch(0.329 0.044 19.668);
  --chart-4: oklch(0.308 0.023 18.465);
  --chart-5: oklch(0.469 0.007 17.411);
}