Orange for shadcn/ui

Orange is a shadcn/ui theme built around a vivid orange primary color (#fb9804) with muted light orange accents (#ddd8d0). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid orange primary (#fb9804) on an orange-tinted background (#0a0805).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0a0805black
Foreground
#040301black
#fbfaf9snow
Card
#fcfaf8snow
#0e0b07black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fdfdfcwhite
#0a0805black
Popover foreground
#040301black
#fbfaf9snow
Primary
#fb9804darkorange
#fb9804darkorange
Primary foreground
#321e01black
#321e01black
Secondary
#ddd8d0lightgrey
#33312edarkslategray
Secondary foreground
#473f33darkslategray
#cccac7lightgrey
Muted
#e7decfgainsboro
#302618black
Muted foreground
#535250darkslategray
#afaeacdarkgray
Accent
#ddd8d0lightgrey
#33312edarkslategray
Accent foreground
#473f33darkslategray
#cccac7lightgrey
Destructive
#b8320afirebrick
#f34a16orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fb9804darkorange
#fb9804darkorange

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.18:1AAA
Primary button7.27:1AAA
Secondary button7.27:1AAA
Muted text5.84:1AA
Accent7.27:1AAA
Destructive5.98:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.31:1AAA
Primary button7.27:1AAA
Secondary button7.93:1AAA
Muted text6.68:1AA
Accent7.93:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 78.308);
  --foreground: oklch(0.098 0.015 87.45);
  --muted: oklch(0.904 0.022 78.214);
  --muted-foreground: oklch(0.439 0.004 78.286);
  --popover: oklch(0.993 0.002 78.308);
  --popover-foreground: oklch(0.098 0.015 87.45);
  --card: oklch(0.986 0.003 78.303);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.766 0.171 65.22);
  --primary-foreground: oklch(0.256 0.053 73.678);
  --secondary: oklch(0.883 0.012 78.265);
  --secondary-foreground: oklch(0.373 0.022 77.947);
  --accent: oklch(0.883 0.012 78.265);
  --accent-foreground: oklch(0.373 0.022 77.947);
  --destructive: oklch(0.52 0.176 35.168);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.171 65.22);
  --chart-1: oklch(0.766 0.171 65.22);
  --chart-2: oklch(0.883 0.012 78.265);
  --chart-3: oklch(0.883 0.012 78.265);
  --chart-4: oklch(0.905 0.01 78.276);
  --chart-5: oklch(0.772 0.174 64.552);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.009 82.472);
  --foreground: oklch(0.986 0.002 78.306);
  --muted: oklch(0.276 0.029 77.243);
  --muted-foreground: oklch(0.75 0.003 78.3);
  --popover: oklch(0.137 0.009 82.472);
  --popover-foreground: oklch(0.986 0.002 78.306);
  --card: oklch(0.151 0.01 79.921);
  --card-foreground: oklch(0.993 0.001 78.309);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.766 0.171 65.22);
  --primary-foreground: oklch(0.256 0.053 73.678);
  --secondary: oklch(0.314 0.006 78.244);
  --secondary-foreground: oklch(0.84 0.005 78.294);
  --accent: oklch(0.314 0.006 78.244);
  --accent-foreground: oklch(0.84 0.005 78.294);
  --destructive: oklch(0.645 0.213 35.586);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.171 65.22);
  --chart-1: oklch(0.766 0.171 65.22);
  --chart-2: oklch(0.314 0.006 78.244);
  --chart-3: oklch(0.314 0.006 78.244);
  --chart-4: oklch(0.344 0.007 78.241);
  --chart-5: oklch(0.772 0.174 64.552);
}