With the Figma plugin Dark Mode Magic, you can convert your design into a dark mode UI with a single click.
Dark Mode Magic.
Search for Dark Mode Magic in Resources and launch it.
Open the design file or frame you want to switch to and run the plugin.
Note that this plugin does not work well with gradients, like this background, so it is recommended to apply it to single-color designs.