Lung for shadcn/ui

Lung is a shadcn/ui theme built around a muted light blue primary color (#c9ccd9) with muted light green accents (#ccd9c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#c9ccd9) on a blue-tinted background (#06070e).

Color palette

TokenLightDark
Background
#ffffffwhite
#06070eblack
Foreground
#030511black
#f6f6f9whitesmoke
Card
#fcfcfcsnow
#080912black
Card foreground
#03040dblack
#f9f9fbghostwhite
Popover
#ffffffwhite
#06070eblack
Popover foreground
#030511black
#f6f6f9whitesmoke
Primary
#c9ccd9lightgrey
#c9ccd9lightgrey
Primary foreground
#2f3142darkslategray
#2f3142darkslategray
Secondary
#d9c9cclightgrey
#d9c9cclightgrey
Secondary foreground
#422f31darkslategray
#422f31darkslategray
Muted
#f4ebeclinen
#140b0cblack
Muted foreground
#6d5054dimgray
#af9297rosybrown
Accent
#ccd9c9lightgrey
#ccd9c9lightgrey
Accent foreground
#31422fdarkslategray
#31422fdarkslategray
Destructive
#b42e13firebrick
#d43616firebrick
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9ccd9lightgrey
#c9ccd9lightgrey

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.00:1AAA
Primary button7.99:1AAA
Secondary button7.84:1AAA
Muted text6.14:1AA
Accent7.33:1AAA
Destructive6.12:1AA
Dark mode
Text on background18.61:1AAA
Text on card18.87:1AAA
Primary button7.99:1AAA
Secondary button7.84:1AAA
Muted text6.82:1AA
Accent7.33:1AAA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.028 270.589);
  --muted: oklch(0.948 0.01 6.863);
  --muted-foreground: oklch(0.463 0.038 8.668);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.028 270.589);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.111 0.024 270.128);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.846 0.019 277.993);
  --primary-foreground: oklch(0.319 0.029 276.819);
  --secondary: oklch(0.85 0.018 7.117);
  --secondary-foreground: oklch(0.327 0.028 8.762);
  --accent: oklch(0.871 0.026 141.001);
  --accent-foreground: oklch(0.357 0.038 140.84);
  --destructive: oklch(0.509 0.175 32.892);
  --destructive-foreground: oklch(0.991 0.004 31.05);
  --ring: oklch(0.846 0.019 277.993);
  --chart-1: oklch(0.846 0.019 277.993);
  --chart-2: oklch(0.85 0.018 7.117);
  --chart-3: oklch(0.871 0.026 141.001);
  --chart-4: oklch(0.876 0.015 7.014);
  --chart-5: oklch(0.844 0.022 277.931);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.017 274.499);
  --foreground: oklch(0.975 0.003 278.276);
  --muted: oklch(0.162 0.016 9.123);
  --muted-foreground: oklch(0.688 0.034 7.84);
  --popover: oklch(0.133 0.017 274.499);
  --popover-foreground: oklch(0.975 0.003 278.276);
  --card: oklch(0.143 0.02 275.107);
  --card-foreground: oklch(0.983 0.002 278.29);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.846 0.019 277.993);
  --primary-foreground: oklch(0.319 0.029 276.819);
  --secondary: oklch(0.85 0.018 7.117);
  --secondary-foreground: oklch(0.327 0.028 8.762);
  --accent: oklch(0.871 0.026 141.001);
  --accent-foreground: oklch(0.357 0.038 140.84);
  --destructive: oklch(0.574 0.199 32.823);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.019 277.993);
  --chart-1: oklch(0.846 0.019 277.993);
  --chart-2: oklch(0.85 0.018 7.117);
  --chart-3: oklch(0.871 0.026 141.001);
  --chart-4: oklch(0.876 0.015 7.014);
  --chart-5: oklch(0.844 0.022 277.931);
}