# Custom font fine in admin when Vite running hot, but not after npm run build

**URL:** https://discourse.roots.io/t/custom-font-fine-in-admin-when-vite-running-hot-but-not-after-npm-run-build/29298
**Category:** sage
**Tags:** tailwind, vite, sage11
**Created:** 2025-02-24T23:39:44Z
**Posts:** 11
**Showing post:** 5 of 11

## Post 5 by @raffjones — 2025-04-13T22:06:56Z

I made those changes myself and it’s fine in the normal editor.

However, it doesn’t work when previewing block patterns, just as an aside.

In situ, when editing a post containing a block pattern, custom fonts render fine:

 ![image](https://discourse.roots.io/uploads/default/original/2X/a/a1bac13a3bd731bc4b1e560cca395a1daa86eb72.png)

But previewing the block pattern elsewhere, the fonts are good old Times New Roman:

 ![image](https://discourse.roots.io/uploads/default/original/2X/f/f0b7269c4059fe7e6fd6e3324d902e8a3213aee2.png)

---

_[View the full topic](https://discourse.roots.io/t/custom-font-fine-in-admin-when-vite-running-hot-but-not-after-npm-run-build/29298)._
