Tenant for shadcn/ui

Tenant is a shadcn/ui theme built around a neutral gray primary color (#909d9d) with muted light teal accents (#cedede). The light mode uses a neutral background (#fbfefe). Dark mode keeps the neutral gray primary (#909d9d) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#fbfefewhite
#030707black
Foreground
#051414black
#ffffffwhite
Card
#fbfefewhite
#030707black
Card foreground
#051414black
#ffffffwhite
Popover
#fbfefewhite
#030707black
Popover foreground
#051414black
#ffffffwhite
Primary
#909d9ddarkgray
#909d9ddarkgray
Primary foreground
#000000black
#000000black
Secondary
#cededegainsboro
#141515black
Secondary foreground
#324849darkslategray
#aab1b1darkgray
Muted
#d7e5e5gainsboro
#1a2828darkslategray
Muted foreground
#435656darkslategray
#a9bcbcsilver
Accent
#cededegainsboro
#141515black
Accent foreground
#324849darkslategray
#aab1b1darkgray
Destructive
#b20d01firebrick
#fe1201red
Destructive foreground
#ffe7e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#909d9ddarkgray
#909d9ddarkgray

Contrast

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

Light mode
Text on background18.53:1AAA
Text on card18.53:1AAA
Primary button7.46:1AAA
Secondary button6.99:1AA
Muted text5.99:1AA
Accent6.99:1AA
Destructive6.06:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button7.46:1AAA
Secondary button8.38:1AAA
Muted text7.68:1AAA
Accent8.38:1AAA
Destructive3.96: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.994 0.003 198.316);
  --foreground: oklch(0.178 0.022 196.775);
  --muted: oklch(0.911 0.015 198.114);
  --muted-foreground: oklch(0.437 0.024 197.593);
  --popover: oklch(0.994 0.003 198.316);
  --popover-foreground: oklch(0.178 0.022 196.775);
  --card: oklch(0.994 0.003 198.316);
  --card-foreground: oklch(0.178 0.022 196.775);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.685 0.014 198.059);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.888 0.016 198.09);
  --secondary-foreground: oklch(0.385 0.028 197.364);
  --accent: oklch(0.888 0.016 198.09);
  --accent-foreground: oklch(0.385 0.028 197.364);
  --destructive: oklch(0.483 0.193 30.011);
  --destructive-foreground: oklch(0.947 0.026 22.539);
  --ring: oklch(0.685 0.014 198.059);
  --chart-1: oklch(0.685 0.014 198.059);
  --chart-2: oklch(0.888 0.016 198.09);
  --chart-3: oklch(0.888 0.016 198.09);
  --chart-4: oklch(0.909 0.013 198.146);
  --chart-5: oklch(0.69 0.021 197.923);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.01 197.032);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.265 0.019 197.364);
  --muted-foreground: oklch(0.781 0.022 197.961);
  --popover: oklch(0.122 0.01 197.032);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.01 197.032);
  --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.685 0.014 198.059);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.195 0.003 198.169);
  --secondary-foreground: oklch(0.754 0.007 198.219);
  --accent: oklch(0.195 0.003 198.169);
  --accent-foreground: oklch(0.754 0.007 198.219);
  --destructive: oklch(0.629 0.253 29.782);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.685 0.014 198.059);
  --chart-1: oklch(0.685 0.014 198.059);
  --chart-2: oklch(0.195 0.003 198.169);
  --chart-3: oklch(0.195 0.003 198.169);
  --chart-4: oklch(0.229 0.003 198.146);
  --chart-5: oklch(0.69 0.021 197.923);
}