Orange for shadcn/ui

Orange is a shadcn/ui theme built around a near-white primary color (#fefdfb) with neutral gray accents (#e3e0de). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fefdfb) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#ffffffwhite
#080502black
Foreground
#140d05black
#fafaf9snow
Card
#fcfcfcsnow
#0c0804black
Card foreground
#100a04black
#fdfcfcsnow
Popover
#ffffffwhite
#080502black
Popover foreground
#140d05black
#fafaf9snow
Primary
#fefdfbsnow
#fefdfbsnow
Primary foreground
#4f3112saddlebrown
#4f3112saddlebrown
Secondary
#e3e0degainsboro
#171717black
Secondary foreground
#4c4842darkslategray
#b1b0afdarkgray
Muted
#e9e3ddgainsboro
#221c16black
Muted foreground
#56524ddarkolivegreen
#b2aea9darkgray
Accent
#e3e0degainsboro
#171717black
Accent foreground
#4c4842darkslategray
#b1b0afdarkgray
Destructive
#c31c13firebrick
#eb3c33crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fefdfbsnow
#fefdfbsnow

Contrast

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

Light mode
Text on background19.27:1AAA
Text on card19.25:1AAA
Primary button11.56:1AAA
Secondary button6.92:1AA
Muted text6.08:1AA
Accent6.92:1AA
Destructive6.00:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.52:1AAA
Primary button11.56:1AAA
Secondary button8.28:1AAA
Muted text7.63:1AAA
Accent8.28:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.166 0.021 70.641);
  --muted: oklch(0.919 0.01 69.544);
  --muted-foreground: oklch(0.441 0.01 69.409);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.166 0.021 70.641);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.152 0.018 73.687);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.993 0.003 69.623);
  --primary-foreground: oklch(0.344 0.062 64.682);
  --secondary: oklch(0.909 0.004 69.61);
  --secondary-foreground: oklch(0.403 0.011 69.372);
  --accent: oklch(0.909 0.004 69.61);
  --accent-foreground: oklch(0.403 0.011 69.372);
  --destructive: oklch(0.524 0.2 29.241);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.993 0.003 69.623);
  --chart-1: oklch(0.993 0.003 69.623);
  --chart-2: oklch(0.909 0.004 69.61);
  --chart-3: oklch(0.909 0.004 69.61);
  --chart-4: oklch(0.932 0.003 69.621);
  --chart-5: oklch(0.993 0.003 69.622);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.012 76.892);
  --foreground: oklch(0.985 0.001 69.64);
  --muted: oklch(0.232 0.014 68.94);
  --muted-foreground: oklch(0.752 0.009 69.531);
  --popover: oklch(0.119 0.012 76.892);
  --popover-foreground: oklch(0.985 0.001 69.64);
  --card: oklch(0.137 0.014 76.448);
  --card-foreground: oklch(0.993 0 69.645);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.993 0.003 69.623);
  --primary-foreground: oklch(0.344 0.062 64.682);
  --secondary: oklch(0.205 0.001 69.622);
  --secondary-foreground: oklch(0.758 0.001 69.631);
  --accent: oklch(0.205 0.001 69.622);
  --accent-foreground: oklch(0.758 0.001 69.631);
  --destructive: oklch(0.621 0.212 28.181);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.993 0.003 69.623);
  --chart-1: oklch(0.993 0.003 69.623);
  --chart-2: oklch(0.205 0.001 69.622);
  --chart-3: oklch(0.205 0.001 69.622);
  --chart-4: oklch(0.238 0.001 69.619);
  --chart-5: oklch(0.993 0.003 69.622);
}