To enable the dark mode in Toha v4.0.0, simply set the darkMode.enable field to true under the params.features section in your config.yaml file. For example:

params:
  features:
    darkMode:
      enable: true

Congratulations! You are all set. You can now enjoy the dark mode in your site. The dark mode will obey user’s system preference.