Skip to content

Instantly share code, notes, and snippets.

@hum-n
Created January 25, 2021 23:14
Show Gist options
  • Save hum-n/ba9a597c41760cacf2303bb8bea9d964 to your computer and use it in GitHub Desktop.
Save hum-n/ba9a597c41760cacf2303bb8bea9d964 to your computer and use it in GitHub Desktop.
import { css, component, Element } from 'nativeweb';
const styles = css`
h1 {
color: orange;
}
`;
@component('some-styles', styles)
export class SomeStyles extends Element {
render() {
return `
<h1>Some Styles</h1>
`;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment