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 Stale · Dec 4, 2026

vite-plugin-lit-css has 4,497 recorded weekly downloads on npm, a decrease of 46.9% over the past 30 days, ranking #1570 of 3,247 tracked listings.

Weekly downloads
4,497
Official API · Dec 5, 2026
7-day growth
-9.3%
-460 weekly downloads
30-day growth
-46.9%
-4K weekly downloads
90-day growth
-50.8%
-4.6K weekly downloads
Rank
#1570
▼ 72 in 7 days

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: 4,497 weekly downloads as of Dec 5, 2026, -50.8% over 90 days.vite-plugin-lit-cssWeekly downloads on npm · Last 90 days4,497downloads / week-50.8% over 90 days02K4K6K8K10K12K14KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-lit-css weekly downloads on npm, last 90 days: 4,497 weekly downloads as of Dec 5, 2026, -50.8% over 90 days.

7/30/90-day growth

vite-plugin-lit-css weekly downloads growth on npm: -9.3% over 7 days, -46.9% over 30 days, -50.8% over 90 days.vite-plugin-lit-cssWeekly downloads growth on npm4,497downloads / week now7-day growth-460 weekly downloads-9.3%30-day growth-3,971 weekly downloads-46.9%90-day growth-4,647 weekly downloads-50.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-lit-css weekly downloads growth on npm: -9.3% over 7 days, -46.9% over 30 days, -50.8% over 90 days.

Ranking history

vite-plugin-lit-css npm ranking history: currently #1570 (by weekly downloads).vite-plugin-lit-cssnpm ranking · by weekly downloads · Last 90 days#1570current rank#1000#1100#1200#1300#1400#1500#1600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-lit-css npm ranking history: currently #1570 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 79, #10 (overall #1,570)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 14, #13 (overall #273)
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 (170)
Recent weekly downloads observations for vite-plugin-lit-css
Date (UTC)Weekly downloadsChange vs. previous
4,497-291
4,788+222
4,566+526
4,040+83
3,957-551
4,508-407
4,915-42
4,957+22
4,935-809
5,744-800
6,544-838
7,382-450
7,832-41
7,873—

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 Dec 4, 2026. See the methodology.