Respectful for shadcn/ui

Respectful is a shadcn/ui theme built around a vivid blue primary color (#0d63d3) with vivid green accents (#63d30d). The light mode uses a neutral background (#f6f9fd). Dark mode keeps the vivid blue primary (#0d63d3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f6f9fdghostwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#f6f9fdghostwhite
#000000black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f6f9fdghostwhite
#000000black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#0d63d3royalblue
#0d63d3royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d30d63mediumvioletred
#d30d63mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7d0dagainsboro
#2f1822black
Muted foreground
#5f4953dimgray
#b6a0a9darkgray
Accent
#63d30dlawngreen
#63d30dlawngreen
Accent foreground
#091301black
#091301black
Destructive
#b11610firebrick
#ea261fcrimson
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d63d3royalblue
#0d63d3royalblue

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button5.60:1AA
Secondary button5.23:1AA
Muted text5.61:1AA
Accent9.81:1AAA
Destructive6.57:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button5.60:1AA
Secondary button5.23:1AA
Muted text6.72:1AA
Accent9.81:1AAA
Destructive4.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 254.989);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.879 0.029 349.614);
  --muted-foreground: oklch(0.432 0.033 350.744);
  --popover: oklch(0.982 0.006 254.989);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.006 254.989);
  --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.522 0.188 258.395);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.561 0.22 5.058);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.77 0.23 136.855);
  --accent-foreground: oklch(0.171 0.042 130.851);
  --destructive: oklch(0.487 0.188 28.892);
  --destructive-foreground: oklch(0.979 0.009 19.732);
  --ring: oklch(0.522 0.188 258.395);
  --chart-1: oklch(0.522 0.188 258.395);
  --chart-2: oklch(0.561 0.22 5.058);
  --chart-3: oklch(0.77 0.23 136.855);
  --chart-4: oklch(0.589 0.232 5.196);
  --chart-5: oklch(0.524 0.193 258.67);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 254.96);
  --muted: oklch(0.246 0.04 352.928);
  --muted-foreground: oklch(0.727 0.029 349.798);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 254.96);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 254.96);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.522 0.188 258.395);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.561 0.22 5.058);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.77 0.23 136.855);
  --accent-foreground: oklch(0.171 0.042 130.851);
  --destructive: oklch(0.602 0.228 28.676);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.522 0.188 258.395);
  --chart-1: oklch(0.522 0.188 258.395);
  --chart-2: oklch(0.561 0.22 5.058);
  --chart-3: oklch(0.77 0.23 136.855);
  --chart-4: oklch(0.589 0.232 5.196);
  --chart-5: oklch(0.524 0.193 258.67);
}