Lanky for shadcn/ui

Lanky is a shadcn/ui theme built around a neutral gray primary color (#707070) with neutral gray accents (#707070). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#707070) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0a0505black
Foreground
#090202black
#f8f7f7whitesmoke
Card
#fefbfbsnow
#0a0505black
Card foreground
#090202black
#f8f7f7whitesmoke
Popover
#fefbfbsnow
#0a0505black
Popover foreground
#090202black
#f8f7f7whitesmoke
Primary
#707070dimgray
#707070dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#707070dimgray
#707070dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4d2d2gainsboro
#2d1b1bblack
Muted foreground
#514343darkslategray
#bcaeaedarkgray
Accent
#707070dimgray
#707070dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#691b07maroon
#d7370forangered
Destructive foreground
#f9b9a9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#707070dimgray
#707070dimgray

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button4.93:1AA
Secondary button4.93:1AA
Muted text6.48:1AA
Accent4.93:1AA
Destructive7.13:1AAA
Dark mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button4.93:1AA
Secondary button4.93:1AA
Muted text7.65:1AAA
Accent4.93:1AA
Destructive4.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.205);
  --foreground: oklch(0.1 0.023 22.07);
  --muted: oklch(0.879 0.02 17.536);
  --muted-foreground: oklch(0.398 0.018 17.949);
  --popover: oklch(0.99 0.003 17.205);
  --popover-foreground: oklch(0.1 0.023 22.07);
  --card: oklch(0.99 0.003 17.205);
  --card-foreground: oklch(0.1 0.023 22.07);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.546 0 167.471);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.546 0 167.471);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.546 0 167.471);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.349 0.114 34.546);
  --destructive-foreground: oklch(0.841 0.078 34.489);
  --ring: oklch(0.546 0 167.471);
  --chart-1: oklch(0.546 0 167.471);
  --chart-2: oklch(0.546 0 167.471);
  --chart-3: oklch(0.546 0 167.471);
  --chart-4: oklch(0.572 0 180);
  --chart-5: oklch(0.54 0.008 17.417);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.011 18.726);
  --foreground: oklch(0.976 0.002 17.189);
  --muted: oklch(0.244 0.029 19.328);
  --muted-foreground: oklch(0.763 0.015 17.494);
  --popover: oklch(0.125 0.011 18.726);
  --popover-foreground: oklch(0.976 0.002 17.189);
  --card: oklch(0.125 0.011 18.726);
  --card-foreground: oklch(0.976 0.002 17.189);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.546 0 167.471);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.546 0 167.471);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.546 0 167.471);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.579 0.202 33.801);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.546 0 167.471);
  --chart-1: oklch(0.546 0 167.471);
  --chart-2: oklch(0.546 0 167.471);
  --chart-3: oklch(0.546 0 167.471);
  --chart-4: oklch(0.572 0 180);
  --chart-5: oklch(0.54 0.008 17.417);
}