# Polymer to Lit: Migrate One Component at a Time | gen2.dev

> The Polymer library is in maintenance mode and its site recommends Lit. What changes between the two, and how to migrate one component at a time.

Source: https://gen2.dev/successors/polymer/

---

Successor Map · Frontend and mobile frameworks

# Polymer to Lit: same team, one component at a time

The Polymer library is in maintenance mode, and its own documentation recommends Lit for new development. Lit comes from the same team and can run beside Polymer in one app.

![Slide: Polymer on the left, an arrow, and Lit on the right.](https://gen2.dev/img/successor-polymer.png)

Status of the old tool

Maintenance only

Effort to move

A real project

gen2.dev's view

Move when convenient

Sources checked

2026-11-28

## Key facts

Gen 1

![Polymer logo](https://gen2.dev/icons/tech/polymer.png)The Polymer library (its documentation covers Polymer 3.x)

Gen 2

![Lit logo](https://gen2.dev/icons/tech/lit.png)Lit

Kind of tool

[Frontend and mobile frameworks](https://gen2.dev/successors/frontend/)

Status of Gen 1

Maintenance only The Polymer library documentation site, read on November 28, 2026, carries a banner saying the library is in maintenance mode and recommending Lit.

Effort to move

A real project: plan it and run both for a while

What breaks

Lit has no two-way data binding and no observers, so components built around either need their data flow reworked.

Should you move?

Move when convenient Polymer is in maintenance mode, not at end of life, and the two libraries work together, so components can move as they are touched. This is gen2.dev's view, not the maintainers'.

Sources checked

2026-11-28, [4 sources](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![Polymer logo](https://gen2.dev/icons/tech/polymer.png)Gen 1

![Lit logo](https://gen2.dev/icons/tech/lit.png)Gen 2

Package

[@polymer/polymer](https://www.npmjs.com/package/@polymer/polymer)

[lit](https://www.npmjs.com/package/lit)

Latest version

3.5.2

3.3.3

Latest release

Oct 7, 2024

May 14, 2026

First release

Feb 2, 2016

Jul 4, 2012

License

BSD-3-Clause

BSD-3-Clause

Downloads, last week

321,354

9,522,521

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

## What Gen 1 was

Polymer is a library for building web components: custom HTML elements with their own templates, properties and styles. A Polymer element declared its template once, bound data into it, and could bind data back out again through two-way bindings.

The library's documentation site now opens with a banner: "The Polymer library is in maintenance mode. For new development, we recommend Lit."

## What replaced it

Lit, which its documentation describes as "a simple library for building fast, lightweight web components." The migration article is direct about the relationship: "Lit is a successor to the Polymer library." It was built by the same team with many of the same aims.

That shared origin is what makes this move unusual. Both libraries produce standard web components, so an element written in one can sit inside an element written in the other.

## What moving involves

The article states the key fact in one sentence: "Polymer and Lit work together, so you can migrate one component at a time."

That makes this a [strangler fig](https://gen2.dev/guide/strangler-fig/) migration with the seams already cut. The order the article recommends:

-   Upgrade to Polymer 3 first, because Polymer 3 and Lit are both distributed as JavaScript modules.
-   Remove two-way bindings from the Polymer code before converting anything.
-   Convert components one at a time, shipping as you go.

Each conversion is a rewrite of that component's class. Templates become a function that returns a tagged template literal. Repeats and conditionals, which Polymer handled with helper elements such as `dom-repeat`, become ordinary JavaScript expressions. Many Polymer mixins can be reimplemented as Lit mixins.

## What breaks

-   **Two-way binding.** This is the large one. The article says, "The Lit team made an intentional choice not to implement two-way data bindings." Data flows down through properties and back up through events, and components designed around the old model need a redesign, not a translation.
-   **Observers.** "Lit doesn't support observers directly." The work moves into lifecycle methods such as `willUpdate()` and `updated()`.
-   **Templates.** Both libraries have a function called `html`, and they are not the same. Polymer's runs once during initialization. Lit's is usually called on every update.
-   **Build tools.** Lit uses newer JavaScript features, and the article warns: "You'll need to update your tools if they don't handle these newer JavaScript features."

## Should you move?

Move when it is convenient. Maintenance mode is not end of life, and no fetched source says Polymer has stopped receiving fixes. Because the two libraries work together, the sensible plan is to write new components in Lit and convert old ones when they next need real changes.

The exception is an app with two-way bindings threaded through most of its components. For that app the first step is its own project, and it is worth scheduling on purpose.

## Common questions

### Is Polymer dead?

Not yet. It is in maintenance only. The Polymer library documentation site, read on November 28, 2026, carries a banner saying the library is in maintenance mode and recommending Lit.

### What replaced Polymer?

Lit. Effort to move: A real project: plan it and run both for a while

### Should I move off Polymer?

gen2.dev's view: Move when convenient. Polymer is in maintenance mode, not at end of life, and the two libraries work together, so components can move as they are touched.

## Sources

1.  [Polymer Library documentation - Polymer Project](https://polymer-library.polymer-project.org/) - Carries the banner stating that the Polymer library is in maintenance mode and that Lit is recommended for new development.
2.  [Polymer/polymer README - GitHub](https://github.com/Polymer/polymer) - Recommends LitElement for new projects and describes it as a successor to the PolymerElement base class.
3.  [Lit for Polymer users - Lit (August 22, 2022)](https://lit.dev/articles/lit-for-polymer-users/) - The migration article: interoperability, the recommended order of work, and each difference between the two libraries.
4.  [Lit documentation - Lit](https://lit.dev/docs/) - Describes Lit as a simple library for building fast, lightweight web components; the documentation covers Lit 3.
5.  [@polymer/polymer - npm](https://www.npmjs.com/package/@polymer/polymer) - latest version, release dates, license and last week's downloads, read on November 29, 2026
6.  [lit - npm](https://www.npmjs.com/package/lit) - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

## How to do the move

The pattern that fits this kind of replacement:

[Strangler fig pattern](https://gen2.dev/guide/strangler-fig/)

[All successor entries](https://gen2.dev/successors/)

## More in Frontend and mobile frameworks

-    [![Apache Cordova logo](https://gen2.dev/icons/tech/cordova.png) Apache Cordova to Capacitor Still active A real project Leave it](https://gen2.dev/successors/cordova/)
-    [![Backbone.js logo](https://gen2.dev/icons/tech/backbone.png) Backbone.js to React or Vue Still active A real project Move when convenient](https://gen2.dev/successors/backbone/)
-    [![Gatsby logo](https://gen2.dev/icons/tech/gatsby.png) Gatsby to Next.js Still active A real project Move when convenient](https://gen2.dev/successors/gatsby/)
-    [![jQuery Mobile logo](https://gen2.dev/icons/tech/jquery-mobile.png) jQuery Mobile to a responsive web app Abandoned A real project Move now](https://gen2.dev/successors/jquery-mobile/)
-    [![jQuery logo](https://gen2.dev/icons/tech/jquery.png) jQuery to native browser APIs Still active Mechanical Move when convenient](https://gen2.dev/successors/jquery/)
-    [![Knockout.js logo](https://gen2.dev/icons/tech/knockout.png) Knockout.js to Vue or Svelte Still active A real project Move when convenient](https://gen2.dev/successors/knockout/)
-    [![Moment.js logo](https://gen2.dev/icons/tech/moment-js.png) Moment.js to date-fns, Luxon or Temporal Maintenance only Mechanical Move when convenient](https://gen2.dev/successors/moment-js/)
-    [![Prototype and Scriptaculous logo](https://gen2.dev/icons/tech/prototype-scriptaculous.png) Prototype and Scriptaculous to native browser APIs Abandoned Mechanical Leave it](https://gen2.dev/successors/prototype-scriptaculous/)
-    [![Redux logo](https://gen2.dev/icons/tech/redux.png) Redux to Redux Toolkit Deprecated Mechanical Move when convenient](https://gen2.dev/successors/redux/)
-    [![Vue 2 logo](https://gen2.dev/icons/tech/vue-2.png) Vue 2 to Vue 3 Abandoned A real project Move now](https://gen2.dev/successors/vue-2/)
-    [![Xamarin logo](https://gen2.dev/icons/tech/xamarin.png) Xamarin to .NET MAUI Abandoned A real project Move now](https://gen2.dev/successors/xamarin/)

[All frontend and mobile frameworks](https://gen2.dev/successors/frontend/)
