Subtle for shadcn/ui

Subtle is a shadcn/ui theme built around a deep orange primary color (#4d230f) with muted light orange accents (#d6ccc7). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#4d230f) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#ffffffwhite
#070503black
Foreground
#150a04black
#fdfcfcsnow
Card
#ffffffwhite
#070503black
Card foreground
#150a04black
#fdfcfcsnow
Popover
#ffffffwhite
#070503black
Popover foreground
#150a04black
#fdfcfcsnow
Primary
#4d230fmaroon
#4d230fmaroon
Primary foreground
#edbaa1burlywood
#edbaa1burlywood
Secondary
#d6ccc7lightgrey
#1a1919black
Secondary foreground
#3e332edarkslategray
#b3b2b2darkgray
Muted
#e9d7cegainsboro
#311f16black
Muted foreground
#574942darkolivegreen
#bdafa8darkgray
Accent
#d6ccc7lightgrey
#1a1919black
Accent foreground
#3e332edarkslategray
#b3b2b2darkgray
Destructive
#640c07maroon
#e81c11red
Destructive foreground
#f8a9a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4d230fmaroon
#4d230fmaroon

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.73:1AAA
Secondary button7.76:1AAA
Muted text6.17:1AA
Accent7.76:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button7.73:1AAA
Secondary button8.27:1AAA
Muted text7.35:1AAA
Accent8.27:1AAA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.159 0.024 52.215);
  --muted: oklch(0.891 0.023 48.45);
  --muted-foreground: oklch(0.417 0.023 48.154);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.159 0.024 52.215);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.159 0.024 52.215);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.312 0.07 45.316);
  --primary-foreground: oklch(0.829 0.069 47.874);
  --secondary: oklch(0.852 0.013 48.571);
  --secondary-foreground: oklch(0.33 0.018 48.152);
  --accent: oklch(0.852 0.013 48.571);
  --accent-foreground: oklch(0.33 0.018 48.152);
  --destructive: oklch(0.324 0.121 29.073);
  --destructive-foreground: oklch(0.81 0.094 22.685);
  --ring: oklch(0.312 0.07 45.316);
  --chart-1: oklch(0.312 0.07 45.316);
  --chart-2: oklch(0.852 0.013 48.571);
  --chart-3: oklch(0.852 0.013 48.571);
  --chart-4: oklch(0.876 0.011 48.604);
  --chart-5: oklch(0.313 0.073 45.027);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.007 53.249);
  --foreground: oklch(0.992 0.001 48.739);
  --muted: oklch(0.26 0.032 47.446);
  --muted-foreground: oklch(0.764 0.019 48.455);
  --popover: oklch(0.115 0.007 53.249);
  --popover-foreground: oklch(0.992 0.001 48.739);
  --card: oklch(0.115 0.007 53.249);
  --card-foreground: oklch(0.992 0.001 48.739);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.312 0.07 45.316);
  --primary-foreground: oklch(0.829 0.069 47.874);
  --secondary: oklch(0.216 0.001 48.715);
  --secondary-foreground: oklch(0.765 0.001 48.729);
  --accent: oklch(0.216 0.001 48.715);
  --accent-foreground: oklch(0.765 0.001 48.729);
  --destructive: oklch(0.594 0.232 29.414);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.312 0.07 45.316);
  --chart-1: oklch(0.312 0.07 45.316);
  --chart-2: oklch(0.216 0.001 48.715);
  --chart-3: oklch(0.216 0.001 48.715);
  --chart-4: oklch(0.248 0.001 48.712);
  --chart-5: oklch(0.313 0.073 45.027);
}