Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

litcss? #236

Open
aress31 opened this issue Aug 4, 2020 · 0 comments
Open

litcss? #236

aress31 opened this issue Aug 4, 2020 · 0 comments

Comments

@aress31
Copy link

aress31 commented Aug 4, 2020

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant