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 was rendered on the server and then hydrated. Add a route by extending
the routes array in src/routes.ts — the server and the
browser both read it.
- The route table is plain data, so it runs in Node and in the browser.
-
Swap the exact match for
URLPattern to support
/users/:id.
-
Anything touching
window belongs in connectedCallback.
`;
}
}
declare global {
interface HTMLElementTagNameMap {
'about-page': AboutPage;
}
}