Respectful for shadcn/ui

Respectful is a shadcn/ui theme built around a vivid blue primary color (#6693f4) with vivid green accents (#93f466). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the vivid blue primary (#6693f4) on a blue-tinted background (#05080f).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#05080fblack
Foreground
#030917black
#f4f6fawhitesmoke
Card
#f7f9fdghostwhite
#05080fblack
Card foreground
#030917black
#f4f6fawhitesmoke
Popover
#f7f9fdghostwhite
#05080fblack
Popover foreground
#030917black
#f4f6fawhitesmoke
Primary
#6693f4cornflowerblue
#6693f4cornflowerblue
Primary foreground
#030e26black
#030e26black
Secondary
#f46693palevioletred
#f46693palevioletred
Secondary foreground
#26030eblack
#26030eblack
Muted
#e8d4dagainsboro
#2b171dblack
Muted foreground
#50494bdarkslategray
#b6afb1darkgray
Accent
#93f466lightgreen
#93f466lightgreen
Accent foreground
#0e2603black
#0e2603black
Destructive
#b91313firebrick
#e21818crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6693f4cornflowerblue
#6693f4cornflowerblue

Contrast

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

Light mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button6.46:1AA
Secondary button6.53:1AA
Muted text6.18:1AA
Accent11.89:1AAA
Destructive6.64:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.49:1AAA
Primary button6.46:1AA
Secondary button6.53:1AA
Muted text7.84:1AAA
Accent11.89:1AAA
Destructive4.79:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 265.976);
  --foreground: oklch(0.14 0.034 258.203);
  --muted: oklch(0.887 0.024 356.394);
  --muted-foreground: oklch(0.414 0.009 356.218);
  --popover: oklch(0.981 0.007 265.976);
  --popover-foreground: oklch(0.14 0.034 258.203);
  --card: oklch(0.981 0.007 265.976);
  --card-foreground: oklch(0.14 0.034 258.203);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.677 0.152 264.012);
  --primary-foreground: oklch(0.169 0.054 260.503);
  --secondary: oklch(0.7 0.178 3.111);
  --secondary-foreground: oklch(0.18 0.063 4.673);
  --accent: oklch(0.879 0.2 136.98);
  --accent-foreground: oklch(0.24 0.067 136.966);
  --destructive: oklch(0.5 0.195 28.183);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.152 264.012);
  --chart-1: oklch(0.677 0.152 264.012);
  --chart-2: oklch(0.7 0.178 3.111);
  --chart-3: oklch(0.879 0.2 136.98);
  --chart-4: oklch(0.723 0.162 2.017);
  --chart-5: oklch(0.675 0.157 263.929);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.018 260.817);
  --foreground: oklch(0.974 0.006 265.98);
  --muted: oklch(0.235 0.035 359.68);
  --muted-foreground: oklch(0.761 0.007 355.898);
  --popover: oklch(0.135 0.018 260.817);
  --popover-foreground: oklch(0.974 0.006 265.98);
  --card: oklch(0.135 0.018 260.817);
  --card-foreground: oklch(0.974 0.006 265.98);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.677 0.152 264.012);
  --primary-foreground: oklch(0.169 0.054 260.503);
  --secondary: oklch(0.7 0.178 3.111);
  --secondary-foreground: oklch(0.18 0.063 4.673);
  --accent: oklch(0.879 0.2 136.98);
  --accent-foreground: oklch(0.24 0.067 136.966);
  --destructive: oklch(0.58 0.228 28.328);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.152 264.012);
  --chart-1: oklch(0.677 0.152 264.012);
  --chart-2: oklch(0.7 0.178 3.111);
  --chart-3: oklch(0.879 0.2 136.98);
  --chart-4: oklch(0.723 0.162 2.017);
  --chart-5: oklch(0.675 0.157 263.929);
}