rollup-plugin-postcss-lit weekly downloads statistics
By umbopepato · npm · Vite plugins
Rollup plugin to load PostCSSed stylesheets in LitElement components
rollup-plugin-postcss-lit has 2,650 recorded weekly downloads on npm, a decrease of 52.6% over the past 30 days, ranking #1228 of 2,256 tracked listings.
About rollup-plugin-postcss-lit
Rollup plugin postcss lit
Rollup plugin to load PostCSSed stylesheets in LitElement components
Install
Usage
Add postcssLit plugin after postcss. This wraps PostCSSed styles in Lit's css template literal tag, so you can import them directly in your components.
Add PostCSSed stylesheets to your LitElement components:
JS version
Usage with lit-element
If you're using the lit-element package, set the importPackage option accordingly:
Usage with Vite
This plugin is pre-configured to work with Vite, just add it to plugins and your styles will be Lit-ified ✨
⚠️ Use the ?inline suffix to prevent Vite from adding the styles to the CSS bundle as well
Options
PostCSS plugin setup
rollup-plugin-postcss injects all the imported stylesheets in by default: this causes an unnecessary style duplication if you're using the default ShadowDOM -based style encapsulation in your Lit components. Unless you're using Light DOM, consider disabling the inject option:
When should I use it?
This plugin is meant to be used with rollup-plugin-postcss. If you only need to load plain css files in your LitElement components, consider using rollup-plugin-lit-css.
Contributors
License
This project is licensed under the MIT License, see LICENSE for details.
Description from the npm listing.
- postcss
- css
- lit
- lit-element
- lit-html
- sass
- scss
- less
- stylus
- css-modules
- rollup-plugin
- vite-plugin
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (121)Similar npm Vite plugins plugins
All 20 rollup-plugin-postcss-lit alternativesData 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/rollup-plugin-postcss-lit. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.