It is essential to provide a smooth and comfortable design and theme to your visitors. And we believe that you may be offering a fantastic user interface to your visitors.
But are you allowing users to switch between light and dark theme so that your discourse forum always feels comfortable? So this is going to be a step by step guide on how to allow users to change Dark/Light theme on discourse.
In this article, we will see how you can toggle between your discourse light and dark theme. We will also look at how we can allow users to choose their preferred light/dark theme.
Steps To Change Light/Dark Theme
Firstly, login to your discourse admin account. Then click on the menu icon, located beside your profile picture, on the top right corner of your screen. Then, click on the settings option.
Once you are in your admin dashboard, click on the Customize option from the top menu. You would now see two theme options here, Light and Dark. You will also notice a green tick beside the Light theme, meaning that the Light theme is your current default theme.
If you would like to change it to the Dark theme and also set it as a default, just click on Dark and then select “Theme is enabled by default”.
Now when you visit your forum’s homepage, it would have been transformed into the Dark theme. To switch back to the Light theme, all you have to do is follow the same procedure above and choose Light instead of Dark.
Steps To Allow Users To Toggle Between Dark/Light Theme
Discourse also provides a feature wherein users can toggle between Light or Dark theme according to their preference. To allow your users to toggle between the themes check on the “Theme can be selected by users” option in both Light and Dark theme options.
Note: By enabling this feature, an individual user can change his/her theme to Light or Dark for his/her individual account. For example, if a user sets Dark theme, as their preference, for their account, it will not affect other users theme or the default theme of the entire website. The change of theme is account specific.
How Can Users Toggle Between Light/Dark?
Users can set their preference between Light/Dark from the settings. You can follow the below steps to change your preference.
Click on your Profile picture, located on the top right side of the page and then click on the settings gear icon.
Once you areinm the settings screen, head over to the Interface section.
Under the theme option, you can set Light or Dark as your preference. Save and refresh your homepage. Your preference should now be active.
Allow users to toggle between the Light and Dark theme is a great idea because it adds a cushion of comfort for the users. Additionally, it will also motivate users to spend more time on your forum.
If you found this article helpful, do not forget to hit the share button. And if you have any doubt, query or suggestion, leave a comment below.