Fumapress
The site generator

Fonts

How to add fonts.

Setup

Open Google Fonts to find your desired fonts, and copy its embed code.

Use the meta option and paste the <link /> tags, like:

press.config.tsx
import { defineConfig } from "fumapress";

export default defineConfig({
  meta: {
    root() {
      return (
        <>
          <link rel="preconnect" href="https://fonts.googleapis.com" />
          <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
          <link
            href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&display=swap"
            rel="stylesheet"
          />
        </>
      );
    },
  },
});

In your src/app.css, declare the font:

src/app.css
@import "tailwindcss";
@import "fumadocs-ui/css/neutral.css";
@import "fumadocs-ui/css/preset.css";
@import "fumapress/css/preset.css";

@theme {
  --default-font-family: "Geist", sans-serif;
  --font-mono: "Geist Mono", monospace;
}

Last updated on

On this page