import { css, html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; import { tailwind } from '../styles/tailwind.js'; /** Example second route. */ @customElement('about-page') export class AboutPage extends LitElement { static override styles = [ tailwind, css` :host { display: block; } /* * An element selector rather than a utility class: repeating the same * six classes on every inline would be worse than one rule. The * theme variables come from the document, which custom properties reach * into shadow roots, and the fallbacks cover the case where they do not. */ code { padding: 0.15em 0.4em; border-radius: 0.25rem; background: color-mix(in srgb, currentColor 10%, transparent); font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.9em; } `, ]; override render() { return html`

About

This route is rendered by the router controller in app-root. Add a route by extending the array passed to new Router(...).

`; } } declare global { interface HTMLElementTagNameMap { 'about-page': AboutPage; } }