Dusky Dark Mode offers an awesome way to add a toggle to the WordPress menu. Follow the steps below:
After installing the Dusky Dark Mode plugin, go to Dark Mode > Toggle Switch > Frontend > Menu.

In the settings, you’ll find an option called “Select Available Menu.” Click the dropdown and choose the menu you want to use. If you haven’t created a menu yet, create one first, then return here to select it.

The menu toggle has two types:

If enabled, the toggle will move to the left side of the menu. Default: Right.

Select the size of the toggle switch:

The Dusky Dark Mode plugin allows you to create a fully customizable toggle for dark mode. For further assistance or issues, feel free to contact CodeConfig.