lit-css-global-scope

0.1.7 • Public • Published

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

Package Sidebar

Install

npm i lit-css-global-scope

Weekly Downloads

19

Version

0.1.7

License

MIT

Unpacked Size

1.94 kB

Total Files

4

Last publish

Collaborators

  • ianes