Dark Orange for shadcn/ui

Dark Orange is a shadcn/ui theme built around a violet primary color (#baa0da) with green accents (#c0daa0). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the violet primary (#baa0da) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#000000black
Foreground
#07030cblack
#ffffffwhite
Card
#fcfcfdwhite
#000000black
Card foreground
#07030cblack
#ffffffwhite
Popover
#fcfcfdwhite
#000000black
Popover foreground
#07030cblack
#ffffffwhite
Primary
#baa0daplum
#baa0daplum
Primary foreground
#221433midnightblue
#221433midnightblue
Secondary
#c0daa0silver
#c0daa0silver
Secondary foreground
#253314darkgreen
#253314darkgreen
Muted
#f3f7edwhitesmoke
#0d1208black
Muted foreground
#4f534bdarkslategray
#b0b4acdarkgray
Accent
#c0daa0silver
#c0daa0silver
Accent foreground
#253314darkgreen
#253314darkgreen
Destructive
#8e1601darkred
#fe4e2ftomato
Destructive foreground
#ffcbc2pink
#ffffffwhite
Border
#eae9edlavender
#211e24black
Input
#eae9edlavender
#211e24black
Ring
#baa0daplum
#baa0daplum

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.47:1AAA
Secondary button8.80:1AAA
Muted text7.25:1AAA
Accent8.80:1AAA
Destructive6.43:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.47:1AAA
Secondary button8.80:1AAA
Muted text9.01:1AAA
Accent8.80:1AAA
Destructive3.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 306.396);
  --foreground: oklch(0.115 0.027 307.584);
  --muted: oklch(0.971 0.014 126.618);
  --muted-foreground: oklch(0.436 0.013 126.829);
  --popover: oklch(0.991 0.002 306.396);
  --popover-foreground: oklch(0.115 0.027 307.584);
  --card: oklch(0.991 0.002 306.396);
  --card-foreground: oklch(0.115 0.027 307.584);
  --border: oklch(0.935 0.006 306.349);
  --input: oklch(0.935 0.006 306.349);
  --primary: oklch(0.748 0.087 304.927);
  --primary-foreground: oklch(0.228 0.061 302.651);
  --secondary: oklch(0.854 0.083 127.743);
  --secondary-foreground: oklch(0.301 0.055 129.244);
  --accent: oklch(0.854 0.083 127.743);
  --accent-foreground: oklch(0.301 0.055 129.244);
  --destructive: oklch(0.417 0.157 32.092);
  --destructive-foreground: oklch(0.885 0.06 29.865);
  --ring: oklch(0.748 0.087 304.927);
  --chart-1: oklch(0.748 0.087 304.927);
  --chart-2: oklch(0.854 0.083 127.743);
  --chart-3: oklch(0.854 0.083 127.743);
  --chart-4: oklch(0.871 0.073 127.555);
  --chart-5: oklch(0.745 0.093 304.813);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.173 0.022 127.883);
  --muted-foreground: oklch(0.764 0.012 126.627);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.241 0.013 305.728);
  --input: oklch(0.241 0.013 305.728);
  --primary: oklch(0.748 0.087 304.927);
  --primary-foreground: oklch(0.228 0.061 302.651);
  --secondary: oklch(0.854 0.083 127.743);
  --secondary-foreground: oklch(0.301 0.055 129.244);
  --accent: oklch(0.854 0.083 127.743);
  --accent-foreground: oklch(0.301 0.055 129.244);
  --destructive: oklch(0.669 0.217 32.381);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.087 304.927);
  --chart-1: oklch(0.748 0.087 304.927);
  --chart-2: oklch(0.854 0.083 127.743);
  --chart-3: oklch(0.854 0.083 127.743);
  --chart-4: oklch(0.871 0.073 127.555);
  --chart-5: oklch(0.745 0.093 304.813);
}