Tender for shadcn/ui

Tender is a shadcn/ui theme built around a muted deep violet primary color (#15131b) with muted deep green accents (#191b13). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#15131b) on a violet-tinted background (#06040b).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06040bblack
Foreground
#020104black
#ffffffwhite
Card
#f9f7fdghostwhite
#08060fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfbfewhite
#06040bblack
Popover foreground
#020104black
#ffffffwhite
Primary
#15131bblack
#15131bblack
Primary foreground
#aaa3bddarkgray
#aaa3bddarkgray
Secondary
#191b13black
#191b13black
Secondary foreground
#b6bda3darkgray
#b6bda3darkgray
Muted
#dee2d5gainsboro
#272a1ddarkslategray
Muted foreground
#616850dimgray
#a9af97darkgray
Accent
#191b13black
#191b13black
Accent foreground
#b6bda3darkgray
#b6bda3darkgray
Destructive
#c93f08firebrick
#f66228tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#15131bblack
#15131bblack

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.75:1AAA
Primary button7.60:1AAA
Secondary button8.95:1AAA
Muted text4.42:1AA Large
Accent8.95:1AAA
Destructive5.01:1AA
Dark mode
Text on background20.35:1AAA
Text on card20.14:1AAA
Primary button7.60:1AAA
Secondary button8.95:1AAA
Muted text6.42:1AA
Accent8.95:1AAA
Destructive6.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 298.502);
  --foreground: oklch(0.074 0.023 298.356);
  --muted: oklch(0.907 0.019 118.924);
  --muted-foreground: oklch(0.504 0.037 119.876);
  --popover: oklch(0.99 0.004 298.502);
  --popover-foreground: oklch(0.074 0.023 298.356);
  --card: oklch(0.979 0.007 298.436);
  --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.193 0.016 297.111);
  --primary-foreground: oklch(0.729 0.039 297.621);
  --secondary: oklch(0.216 0.015 119.797);
  --secondary-foreground: oklch(0.787 0.038 119.411);
  --accent: oklch(0.216 0.015 119.797);
  --accent-foreground: oklch(0.787 0.038 119.411);
  --destructive: oklch(0.562 0.183 37.395);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.193 0.016 297.111);
  --chart-1: oklch(0.193 0.016 297.111);
  --chart-2: oklch(0.216 0.015 119.797);
  --chart-3: oklch(0.216 0.015 119.797);
  --chart-4: oklch(0.253 0.019 119.917);
  --chart-5: oklch(0.191 0.019 296.825);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.018 298.419);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.279 0.024 120.127);
  --muted-foreground: oklch(0.743 0.034 119.373);
  --popover: oklch(0.118 0.018 298.419);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.021 297.525);
  --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.193 0.016 297.111);
  --primary-foreground: oklch(0.729 0.039 297.621);
  --secondary: oklch(0.216 0.015 119.797);
  --secondary-foreground: oklch(0.787 0.038 119.411);
  --accent: oklch(0.216 0.015 119.797);
  --accent-foreground: oklch(0.787 0.038 119.411);
  --destructive: oklch(0.679 0.194 39.678);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.193 0.016 297.111);
  --chart-1: oklch(0.193 0.016 297.111);
  --chart-2: oklch(0.216 0.015 119.797);
  --chart-3: oklch(0.216 0.015 119.797);
  --chart-4: oklch(0.253 0.019 119.917);
  --chart-5: oklch(0.191 0.019 296.825);
}