Dark mode is becoming increasingly popular in theme design. The developer currently has three options in this case:
- Light or Dark mode.
- Light and Dark mode with switch.
- Dark mode depending on operating system preferences.
So, I suggest adding a {{@site.dark}}
helper. The developer could (at his discretion) use this for one of three behaviors.
It would be convenient for both - Ghost users and developers to be able to “switch” in the Ghost admin to the dark theme mode.
Example Code:
<body {{#if @site.dark}}class="dark-mode"{{/if}}>