Dependable for shadcn/ui

Dependable is a shadcn/ui theme built around a deep violet primary color (#190a2e) with deep green accents (#0a2e19). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the deep violet primary (#190a2e) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#020203black
Foreground
#040109black
#f7f5fawhitesmoke
Card
#f9f7fdghostwhite
#020203black
Card foreground
#040109black
#f7f5fawhitesmoke
Popover
#f9f7fdghostwhite
#020203black
Popover foreground
#040109black
#f7f5fawhitesmoke
Primary
#190a2eblack
#190a2eblack
Primary foreground
#ad86e4mediumpurple
#ad86e4mediumpurple
Secondary
#2e190ablack
#2e190ablack
Secondary foreground
#e4ad86burlywood
#e4ad86burlywood
Muted
#e7e5e4gainsboro
#1b1918black
Muted foreground
#4b413adarkslategray
#c5bbb4silver
Accent
#0a2e19black
#0a2e19black
Accent foreground
#33d175mediumseagreen
#33d175mediumseagreen
Destructive
#cf3617firebrick
#e63c1aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#190a2eblack
#190a2eblack

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button6.49:1AA
Secondary button8.43:1AAA
Muted text7.91:1AAA
Accent7.43:1AAA
Destructive5.03:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button6.49:1AA
Secondary button8.43:1AAA
Muted text9.27:1AAA
Accent7.43:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 304.931);
  --foreground: oklch(0.094 0.032 306.894);
  --muted: oklch(0.924 0.003 58.317);
  --muted-foreground: oklch(0.383 0.018 57.69);
  --popover: oklch(0.98 0.008 304.931);
  --popover-foreground: oklch(0.094 0.032 306.894);
  --card: oklch(0.98 0.008 304.931);
  --card-foreground: oklch(0.094 0.032 306.894);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.192 0.068 299.039);
  --primary-foreground: oklch(0.695 0.138 302.146);
  --secondary: oklch(0.238 0.041 54.799);
  --secondary-foreground: oklch(0.789 0.082 56.74);
  --accent: oklch(0.268 0.056 154.205);
  --accent-foreground: oklch(0.76 0.182 152.352);
  --destructive: oklch(0.564 0.194 32.877);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.192 0.068 299.039);
  --chart-1: oklch(0.192 0.068 299.039);
  --chart-2: oklch(0.238 0.041 54.799);
  --chart-3: oklch(0.268 0.056 154.205);
  --chart-4: oklch(0.274 0.05 54.343);
  --chart-5: oklch(0.191 0.071 298.637);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 305.598);
  --foreground: oklch(0.973 0.007 304.951);
  --muted: oklch(0.216 0.004 58.081);
  --muted-foreground: oklch(0.799 0.015 58.098);
  --popover: oklch(0.086 0.009 305.598);
  --popover-foreground: oklch(0.973 0.007 304.951);
  --card: oklch(0.086 0.009 305.598);
  --card-foreground: oklch(0.973 0.007 304.951);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.192 0.068 299.039);
  --primary-foreground: oklch(0.695 0.138 302.146);
  --secondary: oklch(0.238 0.041 54.799);
  --secondary-foreground: oklch(0.789 0.082 56.74);
  --accent: oklch(0.268 0.056 154.205);
  --accent-foreground: oklch(0.76 0.182 152.352);
  --destructive: oklch(0.609 0.211 32.838);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.192 0.068 299.039);
  --chart-1: oklch(0.192 0.068 299.039);
  --chart-2: oklch(0.238 0.041 54.799);
  --chart-3: oklch(0.268 0.056 154.205);
  --chart-4: oklch(0.274 0.05 54.343);
  --chart-5: oklch(0.191 0.071 298.637);
}