Pale for shadcn/ui

Pale is a shadcn/ui theme built around a muted light orange primary color (#eae4dc) with muted light blue accents (#dce2ea). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted light orange primary (#eae4dc) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#040301black
Foreground
#000000black
#ffffffwhite
Card
#fcfaf8snow
#070503black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfaf8snow
#070503black
Popover foreground
#000000black
#ffffffwhite
Primary
#eae4dcgainsboro
#eae4dcgainsboro
Primary foreground
#5c4d38darkolivegreen
#5c4d38darkolivegreen
Secondary
#dce2eagainsboro
#dce2eagainsboro
Secondary foreground
#38475cdarkslategray
#38475cdarkslategray
Muted
#f0f2f5whitesmoke
#0a0c0fblack
Muted foreground
#58616fdimgray
#909aa7darkgray
Accent
#dce2eagainsboro
#dce2eagainsboro
Accent foreground
#38475cdarkslategray
#38475cdarkslategray
Destructive
#a3360asaddlebrown
#f16027chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eae4dcgainsboro
#eae4dcgainsboro

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.19:1AAA
Primary button6.46:1AA
Secondary button7.23:1AAA
Muted text5.57:1AA
Accent7.23:1AAA
Destructive6.81:1AA
Dark mode
Text on background20.64:1AAA
Text on card20.29:1AAA
Primary button6.46:1AA
Secondary button7.23:1AAA
Muted text6.85:1AA
Accent7.23:1AAA
Destructive6.46:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 76.644);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.96 0.005 256.671);
  --muted-foreground: oklch(0.491 0.026 256.792);
  --popover: oklch(0.986 0.004 76.636);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.004 76.636);
  --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.921 0.012 76.587);
  --primary-foreground: oklch(0.429 0.038 75.784);
  --secondary: oklch(0.91 0.012 256.703);
  --secondary-foreground: oklch(0.394 0.04 256.844);
  --accent: oklch(0.91 0.012 256.703);
  --accent-foreground: oklch(0.394 0.04 256.844);
  --destructive: oklch(0.487 0.152 38.253);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.921 0.012 76.587);
  --chart-1: oklch(0.921 0.012 76.587);
  --chart-2: oklch(0.91 0.012 256.703);
  --chart-3: oklch(0.91 0.012 256.703);
  --chart-4: oklch(0.935 0.009 256.689);
  --chart-5: oklch(0.922 0.014 76.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.009 82.517);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.155 0.007 256.801);
  --muted-foreground: oklch(0.681 0.023 256.76);
  --popover: oklch(0.12 0.011 82.517);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.011 82.517);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.921 0.012 76.587);
  --primary-foreground: oklch(0.429 0.038 75.784);
  --secondary: oklch(0.91 0.012 256.703);
  --secondary-foreground: oklch(0.394 0.04 256.844);
  --accent: oklch(0.91 0.012 256.703);
  --accent-foreground: oklch(0.394 0.04 256.844);
  --destructive: oklch(0.669 0.191 39.725);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.921 0.012 76.587);
  --chart-1: oklch(0.921 0.012 76.587);
  --chart-2: oklch(0.91 0.012 256.703);
  --chart-3: oklch(0.91 0.012 256.703);
  --chart-4: oklch(0.935 0.009 256.689);
  --chart-5: oklch(0.922 0.014 76.578);
}