The discussion revolves around creating theme settings in Discourse themes. Biscuit asks how to create theme settings when developing a custom theme, noting that imported themes include a YML file that defines these settings. tshenry directs them to a guide on adding settings to themes and clarifies that GitHub isn’t required, recommending the Discourse Theme CLI as a helpful tool. sarahann then asks how to access theme settings in JavaScript, initially encountering an error due to incorrect variable name and file placement. tshenry corrects that the variable is settings, not themeSettings, and sarahann confirms the issue was resolved after adjusting both the variable and file location.
The Github files include a YML file with the theme settings inside it. The “Import theme” process presumably uses that YML file to make the setting fields appear. But, when I’m writing my own theme (not plugin), how do I create theme settings / parameters like this?
Looks like it can’t be done via the interface and requires the files to be placed on Github. Never posted on Github before, so will have to give it a try, to test myself.