Orange for shadcn/ui

Orange is a shadcn/ui theme built around a near-black primary color (#030500) with near-black accents (#020005). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-black primary (#030500) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#050802black
#fafcf8snow
Card
#fdfefbwhite
#000000black
Card foreground
#050802black
#fafcf8snow
Popover
#fdfefbwhite
#000000black
Popover foreground
#050802black
#fafcf8snow
Primary
#030500black
#030500black
Primary foreground
#6fcf02lawngreen
#6fcf02lawngreen
Secondary
#020005black
#020005black
Secondary foreground
#cb9ffeplum
#cb9ffeplum
Muted
#ddd9e3gainsboro
#211c26black
Muted foreground
#56525bdimgray
#a8a4addarkgray
Accent
#020005black
#020005black
Accent foreground
#cb9ffeplum
#cb9ffeplum
Destructive
#991605darkred
#f83a20orangered
Destructive foreground
#fed8d2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030500black
#030500black

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 button10.33:1AAA
Secondary button9.87:1AAA
Muted text5.47:1AA
Accent9.87:1AAA
Destructive6.44:1AA
Dark mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button10.33:1AAA
Secondary button9.87:1AAA
Muted text6.82:1AA
Accent9.87:1AAA
Destructive3.74: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.995 0.004 127.166);
  --foreground: oklch(0.128 0.021 126.017);
  --muted: oklch(0.891 0.015 306.902);
  --muted-foreground: oklch(0.447 0.015 306.706);
  --popover: oklch(0.995 0.004 127.166);
  --popover-foreground: oklch(0.128 0.021 126.017);
  --card: oklch(0.995 0.004 127.166);
  --card-foreground: oklch(0.128 0.021 126.017);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.107 0.026 125.499);
  --primary-foreground: oklch(0.765 0.221 134.625);
  --secondary: oklch(0.07 0.034 310.298);
  --secondary-foreground: oklch(0.778 0.139 304.845);
  --accent: oklch(0.07 0.034 310.298);
  --accent-foreground: oklch(0.778 0.139 304.845);
  --destructive: oklch(0.439 0.167 30.986);
  --destructive-foreground: oklch(0.911 0.043 26.829);
  --ring: oklch(0.107 0.026 125.499);
  --chart-1: oklch(0.107 0.026 125.499);
  --chart-2: oklch(0.07 0.034 310.298);
  --chart-3: oklch(0.07 0.034 310.298);
  --chart-4: oklch(0.113 0.056 306.988);
  --chart-5: oklch(0.107 0.027 125.458);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.005 127.172);
  --muted: oklch(0.236 0.021 306.009);
  --muted-foreground: oklch(0.725 0.013 306.89);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.005 127.172);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.988 0.005 127.172);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.107 0.026 125.499);
  --primary-foreground: oklch(0.765 0.221 134.625);
  --secondary: oklch(0.07 0.034 310.298);
  --secondary-foreground: oklch(0.778 0.139 304.845);
  --accent: oklch(0.07 0.034 310.298);
  --accent-foreground: oklch(0.778 0.139 304.845);
  --destructive: oklch(0.64 0.229 31.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.107 0.026 125.499);
  --chart-1: oklch(0.107 0.026 125.499);
  --chart-2: oklch(0.07 0.034 310.298);
  --chart-3: oklch(0.07 0.034 310.298);
  --chart-4: oklch(0.113 0.056 306.988);
  --chart-5: oklch(0.107 0.027 125.458);
}