Lender for shadcn/ui

Lender is a shadcn/ui theme built around a deep green primary color (#353b1c) with deep purple accents (#3b1c35). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep green primary (#353b1c) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fefefbwhite
#030401black
Foreground
#0a0c03black
#ffffffwhite
Card
#fcfdf6snow
#070802black
Card foreground
#070802black
#ffffffwhite
Popover
#fefefbwhite
#030401black
Popover foreground
#0a0c03black
#ffffffwhite
Primary
#353b1cdarkslategray
#353b1cdarkslategray
Primary foreground
#d2d9b0palegoldenrod
#d2d9b0palegoldenrod
Secondary
#1c353bdarkslategray
#1c353bdarkslategray
Secondary foreground
#b0d2d9lightblue
#b0d2d9lightblue
Muted
#cbe2e7gainsboro
#183034darkslategray
Muted foreground
#4c5557darkslategray
#a8b1b3darkgray
Accent
#3b1c35darkslategray
#3b1c35darkslategray
Accent foreground
#d9b0d2thistle
#d9b0d2thistle
Destructive
#812a0esaddlebrown
#d04416chocolate
Destructive foreground
#f9d4c8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#353b1cdarkslategray
#353b1cdarkslategray

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.70:1AAA
Primary button7.99:1AAA
Secondary button8.01:1AAA
Muted text5.67:1AA
Accent7.90:1AAA
Destructive6.69:1AA
Dark mode
Text on background20.54:1AAA
Text on card20.10:1AAA
Primary button7.99:1AAA
Secondary button8.01:1AAA
Muted text6.37:1AA
Accent7.90:1AAA
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 114.153);
  --foreground: oklch(0.148 0.021 115.21);
  --muted: oklch(0.897 0.026 211.058);
  --muted-foreground: oklch(0.443 0.012 211.056);
  --popover: oklch(0.996 0.005 114.153);
  --popover-foreground: oklch(0.148 0.021 115.21);
  --card: oklch(0.992 0.009 114.241);
  --card-foreground: oklch(0.129 0.018 114.862);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.337 0.049 116.852);
  --primary-foreground: oklch(0.869 0.055 115.245);
  --secondary: oklch(0.313 0.032 211.836);
  --secondary-foreground: oklch(0.841 0.038 211.115);
  --accent: oklch(0.28 0.062 333.558);
  --accent-foreground: oklch(0.804 0.066 331.884);
  --destructive: oklch(0.414 0.126 37.334);
  --destructive-foreground: oklch(0.898 0.045 39.284);
  --ring: oklch(0.337 0.049 116.852);
  --chart-1: oklch(0.337 0.049 116.852);
  --chart-2: oklch(0.313 0.032 211.836);
  --chart-3: oklch(0.28 0.062 333.558);
  --chart-4: oklch(0.347 0.037 211.903);
  --chart-5: oklch(0.341 0.052 117.042);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.014 114.862);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.291 0.031 211.877);
  --muted-foreground: oklch(0.754 0.011 211.038);
  --popover: oklch(0.103 0.014 114.862);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.129 0.018 114.862);
  --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.337 0.049 116.852);
  --primary-foreground: oklch(0.869 0.055 115.245);
  --secondary: oklch(0.313 0.032 211.836);
  --secondary-foreground: oklch(0.841 0.038 211.115);
  --accent: oklch(0.28 0.062 333.558);
  --accent-foreground: oklch(0.804 0.066 331.884);
  --destructive: oklch(0.581 0.184 36.82);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.337 0.049 116.852);
  --chart-1: oklch(0.337 0.049 116.852);
  --chart-2: oklch(0.313 0.032 211.836);
  --chart-3: oklch(0.28 0.062 333.558);
  --chart-4: oklch(0.347 0.037 211.903);
  --chart-5: oklch(0.341 0.052 117.042);
}