Skip to content
Norn
Menu

oss-head

The OSS site head: the PT Mono preload and the self-hosted @font-face rules for PT Mono, Instrument Sans, and Yellowtail, each with a fallback matched to its metrics. The OSS site plugin puts it in norn-base's head hook, followed by the brand tokens from css/tokens.css. Call it elsewhere as <meta webc:is="oss-head" webc:nokeep />. The @font-face rules look for the fonts at assets/fonts, one level up from the bundle: the OSS site plugin copies the package's fonts folder there. The brand tokens it goes with, in css/tokens.css and the norn.oss layer, are below. The brand rules in css/brand.css follow them in the same layer, such as the four-color strip along the header bar and the footer's project name in the accent color and the mono face, at 1.2rem. A project's unlayered CSS still wins over both.

<oss-head> a document, from @allons-y/webc-oss-site

Where it renders

A head component has no canvas of its own. Every example on this site is rendered with the head components in place, so open any frame to see this one at work.