Off-ramp for shadcn/ui

Off-ramp is a shadcn/ui theme built around a vivid light red primary color (#fce8eb) with neutral gray accents (#e7e4e4). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the vivid light red primary (#fce8eb) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0b0505black
Foreground
#160306black
#f9f6f6whitesmoke
Card
#fcf8f9snow
#0b0505black
Card foreground
#160306black
#f9f6f6whitesmoke
Popover
#fcf8f9snow
#0b0505black
Popover foreground
#160306black
#f9f6f6whitesmoke
Primary
#fce8eblinen
#fce8eblinen
Primary foreground
#a01326firebrick
#a01326firebrick
Secondary
#e7e4e4gainsboro
#151414black
Secondary foreground
#514849darkslategray
#aeadaddarkgray
Muted
#e4d8d9gainsboro
#271b1dblack
Muted foreground
#443b3cdarkslategray
#c4bbbcsilver
Accent
#e7e4e4gainsboro
#151414black
Accent foreground
#514849darkslategray
#aeadaddarkgray
Destructive
#951204darkred
#f91f06red
Destructive foreground
#fed2cdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fce8eblinen
#fce8eblinen

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.97:1AAA
Primary button6.84:1AA
Secondary button7.00:1AAA
Muted text7.78:1AAA
Accent7.00:1AAA
Destructive6.45:1AA
Dark mode
Text on background18.85:1AAA
Text on card18.85:1AAA
Primary button6.84:1AA
Secondary button8.20:1AAA
Muted text8.86:1AAA
Accent8.20:1AAA
Destructive4.03:1AA Large

CSS variables

Paste this into your globals.css to use Off-ramp in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 7.851);
  --foreground: oklch(0.142 0.039 11.926);
  --muted: oklch(0.891 0.014 8.133);
  --muted-foreground: oklch(0.363 0.013 8.592);
  --popover: oklch(0.982 0.004 7.851);
  --popover-foreground: oklch(0.142 0.039 11.926);
  --card: oklch(0.982 0.004 7.851);
  --card-foreground: oklch(0.142 0.039 11.926);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.948 0.022 8.32);
  --primary-foreground: oklch(0.453 0.172 22.216);
  --secondary: oklch(0.921 0.003 7.838);
  --secondary-foreground: oklch(0.411 0.013 8.491);
  --accent: oklch(0.921 0.003 7.838);
  --accent-foreground: oklch(0.411 0.013 8.491);
  --destructive: oklch(0.429 0.165 30.63);
  --destructive-foreground: oklch(0.9 0.05 25.536);
  --ring: oklch(0.948 0.022 8.32);
  --chart-1: oklch(0.948 0.022 8.32);
  --chart-2: oklch(0.921 0.003 7.838);
  --chart-3: oklch(0.921 0.003 7.838);
  --chart-4: oklch(0.945 0.002 7.809);
  --chart-5: oklch(0.948 0.023 8.342);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 8.388);
  --foreground: oklch(0.975 0.004 7.845);
  --muted: oklch(0.238 0.02 9.819);
  --muted-foreground: oklch(0.799 0.01 8.061);
  --popover: oklch(0.124 0.014 8.388);
  --popover-foreground: oklch(0.975 0.004 7.845);
  --card: oklch(0.124 0.014 8.388);
  --card-foreground: oklch(0.975 0.004 7.845);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.948 0.022 8.32);
  --primary-foreground: oklch(0.453 0.172 22.216);
  --secondary: oklch(0.193 0.001 7.833);
  --secondary-foreground: oklch(0.748 0.002 7.811);
  --accent: oklch(0.193 0.001 7.833);
  --accent-foreground: oklch(0.748 0.002 7.811);
  --destructive: oklch(0.624 0.245 30.297);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.022 8.32);
  --chart-1: oklch(0.948 0.022 8.32);
  --chart-2: oklch(0.193 0.001 7.833);
  --chart-3: oklch(0.193 0.001 7.833);
  --chart-4: oklch(0.226 0.001 7.844);
  --chart-5: oklch(0.948 0.023 8.342);
}