Skip to content

Instantly share code, notes, and snippets.

@soelen
Last active May 22, 2019 14:30
Show Gist options
  • Save soelen/32eb56d0bd96377a6fa55e748fb47c81 to your computer and use it in GitHub Desktop.
Save soelen/32eb56d0bd96377a6fa55e748fb47c81 to your computer and use it in GitHub Desktop.
import { css, html, LitElement } from 'lit-element';
import { foo } from './styles.js';
customElements.define('fancy-app', class extends LitElement {
static get styles() { return [
foo,
css`
.bar { color: pink; }
`
]};
render() {
return html`<div class="bar">Wowowowia</div>`;
}
});
import { css } from 'lit-element';
export const foo css`.bar { background: background };`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment