Built-in Fonts API
Use Astro's new Fonts API with a page-scoped <Font /> component and a local font provider.
This page demonstrates one Astro 6 feature directly in the UI and one that powers the project under the hood.
The headline on this page is loaded with Astro 6's built-in Fonts API
using a locally configured Roboto font family and a page-scoped
<Font /> component.
The list below is read from the migrated posts collection using
the Astro 6 content layer setup in src/content.config.ts.
Use Astro's new Fonts API with a page-scoped <Font /> component and a local font provider.
This project now uses src/content.config.ts with explicit glob() loaders and Astro 6 entry APIs.
Astro 6 ships a stable Content Security Policy API that can hash scripts and styles for static sites.
Astro 6 upgrades the toolchain around Node 22, Vite 7, and newer package internals.