# Custom fonts

Add fonts from Google Fonts or your own font files, set them for headlines, body text, labels and code, and keep your pages fast.

Fonts carry a lot of your brand. Lyna sets them for the whole project in the **Brand** panel, so every page and every new page the AI builds uses the same type.

Manage fonts open from the Brand panel, with the Project Fonts list and the Search Google Fonts field.

## Add a font from Google Fonts

1. ### Open Manage fonts

   Open the **Brand** panel on **Base styles**, then choose **Manage fonts** in the **Typography** section. See [Brand and design system](/features/design/brand-and-design-system).
2. ### Search

   Choose **Browse fonts** or **Add**, then type in **Search Google Fonts...**. Choose **Load more fonts** to see more results.
3. ### Add it

   Choose **Add** on a font. It appears under **Project Fonts**.
4. ### Use it

   Pick it for the **Headings**, **Body text**, **Labels** or **Code** role in the **Typography** section. To make it the project default, open its menu and choose **Set as default**.

Remove a font you no longer use from its menu with **Remove**.

## Use your own font files

For a font that is not on Google Fonts, such as a licensed brand font:

1. Open **Code** mode, then **Explorer**, and choose **Upload files**. Put the files in `public/fonts/`. The `.woff2` format is the smallest.
2. Ask the AI:

> Add the font files in public/fonts as the "Acme Sans" font family with @font-face, and use it for headlines.

Check that your font license allows use on the web.

## Pair fonts well

- Use two families at most: one for headlines, one for body text. Add a mono font only if you show code.
- Pair contrast: a serif headline with a sans-serif body, or one sans-serif family in two weights.
- Pick a body font that stays readable at 16 px and on phones.

## Keep pages fast

- Add only the fonts you use, and only the weights you use.
- Prefer `.woff2` files for your own fonts.
- Ask the AI to use `font-display: swap` so text shows while the font loads.
- Check the result with **Perf** and **Lighthouse** in the [devtools](/features/test-and-debug/devtools).

## Change a font on one element

To use another font on a single heading or button, select it on the canvas and set the font in the [Styles](/features/design/styles) panel. For site-wide changes, use the **Brand** panel instead, so the whole app stays consistent.

## Related

- [Brand and design system](/features/design/brand-and-design-system): Colors, fonts and shape for the whole project.
- [Styles](/features/design/styles): Style one element.
- [Using images](/tips-and-tricks/using-images): Images that look good and load fast.
