Light+ Tweaked for shadcn/ui

Light+ Tweaked is a shadcn/ui theme built around a neutral gray primary color (#8c969b) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#8c969b) on a neutral background (#ffffff).

Color palette

TokenLightDark
Background
#ffffffwhite
#ffffffwhite
Foreground
#24292edarkslategray
#24292edarkslategray
Card
#fafafasnow
#fafafasnow
Card foreground
#191c1fblack
#191c1fblack
Popover
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Popover foreground
#0d0f11black
#0d0f11black
Primary
#8c969blightslategray
#8c969blightslategray
Primary foreground
#000000black
#000000black
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d9d9d9gainsboro
#d9d9d9gainsboro
Accent foreground
#404040darkslategray
#404040darkslategray
Destructive
#8c1a08darkred
#8c1a08darkred
Destructive foreground
#fcd1capink
#fcd1capink
Border
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Input
#ebebeblinen
#ebebeblinen
Ring
#8c969blightslategray
#8c969blightslategray

Contrast

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

Light mode
Text on background14.66:1AAA
Text on card16.38:1AAA
Primary button6.97:1AA
Secondary button7.37:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.68:1AA
Dark mode
Text on background14.66:1AAA
Text on card16.38:1AAA
Primary button6.97:1AA
Secondary button7.37:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive6.68:1AA

CSS variables

Paste this into your globals.css to use Light+ Tweaked in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.277 0.011 248.24);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.169 0.005 248.117);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.225 0.008 248.197);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.667 0.014 230.951);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.416 0.151 31.53);
  --destructive-foreground: oklch(0.895 0.05 28.32);
  --ring: oklch(0.667 0.014 230.951);
  --chart-1: oklch(0.667 0.014 230.951);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.668 0.019 231.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.277 0.011 248.24);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.169 0.005 248.117);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.225 0.008 248.197);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.667 0.014 230.951);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.416 0.151 31.53);
  --destructive-foreground: oklch(0.895 0.05 28.32);
  --ring: oklch(0.667 0.014 230.951);
  --chart-1: oklch(0.667 0.014 230.951);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.668 0.019 231.086);
}