Narrow for shadcn/ui

Narrow is a shadcn/ui theme built around a deep orange primary color (#150c05) with muted light orange accents (#d5cec8). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the deep orange primary (#150c05) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#080502black
Foreground
#160c04black
#faf7f5whitesmoke
Card
#fcfaf8snow
#0c0803black
Card foreground
#110a03black
#fbfaf8snow
Popover
#fdfcfcsnow
#080502black
Popover foreground
#160c04black
#faf7f5whitesmoke
Primary
#150c05black
#150c05black
Primary foreground
#dca46fdarksalmon
#dca46fdarksalmon
Secondary
#d5cec8lightgrey
#171716black
Secondary foreground
#3d352fdarkslategray
#b2b0aedarkgray
Muted
#f4f2f0whitesmoke
#0f0d0bblack
Muted foreground
#4b4a49darkslategray
#b6b5b4silver
Accent
#d5cec8lightgrey
#171716black
Accent foreground
#3d352fdarkslategray
#b2b0aedarkgray
Destructive
#d0320bfirebrick
#f4522atomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#150c05black
#150c05black

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.84:1AAA
Primary button8.80:1AAA
Secondary button7.73:1AAA
Muted text7.93:1AAA
Accent7.73:1AAA
Destructive5.04:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.17:1AAA
Primary button8.80:1AAA
Secondary button8.29:1AAA
Muted text9.49:1AAA
Accent8.29:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 65.948);
  --foreground: oklch(0.166 0.024 67.849);
  --muted: oklch(0.963 0.003 65.924);
  --muted-foreground: oklch(0.409 0.002 65.921);
  --popover: oklch(0.993 0.002 65.948);
  --popover-foreground: oklch(0.166 0.024 67.849);
  --card: oklch(0.986 0.003 65.93);
  --card-foreground: oklch(0.152 0.021 71.294);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.165 0.021 67.185);
  --primary-foreground: oklch(0.76 0.096 63.668);
  --secondary: oklch(0.856 0.011 65.812);
  --secondary-foreground: oklch(0.336 0.015 65.374);
  --accent: oklch(0.856 0.011 65.812);
  --accent-foreground: oklch(0.336 0.015 65.374);
  --destructive: oklch(0.564 0.199 33.579);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.165 0.021 67.185);
  --chart-1: oklch(0.165 0.021 67.185);
  --chart-2: oklch(0.856 0.011 65.812);
  --chart-3: oklch(0.856 0.011 65.812);
  --chart-4: oklch(0.879 0.009 65.841);
  --chart-5: oklch(0.165 0.022 67.428);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.013 74.341);
  --foreground: oklch(0.978 0.004 65.919);
  --muted: oklch(0.159 0.005 65.539);
  --muted-foreground: oklch(0.774 0.001 65.946);
  --popover: oklch(0.119 0.013 74.341);
  --popover-foreground: oklch(0.978 0.004 65.919);
  --card: oklch(0.136 0.015 73.699);
  --card-foreground: oklch(0.985 0.003 65.935);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.165 0.021 67.185);
  --primary-foreground: oklch(0.76 0.096 63.668);
  --secondary: oklch(0.205 0.001 65.9);
  --secondary-foreground: oklch(0.758 0.003 65.922);
  --accent: oklch(0.205 0.001 65.9);
  --accent-foreground: oklch(0.758 0.003 65.922);
  --destructive: oklch(0.656 0.205 34.797);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.165 0.021 67.185);
  --chart-1: oklch(0.165 0.021 67.185);
  --chart-2: oklch(0.205 0.001 65.9);
  --chart-3: oklch(0.205 0.001 65.9);
  --chart-4: oklch(0.238 0.001 65.893);
  --chart-5: oklch(0.165 0.022 67.428);
}