---
title: "Discussion on \"3 quick ways to add fonts to your React app\" | Hashnode"
description: "Discussion on \"3 quick ways to add fonts to your React app\". In HTML, font is used to specify the font face, size, and typography. You can add fonts to your React application in different ways. This article explains three quick ways of adding fonts to your React app.\n\nAll the examples in the article assumes th..."
url: "https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [3 quick ways to add fonts to your React app](https://blog.greenroots.info/3-quick-ways-to-add-fonts-to-your-react-app?utm_source=hashnode&utm_medium=feed)

In HTML, font is used to specify the font face, size, and typography. You can add fonts to your React application in different ways. This article explains three quick ways of adding fonts to your React app. All the examples in the article assumes th...

Jan 8, 2021 · 5 min read · blog.greenroots.info  
Updated May 3, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#css](https://hashnode.com/tag/css)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

  
[View profile](https://hashnode.com/@atapas)

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 5

Markdown supported · ⌘↵ to post

[Shobhit Sharma](https://hashnode.com/@ScriptKKiddie)

[Apr 2, 2023](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/642983f3b49153e7098cb128)

Thank you so much, Keep Writing such use cases on React :)

[Tapas Adhikary](https://hashnode.com/@atapas)

[Apr 2, 2023](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/642983f3b49153e7098cb128#reply-642995490e7e08e3bf1864d5)

Most welcome, Shobit.

[Terogene Claudio](https://hashnode.com/@cterogene)

[Jan 11, 2023](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/63bed64e98bf52f9c908180b)

Hi, The content is written perfectly to solve the exact solutions that I needed. Congrats [Tapas Adhikary](https://hashnode.com/@atapas) 👏

[Tapas Adhikary](https://hashnode.com/@atapas)

[Jan 11, 2023](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/63bed64e98bf52f9c908180b#reply-63bed7ba98bf52f9c908183a)

[Terogene Claudio](https://hashnode.com/@cterogene), that's an amazing feeling. I'm glad 🤩

[Charles Derek](https://hashnode.com/@charlesderek)

[Apr 20, 2022](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/625f597d9ad0ef10f07c0eae)

I tried importing the exact way you mentioned to import into the index.js file, and still returns an error not found when the path matches.

```
import './assets/fonts/AvenirNextLTPro-Regular.otf';
```

in /src/index.js

```
Module not found: Error: Can't resolve './assets/fonts/AvenirNextLTPro-regular.otf' in 'MyPathToTheProject/src'
```

[Tapas Adhikary](https://hashnode.com/@atapas)

[Apr 20, 2022](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/625f597d9ad0ef10f07c0eae#reply-625f6c3c9ad0ef10f07c0f9e)

Hi Charles, it should work as long as the import is correct and the project infra supports the import keyword.

Did you check the GitHub project I mentioned above? That got all the examples including this one.

[Feridun Djanselen](https://hashnode.com/@Feridun)

[Apr 5, 2022](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/624c8fd3a5af514355662241)

Great tactics mate! This was much quicker than watching a 5-minute youtube video, thank you.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Apr 6, 2022](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/624c8fd3a5af514355662241#reply-624cf1d124471c433062c96c)

You are most welcome. Thanks a lot 🌟

[Victoria Lo](https://hashnode.com/@victoria)

[Jan 8, 2021](https://hashnode.com/posts/3-quick-ways-to-add-fonts-to-your-react-app/5ff83df9a538d00135153572/comment/5ff876e9aa5c467fe1557895)

Sweet and simple! I use `@font-face` most often but nice to know the other quick alternatives :D
