Orange for shadcn/ui

Orange is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0c0404).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0c0404black
Foreground
#0d0303black
#faf4f4whitesmoke
Card
#fdf7f7snow
#100505black
Card foreground
#080202black
#fcf8f8snow
Popover
#fdf7f7snow
#100505black
Popover foreground
#080202black
#fcf8f8snow
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#f2e3e3mistyrose
#1c0d0dblack
Muted foreground
#584141darkslategray
#bea7a7darkgray
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#d44502orangered
#fd6d2btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.41:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text7.52:1AAA
Accent12.63:1AAA
Destructive4.52:1AA
Dark mode
Text on background18.70:1AAA
Text on card19.07:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text8.33:1AAA
Accent12.63:1AAA
Destructive7.41:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.212);
  --foreground: oklch(0.117 0.024 21.496);
  --muted: oklch(0.928 0.016 17.447);
  --muted-foreground: oklch(0.4 0.032 18.584);
  --popover: oklch(0.98 0.007 17.268);
  --popover-foreground: oklch(0.102 0.021 21.445);
  --card: oklch(0.98 0.007 17.268);
  --card-foreground: oklch(0.102 0.021 21.445);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.588 0.19 38.463);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.019 20.328);
  --foreground: oklch(0.973 0.006 17.264);
  --muted: oklch(0.181 0.025 19.851);
  --muted-foreground: oklch(0.748 0.027 17.767);
  --popover: oklch(0.133 0.022 20.498);
  --popover-foreground: oklch(0.982 0.004 17.228);
  --card: oklch(0.133 0.022 20.498);
  --card-foreground: oklch(0.982 0.004 17.228);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.704 0.191 42.204);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}