Subtle for shadcn/ui

Subtle is a shadcn/ui theme built around a vivid orange primary color (#c33a04) with vivid yellow accents (#c39a04). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#c33a04) on an orange-tinted background (#0b0604).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0604black
Foreground
#110704black
#fdfcfcsnow
Card
#ffffffwhite
#0b0604black
Card foreground
#110704black
#fdfcfcsnow
Popover
#ffffffwhite
#0b0604black
Popover foreground
#110704black
#fdfcfcsnow
Primary
#c33a04firebrick
#c33a04firebrick
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c3042dcrimson
#c3042dcrimson
Secondary foreground
#fffafbsnow
#fffafbsnow
Muted
#e5dcdegainsboro
#231a1cblack
Muted foreground
#423e3fdarkslategray
#c1bdbesilver
Accent
#c39a04darkgoldenrod
#c39a04darkgoldenrod
Accent foreground
#000000black
#000000black
Destructive
#820f0dmaroon
#da1916crimson
Destructive foreground
#f9c8c7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c33a04firebrick
#c33a04firebrick

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button5.34:1AA
Secondary button6.02:1AA
Muted text7.83:1AAA
Accent7.91:1AAA
Destructive6.98:1AA
Dark mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button5.34:1AA
Secondary button6.02:1AA
Muted text9.12:1AAA
Accent7.91:1AAA
Destructive5.07: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.143 0.021 49.59);
  --muted: oklch(0.902 0.01 2.382);
  --muted-foreground: oklch(0.367 0.005 2.471);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.021 49.59);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.021 49.59);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.547 0.181 36.984);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.207 21.427);
  --secondary-foreground: oklch(0.989 0.005 2.217);
  --accent: oklch(0.703 0.143 89.198);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.389 0.148 28.248);
  --destructive-foreground: oklch(0.876 0.056 19.42);
  --ring: oklch(0.547 0.181 36.984);
  --chart-1: oklch(0.547 0.181 36.984);
  --chart-2: oklch(0.517 0.207 21.427);
  --chart-3: oklch(0.703 0.143 89.198);
  --chart-4: oklch(0.547 0.219 21.618);
  --chart-5: oklch(0.551 0.185 36.652);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.013 49.401);
  --foreground: oklch(0.992 0.001 43.125);
  --muted: oklch(0.23 0.015 3.812);
  --muted-foreground: oklch(0.803 0.004 2.219);
  --popover: oklch(0.13 0.013 49.401);
  --popover-foreground: oklch(0.992 0.001 43.125);
  --card: oklch(0.13 0.013 49.401);
  --card-foreground: oklch(0.992 0.001 43.125);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.547 0.181 36.984);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.517 0.207 21.427);
  --secondary-foreground: oklch(0.989 0.005 2.217);
  --accent: oklch(0.703 0.143 89.198);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.566 0.221 28.644);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.547 0.181 36.984);
  --chart-1: oklch(0.547 0.181 36.984);
  --chart-2: oklch(0.517 0.207 21.427);
  --chart-3: oklch(0.703 0.143 89.198);
  --chart-4: oklch(0.547 0.219 21.618);
  --chart-5: oklch(0.551 0.185 36.652);
}