Respect for shadcn/ui

Respect is a shadcn/ui theme built around a muted green primary color (#437a5a) with muted light green accents (#cddad3). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the muted green primary (#437a5a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#000000black
Foreground
#000000black
#f6f9f7whitesmoke
Card
#f2fcf7mintcream
#030303black
Card foreground
#000000black
#f9fbfamintcream
Popover
#f7fdf9mintcream
#000000black
Popover foreground
#000000black
#f6f9f7whitesmoke
Primary
#437a5aseagreen
#437a5aseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cddad3lightgrey
#131b16black
Secondary foreground
#324339darkslategray
#a3bdaedarkgray
Muted
#e0e6e2gainsboro
#191f1cblack
Muted foreground
#486052darkslategray
#9fb7a9darkgray
Accent
#cddad3lightgrey
#131b16black
Accent foreground
#324339darkslategray
#a3bdaedarkgray
Destructive
#862409saddlebrown
#eb3f0forangered
Destructive foreground
#fbd1c5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#437a5aseagreen
#437a5aseagreen

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.09:1AAA
Primary button5.05:1AA
Secondary button7.29:1AAA
Muted text5.40:1AA
Accent7.29:1AAA
Destructive6.61:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.89:1AAA
Primary button5.05:1AA
Secondary button8.75:1AAA
Muted text7.82:1AAA
Accent8.75:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 160.807);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.008 160.803);
  --muted-foreground: oklch(0.465 0.036 159.035);
  --popover: oklch(0.989 0.009 160.807);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.013 160.701);
  --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.531 0.078 156.856);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.877 0.017 160.54);
  --secondary-foreground: oklch(0.366 0.029 159.017);
  --accent: oklch(0.877 0.017 160.54);
  --accent-foreground: oklch(0.366 0.029 159.017);
  --destructive: oklch(0.415 0.138 34.948);
  --destructive-foreground: oklch(0.894 0.05 35.954);
  --ring: oklch(0.531 0.078 156.856);
  --chart-1: oklch(0.531 0.078 156.856);
  --chart-2: oklch(0.877 0.017 160.54);
  --chart-3: oklch(0.877 0.017 160.54);
  --chart-4: oklch(0.899 0.014 160.636);
  --chart-5: oklch(0.537 0.085 156.432);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.003 160.936);
  --muted: oklch(0.232 0.011 159.806);
  --muted-foreground: oklch(0.756 0.032 159.964);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.003 160.936);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.002 160.962);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.531 0.078 156.856);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.211 0.014 159.377);
  --secondary-foreground: oklch(0.774 0.035 159.917);
  --accent: oklch(0.211 0.014 159.377);
  --accent-foreground: oklch(0.774 0.035 159.917);
  --destructive: oklch(0.621 0.215 34.349);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.078 156.856);
  --chart-1: oklch(0.531 0.078 156.856);
  --chart-2: oklch(0.211 0.014 159.377);
  --chart-3: oklch(0.211 0.014 159.377);
  --chart-4: oklch(0.247 0.018 159.205);
  --chart-5: oklch(0.537 0.085 156.432);
}