Enable Dark Mode

Toha v3.6.0 has introduced dark theme. Thanks to @donfiguerres. This guide will show you how to enable it.

At first, make sure you have updated the theme version to v3.6.0 or later. Then, add the following section under params section of your config.yaml file.

  darkMode:
    enable: true
    provider: darkreader
    default: system

Here,

  • enable: Specifies whether to enable the dark mode or not.
  • provider: Specifies the underlying provider that will be used to provide the dark mode functionality. Currently, it supports only darkreader. We may support other providers in future.
  • default: Specifies which theme to use by default. It supports system, light and dark values.