Tenant for shadcn/ui

Tenant is a shadcn/ui theme built around a blue primary color (#76b7e0) with green accents (#b7e076). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the blue primary (#76b7e0) on a neutral background (#020608).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#020608black
Foreground
#010304black
#ffffffwhite
Card
#f7fbfdghostwhite
#020608black
Card foreground
#010304black
#ffffffwhite
Popover
#f7fbfdghostwhite
#020608black
Popover foreground
#010304black
#ffffffwhite
Primary
#76b7e0skyblue
#76b7e0skyblue
Primary foreground
#07141dblack
#07141dblack
Secondary
#e076b7orchid
#e076b7orchid
Secondary foreground
#1d0714black
#1d0714black
Muted
#e0dcdegainsboro
#231f22black
Muted foreground
#61515bdimgray
#ae9ea8darkgray
Accent
#b7e076darkkhaki
#b7e076darkkhaki
Accent foreground
#141d07black
#141d07black
Destructive
#5e0808maroon
#ed2626crimson
Destructive foreground
#f7a1a1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#76b7e0skyblue
#76b7e0skyblue

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button8.55:1AAA
Secondary button6.80:1AA
Muted text5.45:1AA
Accent11.52:1AAA
Destructive6.96:1AA
Dark mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button8.55:1AAA
Secondary button6.80:1AA
Muted text6.37:1AA
Accent11.52:1AAA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 234.583);
  --foreground: oklch(0.092 0.012 226.201);
  --muted: oklch(0.898 0.005 339.58);
  --muted-foreground: oklch(0.455 0.026 340.692);
  --popover: oklch(0.985 0.005 234.583);
  --popover-foreground: oklch(0.092 0.012 226.201);
  --card: oklch(0.985 0.005 234.583);
  --card-foreground: oklch(0.092 0.012 226.201);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.752 0.089 236.929);
  --primary-foreground: oklch(0.185 0.027 237.07);
  --secondary: oklch(0.705 0.152 343.888);
  --secondary-foreground: oklch(0.172 0.046 344.644);
  --accent: oklch(0.854 0.141 126.451);
  --accent-foreground: oklch(0.216 0.042 126.866);
  --destructive: oklch(0.31 0.118 27.731);
  --destructive-foreground: oklch(0.794 0.104 19.622);
  --ring: oklch(0.752 0.089 236.929);
  --chart-1: oklch(0.752 0.089 236.929);
  --chart-2: oklch(0.705 0.152 343.888);
  --chart-3: oklch(0.854 0.141 126.451);
  --chart-4: oklch(0.729 0.138 343.338);
  --chart-5: oklch(0.753 0.093 237.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.011 227.941);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.246 0.006 340.023);
  --muted-foreground: oklch(0.715 0.023 340.174);
  --popover: oklch(0.115 0.011 227.941);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.011 227.941);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.752 0.089 236.929);
  --primary-foreground: oklch(0.185 0.027 237.07);
  --secondary: oklch(0.705 0.152 343.888);
  --secondary-foreground: oklch(0.172 0.046 344.644);
  --accent: oklch(0.854 0.141 126.451);
  --accent-foreground: oklch(0.216 0.042 126.866);
  --destructive: oklch(0.609 0.23 27.59);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.752 0.089 236.929);
  --chart-1: oklch(0.752 0.089 236.929);
  --chart-2: oklch(0.705 0.152 343.888);
  --chart-3: oklch(0.854 0.141 126.451);
  --chart-4: oklch(0.729 0.138 343.338);
  --chart-5: oklch(0.753 0.093 237.086);
}