Subtle for shadcn/ui

Subtle is a shadcn/ui theme built around a red primary color (#d4a69b) with cyan accents (#9bc9d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#d4a69b) on a neutral background (#080302).

Color palette

TokenLightDark
Background
#ffffffwhite
#080302black
Foreground
#0d0402black
#fcf9f8snow
Card
#ffffffwhite
#080302black
Card foreground
#0d0402black
#fcf9f8snow
Popover
#ffffffwhite
#080302black
Popover foreground
#0d0402black
#fcf9f8snow
Primary
#d4a69btan
#d4a69btan
Primary foreground
#2b1712black
#2b1712black
Secondary
#9bc9d4lightsteelblue
#9bc9d4lightsteelblue
Secondary foreground
#12262bblack
#12262bblack
Muted
#eaeff0whitesmoke
#0f1415black
Muted foreground
#435256darkslategray
#a9b8bcdarkgray
Accent
#9bc9d4lightsteelblue
#9bc9d4lightsteelblue
Accent foreground
#12262bblack
#12262bblack
Destructive
#7e1f02maroon
#f13b04orangered
Destructive foreground
#fec5b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d4a69btan
#d4a69btan

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button7.91:1AAA
Secondary button8.72:1AAA
Muted text7.01:1AAA
Accent8.72:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button7.91:1AAA
Secondary button8.72:1AAA
Muted text9.10:1AAA
Accent8.72:1AAA
Destructive3.90:1AA Large

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.125 0.023 44.187);
  --muted: oklch(0.949 0.005 214.331);
  --muted-foreground: oklch(0.427 0.019 214.556);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.023 44.187);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.023 44.187);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.765 0.057 34.41);
  --primary-foreground: oklch(0.231 0.033 34.769);
  --secondary: oklch(0.806 0.051 214.743);
  --secondary-foreground: oklch(0.254 0.027 215.613);
  --accent: oklch(0.806 0.051 214.743);
  --accent-foreground: oklch(0.254 0.027 215.613);
  --destructive: oklch(0.393 0.134 35.528);
  --destructive-foreground: oklch(0.87 0.07 37.597);
  --ring: oklch(0.765 0.057 34.41);
  --chart-1: oklch(0.765 0.057 34.41);
  --chart-2: oklch(0.806 0.051 214.743);
  --chart-3: oklch(0.806 0.051 214.743);
  --chart-4: oklch(0.827 0.045 214.649);
  --chart-5: oklch(0.765 0.061 34.433);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.014 40.875);
  --foreground: oklch(0.984 0.003 34.311);
  --muted: oklch(0.185 0.007 214.514);
  --muted-foreground: oklch(0.772 0.017 214.396);
  --popover: oklch(0.11 0.014 40.875);
  --popover-foreground: oklch(0.984 0.003 34.311);
  --card: oklch(0.11 0.014 40.875);
  --card-foreground: oklch(0.984 0.003 34.311);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.765 0.057 34.41);
  --primary-foreground: oklch(0.231 0.033 34.769);
  --secondary: oklch(0.806 0.051 214.743);
  --secondary-foreground: oklch(0.254 0.027 215.613);
  --accent: oklch(0.806 0.051 214.743);
  --accent-foreground: oklch(0.254 0.027 215.613);
  --destructive: oklch(0.628 0.224 34.14);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.057 34.41);
  --chart-1: oklch(0.765 0.057 34.41);
  --chart-2: oklch(0.806 0.051 214.743);
  --chart-3: oklch(0.806 0.051 214.743);
  --chart-4: oklch(0.827 0.045 214.649);
  --chart-5: oklch(0.765 0.061 34.433);
}