NM-Orange for shadcn/ui

NM-Orange is a shadcn/ui theme built around a vivid orange primary color (#f97415) with muted light orange accents (#d6cdc7). The light mode uses a neutral background (#fbfaf8). Dark mode keeps the vivid orange primary (#f97415) on an orange-tinted background (#0e0a06).

Color palette

TokenLightDark
Background
#fbfaf8snow
#0e0a06black
Foreground
#000000black
#fdfcfcsnow
Card
#faf7f5whitesmoke
#120c08black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfaf8snow
#0e0a06black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#f97415darkorange
#f97415darkorange
Primary foreground
#000000black
#000000black
Secondary
#d6cdc7lightgrey
#231e1ablack
Secondary foreground
#3e342edarkslategray
#c2b6adsilver
Muted
#eee1d8antiquewhite
#271a11black
Muted foreground
#665a52dimgray
#ada299darkgray
Accent
#d6cdc7lightgrey
#231e1ablack
Accent foreground
#3e342edarkslategray
#c2b6adsilver
Destructive
#973902saddlebrown
#fc7527tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#eceae9linen
#24211eblack
Input
#eceae9linen
#24211eblack
Ring
#f97415darkorange
#f97415darkorange

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card19.67:1AAA
Primary button7.54:1AAA
Secondary button7.74:1AAA
Muted text5.20:1AA
Accent7.74:1AAA
Destructive7.26:1AAA
Dark mode
Text on background19.29:1AAA
Text on card19.43:1AAA
Primary button7.54:1AAA
Secondary button8.33:1AAA
Muted text6.75:1AA
Accent8.33:1AAA
Destructive7.70:1AAA

CSS variables

Paste this into your globals.css to use NM-Orange in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 58.325);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.918 0.018 58.087);
  --muted-foreground: oklch(0.477 0.02 57.766);
  --popover: oklch(0.985 0.003 58.325);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.978 0.004 58.306);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.939 0.003 58.321);
  --input: oklch(0.939 0.003 58.321);
  --primary: oklch(0.707 0.186 48.129);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.854 0.013 58.157);
  --secondary-foreground: oklch(0.334 0.018 57.615);
  --accent: oklch(0.854 0.013 58.157);
  --accent-foreground: oklch(0.334 0.018 57.615);
  --destructive: oklch(0.47 0.138 42.949);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.707 0.186 48.129);
  --chart-1: oklch(0.707 0.186 48.129);
  --chart-2: oklch(0.854 0.013 58.157);
  --chart-3: oklch(0.854 0.013 58.157);
  --chart-4: oklch(0.878 0.011 58.195);
  --chart-5: oklch(0.711 0.19 47.541);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.011 61.233);
  --foreground: oklch(0.993 0.001 58.343);
  --muted: oklch(0.232 0.026 56.617);
  --muted-foreground: oklch(0.718 0.018 58.008);
  --popover: oklch(0.147 0.011 61.233);
  --popover-foreground: oklch(0.993 0.001 58.343);
  --card: oklch(0.16 0.013 58.145);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.249 0.006 58.013);
  --input: oklch(0.249 0.006 58.013);
  --primary: oklch(0.707 0.186 48.129);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.239 0.011 57.719);
  --secondary-foreground: oklch(0.784 0.019 58.025);
  --accent: oklch(0.239 0.011 57.719);
  --accent-foreground: oklch(0.784 0.019 58.025);
  --destructive: oklch(0.712 0.185 45.869);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.707 0.186 48.129);
  --chart-1: oklch(0.707 0.186 48.129);
  --chart-2: oklch(0.239 0.011 57.719);
  --chart-3: oklch(0.239 0.011 57.719);
  --chart-4: oklch(0.272 0.013 57.674);
  --chart-5: oklch(0.711 0.19 47.541);
}