New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lit-css-global-scope

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lit-css-global-scope

a global style css importer for webcomponent lit-element / lit-html

latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

lit-css-global-scope

It is a simple import global styleSheet from document Object. it might be useful to import a global style in a webcomponent builded with lit-element. It permit to retains the benefits of shadowdom and global css. You can use it with boostrap or other css framework

Use it

Project setup

npm i lit-css-global-scope

Import globalStyle in your webcomponent

import module:

import {globalStyle} from 'lit-css-global-scope'

use it:

...
class cssComponent extends LitElement {
  static get styles() {
    return [
      globalStyle
    ];
  }
...

Example: a complete webcomponent starter with webpack bundler and naturally lit-css-global-scope https://github.com/ianes1978/lit-element-webpack-starter

Keywords

lit-html

FAQs

Package last updated on 03 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts