Reluctance for shadcn/ui

Reluctance is a shadcn/ui theme built around a muted indigo primary color (#828099) with muted green accents (#809982). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#828099) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#040307black
Foreground
#010104black
#fcfcfdwhite
Card
#f8f7fdghostwhite
#06050ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfbfeghostwhite
#040307black
Popover foreground
#010104black
#fcfcfdwhite
Primary
#828099lightslategray
#828099lightslategray
Primary foreground
#000000black
#000000black
Secondary
#998280gray
#998280gray
Secondary foreground
#000000black
#000000black
Muted
#f2e9e8linen
#170e0dblack
Muted foreground
#644c4adimgray
#b59e9brosybrown
Accent
#809982gray
#809982gray
Accent foreground
#000000black
#000000black
Destructive
#e02606orangered
#f42a06orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#828099lightslategray
#828099lightslategray

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card19.68:1AAA
Primary button5.47:1AA
Secondary button5.86:1AA
Muted text6.59:1AA
Accent6.78:1AA
Destructive4.72:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.32:1AAA
Primary button5.47:1AA
Secondary button5.86:1AA
Muted text7.54:1AAA
Accent6.78:1AA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 290.939);
  --foreground: oklch(0.069 0.024 286.344);
  --muted: oklch(0.941 0.01 25.074);
  --muted-foreground: oklch(0.441 0.032 25.751);
  --popover: oklch(0.989 0.004 290.939);
  --popover-foreground: oklch(0.069 0.024 286.344);
  --card: oklch(0.978 0.008 290.862);
  --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.61 0.038 289.808);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.627 0.028 25.419);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.656 0.044 147.82);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.583 0.221 31.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.61 0.038 289.808);
  --chart-1: oklch(0.61 0.038 289.808);
  --chart-2: oklch(0.627 0.028 25.419);
  --chart-3: oklch(0.656 0.044 147.82);
  --chart-4: oklch(0.653 0.026 25.363);
  --chart-5: oklch(0.601 0.049 289.435);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.013 289.622);
  --foreground: oklch(0.991 0.002 290.971);
  --muted: oklch(0.175 0.015 25.926);
  --muted-foreground: oklch(0.719 0.028 25.354);
  --popover: oklch(0.104 0.013 289.622);
  --popover-foreground: oklch(0.991 0.002 290.971);
  --card: oklch(0.119 0.014 289.621);
  --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.61 0.038 289.808);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.627 0.028 25.419);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.656 0.044 147.82);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.621 0.236 31.449);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.61 0.038 289.808);
  --chart-1: oklch(0.61 0.038 289.808);
  --chart-2: oklch(0.627 0.028 25.419);
  --chart-3: oklch(0.656 0.044 147.82);
  --chart-4: oklch(0.653 0.026 25.363);
  --chart-5: oklch(0.601 0.049 289.435);
}