Skip to content
P

@pwrs/lit-css

Import CSS files as css tagged-template literals

by bennypFree

#752in UI Libraries
0In stores

Description

lit-css is a set of build plugins that import CSS files as JavaScript tagged-template literal objects. The name stands for literal. The plug…

Highlights

  • Imports CSS files as tagged-template literals
  • Works with lit-element and FAST element
  • Plugins for esbuild, Rollup, Webpack, Vite and Parcel
  • Optional packages, not required

Ratings & Reviews

No ratings yet

Be the first to rate @pwrs/lit-css.

People also visit

I

@iyulab/components

web-components library based on lit-element made by iyulab

UI Libraries
Launch
S

shipstyles

Zero-config runtime styles

UI Libraries
Launch
W

@webcomponents/shadycss

ShadowDOM style encapsulation shim

UI Libraries
Launch
W

@wcj/markdown-style

Integrate markdown styles into web components

UI Libraries
Launch
W

Web Awesome

Open source library of web components from Font Awesome

UI Libraries
Launch
V

@vertical-insure/web-components

Vertical Insure Web Components using Lit and Open Web Standards

UI Libraries
Launch

@pwrs/lit-css FAQ

What does lit-css do?

It builds plugins that import CSS files as JavaScript tagged-template literal objects.

Who needs it?

Developers using Lit, FAST element or similar libraries who want their CSS kept in separate .css files.

Do I have to use it?

No. The README says these are optional, and writing styles in styles.css.js modules may be preferred.

Which build tools work with it?

The README lists esbuild, TypeScript, Rollup, Webpack, Vite and Parcel.

Will it stay necessary?

The README expects it to become obsolete if the CSS Modules proposal or something similar is accepted and implemented.

What are the best @pwrs/lit-css alternatives?

Popular alternatives to @pwrs/lit-css include @iyulab/components, shipstyles and @webcomponents/shadycss. See all @pwrs/lit-css alternatives

Developer Stuff

Badges