|

How To Enable Dark Mode In Stable Diffusion [Automatic1111]

Do you want to enable dark mode in Stable Diffusion Web UI? Well, you’ve come to the right place. 

If you’re using Automatic1111, you can enable the dark mode UI very easily by just changing one setting in your configuration. 

In this guide, I’ll show you step-by-step how to enable the dark theme mode in Stable Diffusion. 

So, let’s not waste any more time and jump straight in. 

How To Enable Dark Mode In Stable Diffusion Web UI

The process to enable dark mode in Stable Diffusion is very quick and simple and requires you to add just one line in your configuration. 

Here are the instructions on how to do it: 

Before we begin, make sure Automatic1111 is not running. 

Step 01. Go to your Stable Diffusion directory (stable-diffusion\stable-diffusion-webui) and locate the webui-user.bat file. This is the file we use to run Stable Diffusion. 

Step 02. Right-click on this file and click on the Show More Options button. 

Enable Dark Mode In Stable Diffusion - Edit UserBat File

Step 03. Now click on the Edit option which opens the file in a Notepad.

Enable Dark Mode In Stable Diffusion - Edit File

Step 04. In the file, you’ll find a line “set COMMANDLINE_ARGS=”

Add the following line right after the above line: –theme dark

Enable Dark Mode In Stable Diffusion - Add Theme Dark Line

This is how your file should look like after adding this line: 

Step 05. Save and close the file. Now, run Stable Diffusion again and you’ll find the interface now has dark mode enabled. 

Automatic1111 - Default Dark Theme
Default Dark Theme

By adding one small line in the configuration file, you can enable the dark mode UI in Stable Diffusion. 

Change Stable Diffusion Theme

Besides enabling dark mode UI in Stable Diffusion, you can also change the theme completely. Here’s how you can do it: 

Step 01. In your Automatic1111 Web UI, go to the Settings > User Interface page. 

Step 02. On this page, you’ll find a Gradio Theme dropdown where you can change the interface theme. 

Enable Dark Mode In Stable Diffusion - Change Theme

Step 03. Select the theme you want to choose from the dropdown. 

Enable Dark Mode In Stable Diffusion - Themes Available

Step 04. Click on the Apply Settings button and reload the UI. Now, your theme will be completely different in Automatic1111. 

Automatic1111 - Gradio Glass Theme
Gradio Glass Theme

This is the best way to completely switch to a new interface design for Stable Diffusion. There are multiple options you can choose from. 

Here’s what each theme in Automatic1111 looks like: 

FAQs

Here are some frequently asked questions about enabling dark mode UI in Stable Diffusion:

Do I have to edit the file every time I run Stable Diffusion? 

Once you’ve added –theme dark to your webui-user.bat file, you won’t have to edit the file again to enable the dark mode UI. 

How do I revert to the original theme? 

You can revert to the original light mode theme UI by editing the webui-user.bat file and removing the –theme dark line from the file. 

Can I apply dark mode to Stable Diffusion temporarily? 

Yes, you can enable the dark mode UI in Stable Diffusion temporarily by adding /?__theme=dark at the end of the URL in your address bar.
 
This is how your URL should look like if you want to enable dark mode temporarily in Stable Diffusion: 127.0.0.1:7860/?__theme=dark

Conclusion 

Changing your Stable Diffusion UI to a dark theme is very simple and easy as evident from this guide. With the dark mode enabled in Stable Diffusion, you can work more comfortably reducing eye strain. 

Apart from this, you can explore various theme styles available in Automatic1111. There are many great themes you can choose from to have a pleasant experience while using Stable Diffusion. 

If you have any questions about this tutorial, feel free to drop your questions below. 

Stable Diffusion Prompt Organizer

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.