How To Use Dark Mode in Google Colaboratory

Updated: September 16, 2021

Google Colab notebooks allow you to combine executable code and rich text in a single document, along with images, HTML, LaTeX and more. And here is how to turn on dark mode in Google Colab.

What’s advantages of Dark Mode Google Colab?

  • It help you save energy, mainly if you are using OLED or AMOLED screen.
  • It looks cool and gives a new and fresh overall look.
  • It doesn’t strain your eyes too much at night.
  • It help you read code in Google Colaboratory esierly

Default Google Colab’s theme

When you create a new colab notebook, the light theme is applied by default.

Default theme of Google Colaboratory

However, working in front of a bright screen for an extended period of time might be exhausting. I will help you how to switch to dark mode in google colab to help you increase productivity.

Change to Dark theme

Step 1: Open Preferences in Google Colab

Click Preferences under Tools to manage your preferences.

Change dark mode in Google Colaboratory

Step 2: Change to dark theme

From opening windows, change the theme to dark. In some cases, you can always come back and change to the default seting of light if you thinks dark mode is not comfortable for you. Don’t forget clicking Save button to make you changes become available.

Change dark mode in Google Colaboratory

Step 3: Everything is done, start coding!

Now, you can return to the colab file and notice how the cells and background have been transformed to dark hues.

Your Google Colaboratory now have dark mode


In this post, I helped you how to use dark mode in Google Colab. If you thinks it is interested, please don’t forget sharing this post to your friend, so dark mode can protect your friend’s eyes :)