Lit

Google's lightweight library for building fast, standards-based Web Components.

Lit adds reactive properties, declarative templates and scoped styles on top of the browser's native Custom Elements and Shadow DOM. Because the output is standard Web Components, they work inside any framework or none. It is often used for design systems that must serve multiple front-end stacks.

Type
Library
Category
Web
Maintainer
Google (Lit team)
First released
2019
License
Open source (BSD-3-Clause)
Pricing
Open source
Level
Intermediate
Technologies
lit, web-components, typescript
GitHub stars
21,909
Weekly downloads
10,716,244 (npm)
Latest release
[object Object]
Last verified
26 Nov 2026

What Lit is used for

  • Framework-agnostic design systems
  • Embeddable widgets
  • Micro-frontends

Strengths

  • Built on web standards
  • Small and fast
  • Interoperates with any framework

Limitations

  • Shadow DOM complicates global styling and SSR
  • Smaller app-level ecosystem

Lit alternatives

Built with the same technologies

Learn Lit

Official links

Sources

Explore