An Astro dev toolbar app for browsing fonts (Google, Fontsource, Bunny, Fontshare) and previewing them live on your site.
Early prototype; the API is still changing.
Requires Astro 6+.
npm install -D @xsynaptic/astro-font-devtools// astro.config.ts
import { defineConfig } from 'astro/config';
import fontDevtools from '@xsynaptic/astro-font-devtools';
export default defineConfig({
integrations: [fontDevtools()],
});Run astro dev, open the dev toolbar, and pick Font Devtools. By default only Fontsource is
queried; pass providers to add more:
fontDevtools({ providers: ['google', 'fontsource', 'bunny', 'fontshare'] });You can also pre-seed targets:
fontDevtools({ targets: ['--font-display', 'h1', 'p', '.card'] });pnpm install
pnpm dev # rebuilds on change; link into an Astro project to try it live