Respectful for shadcn/ui

Respectful is a shadcn/ui theme built around a vivid green primary color (#d6f986) with vivid violet accents (#a886f9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#d6f986) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#090c03black
#fbfcf8snow
Card
#ffffffwhite
#000000black
Card foreground
#090c03black
#fbfcf8snow
Popover
#ffffffwhite
#000000black
Popover foreground
#090c03black
#fbfcf8snow
Primary
#d6f986khaki
#d6f986khaki
Primary foreground
#344904darkgreen
#344904darkgreen
Secondary
#a886f9mediumpurple
#a886f9mediumpurple
Secondary foreground
#180449midnightblue
#180449midnightblue
Muted
#e4e2e9gainsboro
#18161dblack
Muted foreground
#5c556ddimgray
#9992aadarkgray
Accent
#a886f9mediumpurple
#a886f9mediumpurple
Accent foreground
#180449midnightblue
#180449midnightblue
Destructive
#993600saddlebrown
#ff7a33coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d6f986khaki
#d6f986khaki

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button8.43:1AAA
Secondary button6.45:1AA
Muted text5.50:1AA
Accent6.45:1AA
Destructive7.30:1AAA
Dark mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button8.43:1AAA
Secondary button6.45:1AA
Muted text6.00:1AA
Accent6.45:1AA
Destructive8.10:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.021 120.206);
  --muted: oklch(0.917 0.009 299.87);
  --muted-foreground: oklch(0.466 0.038 298.647);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.021 120.206);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.021 120.206);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.932 0.146 122.968);
  --primary-foreground: oklch(0.373 0.092 126.246);
  --secondary: oklch(0.701 0.165 295.663);
  --secondary-foreground: oklch(0.211 0.114 285.515);
  --accent: oklch(0.701 0.165 295.663);
  --accent-foreground: oklch(0.211 0.114 285.515);
  --destructive: oklch(0.469 0.143 41.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.932 0.146 122.968);
  --chart-1: oklch(0.932 0.146 122.968);
  --chart-2: oklch(0.701 0.165 295.663);
  --chart-3: oklch(0.701 0.165 295.663);
  --chart-4: oklch(0.735 0.145 296.48);
  --chart-5: oklch(0.936 0.151 123.055);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.005 120.12);
  --muted: oklch(0.206 0.013 298.945);
  --muted-foreground: oklch(0.675 0.035 299.169);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.005 120.12);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.988 0.005 120.12);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.932 0.146 122.968);
  --primary-foreground: oklch(0.373 0.092 126.246);
  --secondary: oklch(0.701 0.165 295.663);
  --secondary-foreground: oklch(0.211 0.114 285.515);
  --accent: oklch(0.701 0.165 295.663);
  --accent-foreground: oklch(0.211 0.114 285.515);
  --destructive: oklch(0.726 0.181 45.47);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.932 0.146 122.968);
  --chart-1: oklch(0.932 0.146 122.968);
  --chart-2: oklch(0.701 0.165 295.663);
  --chart-3: oklch(0.701 0.165 295.663);
  --chart-4: oklch(0.735 0.145 296.48);
  --chart-5: oklch(0.936 0.151 123.055);
}