Dependable for shadcn/ui

Dependable is a shadcn/ui theme built around a muted purple primary color (#bc85b9) with muted teal accents (#85b9bc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#bc85b9) on a neutral background (#080307).

Color palette

TokenLightDark
Background
#ffffffwhite
#080307black
Foreground
#150514black
#f9f6f9whitesmoke
Card
#ffffffwhite
#080307black
Card foreground
#150514black
#f9f6f9whitesmoke
Popover
#ffffffwhite
#080307black
Popover foreground
#150514black
#f9f6f9whitesmoke
Primary
#bc85b9rosybrown
#bc85b9rosybrown
Primary foreground
#0a050ablack
#0a050ablack
Secondary
#b9bc85darkkhaki
#b9bc85darkkhaki
Secondary foreground
#0a0a05black
#0a0a05black
Muted
#e5e6d0gainsboro
#2e2f19darkslategray
Muted foreground
#6d6e5edimgray
#a0a191darkgray
Accent
#85b9bcmediumaquamarine
#85b9bcmediumaquamarine
Accent foreground
#050a0ablack
#050a0ablack
Destructive
#ca4312chocolate
#ee6a3atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bc85b9rosybrown
#bc85b9rosybrown

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button6.94:1AA
Secondary button10.01:1AAA
Muted text4.10:1AA Large
Accent9.19:1AAA
Destructive4.87:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button6.94:1AA
Secondary button10.01:1AAA
Muted text5.22:1AA
Accent9.19:1AAA
Destructive6.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.042 329.192);
  --muted: oklch(0.919 0.029 109.294);
  --muted-foreground: oklch(0.533 0.025 109.551);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.042 329.192);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.042 329.192);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.689 0.097 328.254);
  --primary-foreground: oklch(0.128 0.014 327.773);
  --secondary: oklch(0.78 0.073 110.385);
  --secondary-foreground: oklch(0.142 0.011 109.749);
  --accent: oklch(0.751 0.055 200.161);
  --accent-foreground: oklch(0.138 0.008 199.656);
  --destructive: oklch(0.569 0.18 37.463);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.097 328.254);
  --chart-1: oklch(0.689 0.097 328.254);
  --chart-2: oklch(0.78 0.073 110.385);
  --chart-3: oklch(0.751 0.055 200.161);
  --chart-4: oklch(0.798 0.067 110.22);
  --chart-5: oklch(0.688 0.107 328.37);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.022 328.279);
  --foreground: oklch(0.976 0.005 327.081);
  --muted: oklch(0.297 0.037 110.903);
  --muted-foreground: oklch(0.704 0.023 109.311);
  --popover: oklch(0.109 0.022 328.279);
  --popover-foreground: oklch(0.976 0.005 327.081);
  --card: oklch(0.109 0.022 328.279);
  --card-foreground: oklch(0.976 0.005 327.081);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.689 0.097 328.254);
  --primary-foreground: oklch(0.128 0.014 327.773);
  --secondary: oklch(0.78 0.073 110.385);
  --secondary-foreground: oklch(0.142 0.011 109.749);
  --accent: oklch(0.751 0.055 200.161);
  --accent-foreground: oklch(0.138 0.008 199.656);
  --destructive: oklch(0.678 0.175 39.59);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.689 0.097 328.254);
  --chart-1: oklch(0.689 0.097 328.254);
  --chart-2: oklch(0.78 0.073 110.385);
  --chart-3: oklch(0.751 0.055 200.161);
  --chart-4: oklch(0.798 0.067 110.22);
  --chart-5: oklch(0.688 0.107 328.37);
}