# Create and share a font theme component

**URL:** https://meta.discourse.org/t/create-and-share-a-font-theme-component/62462
**Category:** Developer Guides
**Tags:** how-to, theme-guides
**Created:** [May 10, 2017, 8:48pm UTC](https://meta.discourse.org/t/create-and-share-a-font-theme-component/62462 "2017-05-10T20:48:47Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Dave\_Driesmans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dave_driesmans/32/253276_2.png) [@Dave\_Driesmans](https://meta.discourse.org/u/Dave_Driesmans)
#### Post date: [June 21, 2022, 9:34am UTC](https://meta.discourse.org/t/create-and-share-a-font-theme-component/62462/4 "2022-06-21T09:34:03Z")

</div>

When i followed the stepped i received an _Error: Undefined variable: “$fontname”._

So:  
I declared the variable in $variables:  
`fontname: "assets/fontname.woff2";`

It’s seems to me you have to fill it in, but what path to use in the $variables?

When you let Discourse upload the files with

```plaintext
"assets": {
        "fontname": "assets/fontname.woff2"
   }

```

it uploads the file to another path then _assets/roboto.woff2_ it seems  
(`/uploads/db0202/original/1X/...`)

Edit:  
No need for $variables, the magic happens with the uploads. But i had assets/font.svg#regular in the assets and the hashtag created the issue.

---

_[View the full topic](https://meta.discourse.org/t/create-and-share-a-font-theme-component/62462)._
