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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 18.61:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.83:1 | AA |
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);
}