Polymer / shop

The Shop app
https://shop.polymer-project.org/
986 stars 491 forks source link

litcss? #236

Open aress31 opened 3 years ago

aress31 commented 3 years ago

I am just wondering why lit-css - https://lit-element.polymer-project.org/guide/styles - is not being used in this repo?

import { LitElement, html, css } from 'lit-element';

const mainColor = css`red`;

class MyElement extends LitElement {
  static get styles() {
    return css`
      div { color: ${mainColor} }
    `;
  }
  render() {
    return html`<div>Some content in a div</div>`;
  }
}

customElements.define('my-element', MyElement);