Add font directory to my project

hello,

I do a “npx sanity@latest init” and I have all the directories except the “fonts” directory.
How to add it back to the project?

here is the print screnn of the tutorial that I am following.

Thank you for your help

1 Like

Hey! This doesn’t come out of the box with the latest Sanity template. If it doesn’t exist in your project, create the “fonts” directory and copy over the fonts or configurations there.

Sanity’s default project setup doesn’t include a fonts directory by default. If you’re expecting a fonts directory, it’s likely that:

  1. It was manually added in a previous setup – If you were following a tutorial or migrating from an older project, you might need to create it manually.
  2. You’re using a custom Tailwind or CSS setup – Some projects store fonts inside a public/fonts or assets/fonts folder, but this isn’t automatically generated by npx sanity@latest init.
  3. Your build process expects it – If your project references a fonts directory but it doesn’t exist, you can create one manually inside public/ or styles/ depending on your project structure.
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.