# Repository for our tweaks to Discourse

**URL:** <https://discourse.mc-stan.org/t/repository-for-our-tweaks-to-discourse/24202>\
**Category:** Developers\
**Tags:** github, discourse\
**Created:** [September 1, 2021, 12:46pm UTC](https://discourse.mc-stan.org/t/repository-for-our-tweaks-to-discourse/24202 "2021-09-01T12:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinmodrak](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/martinmodrak/32/133_2.png) [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Post date:** [September 1, 2021, 12:46pm UTC](https://discourse.mc-stan.org/t/repository-for-our-tweaks-to-discourse/24202/1 "2021-09-01T12:46:25Z")

</div>

Hi,  
we currently have two custom tweaks applied to our Discourse instance ([docs on private messages](https://discourse.mc-stan.org/t/proposal-selection-and-accountability-for-forum-moderators-and-leaders/17803/18), [Needs love](https://discourse.mc-stan.org/t/new-link-left-behind-needs-love/16989) ). There is a bit of technical debt that those tweaks are only stored as “settings” in our instance (which e.g. means they are currently not consistently applied to Dark mode). It would probably be better to turn them into a proper “Theme Component” and version the code on Git (Discourse can then fetch the theme component from Git).

If that makes sense, can someone with the proper access right create a repo under `stan-dev` on GitHub called `stan-discourse-theme-component` or similar and give me rights to push there (my Git handle is `martinmodrak`)?

Thanks!

---

<div class="post-metadata">

**Author:** ![rok\_cesnovar](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rok\_cesnovar](https://discourse.mc-stan.org/u/rok_cesnovar)\
**Post date:** [September 1, 2021, 1:03pm UTC](https://discourse.mc-stan.org/t/repository-for-our-tweaks-to-discourse/24202/2 "2021-09-01T13:03:35Z")

</div>

Done: [stan-dev/stan-discourse-theme-component · GitHub](https://github.com/stan-dev/stan-discourse-theme-component)

I made you admin of this repository. I think you should be able to do anything with it.

---

<div class="post-metadata">

**Author:** ![martinmodrak](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/martinmodrak/32/133_2.png) [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Post date:** [May 13, 2022, 5:18pm UTC](https://discourse.mc-stan.org/t/repository-for-our-tweaks-to-discourse/24202/3 "2022-05-13T17:18:00Z")

</div>

Took me a while, but the repo at [GitHub - stan-dev/stan-discourse-theme-component](https://github.com/stan-dev/stan-discourse-theme-component) now contains the theme and the theme is installed from the repo. Admins can now even tweak a couple settings without editing code at Customize → Themes → Components → Stan Discourse Customizations:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/7/7cd958daa894f09bc6eedeccac0f5bcea232ca90.png)
