# How do you use local font files in Elm?

**URL:** https://discourse.elm-lang.org/t/how-do-you-use-local-font-files-in-elm/7854
**Category:** Learn
**Created:** [October 27, 2021, 10:42am UTC](https://discourse.elm-lang.org/t/how-do-you-use-local-font-files-in-elm/7854 "2021-10-27T10:42:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sashinexists](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/sashinexists/32/4324_2.png) [@sashinexists](https://discourse.elm-lang.org/u/sashinexists)
#### Post date: [October 27, 2021, 10:42am UTC](https://discourse.elm-lang.org/t/how-do-you-use-local-font-files-in-elm/7854/1 "2021-10-27T10:42:39Z")

</div>

I can seem to find any resources on how to use fonts in Elm.

Is it possible to import font files I downloaded from Google fonts to local folder to use in my project?

---

<div class="post-metadata">

### Author: ![wolfadex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/wolfadex/32/2461_2.png) [@wolfadex](https://discourse.elm-lang.org/u/wolfadex)
#### Post date: [October 27, 2021, 11:45am UTC](https://discourse.elm-lang.org/t/how-do-you-use-local-font-files-in-elm/7854/2 "2021-10-27T11:45:18Z")

</div>

[@font-face - CSS: Cascading Style Sheets | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face) is a good resource for how to use custom fonts.

---

<div class="post-metadata">

### Author: ![sashinexists](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/sashinexists/32/4324_2.png) [@sashinexists](https://discourse.elm-lang.org/u/sashinexists)
#### Post date: [October 27, 2021, 5:34pm UTC](https://discourse.elm-lang.org/t/how-do-you-use-local-font-files-in-elm/7854/3 "2021-10-27T17:34:01Z")

</div>

Hey thanks!

I forgot to mention something quite important though! I was using elm-ui at opposed to CSS. I wanna see if I can do everything without CSS if possible.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)
#### Post date: [November 6, 2021, 5:34pm UTC](https://discourse.elm-lang.org/t/how-do-you-use-local-font-files-in-elm/7854/4 "2021-11-06T17:34:26Z")

</div>

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