# How are theme setting fields created?

**URL:** <https://meta.discourse.org/t/how-are-theme-setting-fields-created/86353>\
**Category:** Product Support\
**Created:** [28.Апрель.2018 07:39:48 UTC](https://meta.discourse.org/t/how-are-theme-setting-fields-created/86353 "2018-04-28T07:39:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sarahann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahann/32/96703_2.png) [@sarahann](https://meta.discourse.org/u/sarahann)\
**Post date:** [08.Май.2018 00:27:47 UTC](https://meta.discourse.org/t/how-are-theme-setting-fields-created/86353/5 "2018-05-08T00:27:47Z")

</div>

Does anyone know how one would access variables in the theme settings in Javsscript?

```
<script type="text/discourse-plugin" version="0.8.13">
    console.log(themeSettings.myvalue); 
</script>

```

I keep getting “themesettings is not defined” in the dev tools

---

_[View the full topic](https://meta.discourse.org/t/how-are-theme-setting-fields-created/86353)._
