Skip to content
don’t make it ugly
All resources

PackageAssets, Tools

Fontsource

Self-host any open-source font with an npm install.

Open sourceFree
Preview of Fontsource

What it is

Fontsource packages Google Fonts and other open-source typefaces as npm modules, so you can self-host fonts in any framework with one import and no external requests. Variable font packages included.

Why it’s here

The cleanest way to self-host fonts outside Next.js (which has next/font). Vite, Astro, SvelteKit: this is the move.

Best for

  • self-hosting fonts
  • Vite and Astro projects
  • privacy-conscious sites

Can my agent use this?

Agent excellent agent friendliness

Yes. Tell your agent the font name and it can install the matching @fontsource package and import it.

Excellent: Public docs, public source or an installable package. An agent can read, install and implement this directly.

Access methods

  • Docs
  • GitHub
  • npm

Install

npm install @fontsource-variable/inter

  • Fontshare
    Preview of Fontshare

    Fontshare

    Free, professional-quality fonts from the Indian Type Foundry.

    Asset libraryFreegood agent friendliness
    Staff pickUsed by me
  • Iconify
    Preview of Iconify

    Iconify

    One API and one component for two hundred thousand icons from every major set.

    Asset libraryFreeOpen sourceexcellent agent friendliness
  • Typescale
    Preview of Typescale

    Typescale

    Generate a harmonious type scale from a base size and a ratio.

    ToolFreegood agent friendliness
  • Haikei
    Preview of Haikei

    Haikei

    Generate blobs, waves, gradients and patterns as SVG backgrounds.

    ToolFreelimited agent friendliness