Skip to content
PluginStats

vite-plugin-lit-css weekly downloads statistics

By redfox-mx · npm · Vite plugins

Plugin to get all the power of Vite styles with lit tagged-template ⚡

View on npm Fresh · Oct 18, 2026

vite-plugin-lit-css has 1,692 recorded weekly downloads on npm, a decrease of 75.7% over the past 30 days, ranking #1358 of 2,322 tracked listings.

Weekly downloads
1,692
Official API · Oct 18, 2026
7-day growth
-70.2%
-4K weekly downloads
30-day growth
-75.7%
-5.3K weekly downloads
90-day growth
-79.8%
-6.7K weekly downloads
Rank
#1358
Among tracked npm listings

About vite-plugin-lit-css

Use Vite styles for your lit components

<p align="center"> <img height="200" src="https://raw.githubusercontent.com/redfox-mx/vite-lit-css/main/docs/lit.svg"> </p>

Plugin to get all the power of Vite styles with lit tagged-template ⚡.

This plugin aims to get work with css lang stylesheet and lit template literals as simply as any other library or front-end framework.

Installation

$ npm install -D vite-plugin-lit-css

# yarn
$ npm install -D vite-plugin-lit-css

# pnpm
$ pnpm add -D vite-plugin-lit-css

Usage

Add vite-plugin-lit-css to your Vite config.

import { defineConfig } from 'vite'
import litCss from 'vite-plugin-lit-css'

export default defineConfig({
  plugins: [litCss({
    // your global and rel="stylesheet" styles must be excluded
    exclude: './src/index.css'
  })],
})

Then, import your stylesheets as any other javascript module in your code.

import { LitElement } from 'lit'
import styles from './styles.css'

export class Element extends LitElement {
  static styles = [styles, queryStyles]

}
Typescript

You can use types definitions inside your vite-env.d.ts. Remember: order is important!

/// <reference types="vite-plugin-lit-css/client" />
/// <reference types="vite/client" />

Options

This plugin will transform all your css like styles by default into constructible library-specific css styles, but you can take control of this transformation with the include and exclude options.

import { defineConfig } from 'vite'
import litCss from 'vite-plugin-lit-css'

export default defineConfig({
  plugins: [litCss({
    include: /\.scss/, // transform only scss files as lit styles
    exclude: [/global.css/, './src/index.css'] // exclude your global styles
  })],
})

// index.ts

import './styles.global.css' // this file will skipped from this plugin

Your index.html will be transformed. You must include your theme or global css files inside exclude option!!.

Caveats

  • Currently, HMR is not supported, and every change made inside your lit imported styles will trigger a full page reload.

  • For vite v4 use vite-plugin-lit-css 1.x

  • For vite v5, v6 use vite-plugin-lit-css 2.x

Description from the npm listing.

  • vite-plugin
  • lit
  • lit-css
  • vite-plugin-lit-css

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-lit-css weekly downloads on npm, last 90 days: 1,692 weekly downloads as of Oct 18, 2026, -79.8% over 90 days.vite-plugin-lit-cssWeekly downloads on npm · Last 90 days1,692downloads / week-79.8% over 90 days02K4K6K8K10K12K14KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-lit-css weekly downloads on npm, last 90 days: 1,692 weekly downloads as of Oct 18, 2026, -79.8% over 90 days.

7/30/90-day growth

vite-plugin-lit-css weekly downloads growth on npm: -70.2% over 7 days, -75.7% over 30 days, -79.8% over 90 days.vite-plugin-lit-cssWeekly downloads growth on npm1,692downloads / week now7-day growth-3,981 weekly downloads-70.2%30-day growth-5,272 weekly downloads-75.7%90-day growth-6,671 weekly downloads-79.8%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-lit-css weekly downloads growth on npm: -70.2% over 7 days, -75.7% over 30 days, -79.8% over 90 days.

Ranking history

vite-plugin-lit-css npm ranking history: currently #1358 (by weekly downloads).vite-plugin-lit-cssnpm ranking · by weekly downloads · Last 90 days#1358current rank#1310#1320#1330#1340#1350#1360Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-lit-css npm ranking history: currently #1358 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 69, #1 (overall #1,361)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins253 listings · 13 pages · page 13, #10 (overall #250)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for vite-plugin-lit-css
Date (UTC)Weekly downloadsChange vs. previous
1,692+102
1,590-193
1,783+14
1,769-1.3K
3,108-1.2K
4,2790
4,279-1.4K
5,673+8
5,665-202
5,867+80
5,787-179
5,966+69
5,897-2.1K
7,985—

Similar npm Vite plugins plugins

All 20 vite-plugin-lit-css alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-lit-css. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.