Lentil for shadcn/ui

Lentil is a shadcn/ui theme built around a light green primary color (#d7edc4) with muted light green accents (#d0d9c9). The light mode uses a neutral background (#fcfefb). Dark mode keeps the light green primary (#d7edc4) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#fcfefbwhite
#050802black
Foreground
#050802black
#fcfdfcwhite
Card
#fafdf7mintcream
#070c04black
Card foreground
#020401black
#ffffffwhite
Popover
#fcfefbwhite
#050802black
Popover foreground
#050802black
#fcfdfcwhite
Primary
#d7edc4gainsboro
#d7edc4gainsboro
Primary foreground
#0c1406black
#0c1406black
Secondary
#d0d9c9lightgrey
#2e312bdarkslategray
Secondary foreground
#37422edarkslategray
#c7cac4silver
Muted
#d8ddd5gainsboro
#262a22darkslategray
Muted foreground
#515b48darkolivegreen
#acb7a4darkgray
Accent
#d0d9c9lightgrey
#2e312bdarkslategray
Accent foreground
#37422edarkslategray
#c7cac4silver
Destructive
#840b0bmaroon
#e71313red
Destructive foreground
#fac6c6pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7edc4gainsboro
#d7edc4gainsboro

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card20.02:1AAA
Primary button15.02:1AAA
Secondary button7.31:1AAA
Muted text5.17:1AA
Accent7.31:1AAA
Destructive6.86:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.77:1AAA
Primary button15.02:1AAA
Secondary button8.00:1AAA
Muted text6.97:1AA
Accent8.00:1AAA
Destructive4.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 130.479);
  --foreground: oklch(0.125 0.018 129.24);
  --muted: oklch(0.891 0.012 130.569);
  --muted-foreground: oklch(0.457 0.034 131.161);
  --popover: oklch(0.995 0.004 130.479);
  --popover-foreground: oklch(0.125 0.018 129.24);
  --card: oklch(0.99 0.009 130.521);
  --card-foreground: oklch(0.099 0.014 129.24);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.919 0.059 131.059);
  --primary-foreground: oklch(0.177 0.029 131.53);
  --secondary: oklch(0.875 0.024 130.702);
  --secondary-foreground: oklch(0.364 0.037 131.452);
  --accent: oklch(0.875 0.024 130.702);
  --accent-foreground: oklch(0.364 0.037 131.452);
  --destructive: oklch(0.391 0.153 28.167);
  --destructive-foreground: oklch(0.874 0.059 18.355);
  --ring: oklch(0.919 0.059 131.059);
  --chart-1: oklch(0.919 0.059 131.059);
  --chart-2: oklch(0.875 0.024 130.702);
  --chart-3: oklch(0.875 0.024 130.702);
  --chart-4: oklch(0.896 0.02 130.651);
  --chart-5: oklch(0.921 0.062 131.094);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 129.219);
  --foreground: oklch(0.993 0.001 130.45);
  --muted: oklch(0.279 0.016 131.008);
  --muted-foreground: oklch(0.766 0.03 130.81);
  --popover: oklch(0.126 0.019 129.219);
  --popover-foreground: oklch(0.993 0.001 130.45);
  --card: oklch(0.144 0.021 129.362);
  --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.919 0.059 131.059);
  --primary-foreground: oklch(0.177 0.029 131.53);
  --secondary: oklch(0.307 0.011 130.765);
  --secondary-foreground: oklch(0.835 0.01 130.551);
  --accent: oklch(0.307 0.011 130.765);
  --accent-foreground: oklch(0.835 0.01 130.551);
  --destructive: oklch(0.588 0.234 28.607);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.919 0.059 131.059);
  --chart-1: oklch(0.919 0.059 131.059);
  --chart-2: oklch(0.307 0.011 130.765);
  --chart-3: oklch(0.307 0.011 130.765);
  --chart-4: oklch(0.338 0.012 130.777);
  --chart-5: oklch(0.921 0.062 131.094);
}