Function Repository Resource:

DarkMode

Source Notebook

Restyle notebooks into dark mode

Contributed by: Michael Sollami

ResourceFunction["DarkMode"][]

restyles the current evaluation notebook into dark mode.

ResourceFunction["DarkMode"][notebook]

restyles the notebook object into dark mode.

Details

ResourceFunction["DarkMode"] offers an alternative to the ReverseColor stylesheet (which has usability issues).
In particular, ResourceFunction["DarkMode"] supports code cells and datasets.
To revert to default styling, use ResourceFunction["DarkMode"][False].
To make ResourceFunction["DarkMode"] the default stylesheet, use ResourceFunction["DarkMode"]["SetDefault"] and use ResourceFunction["DarkMode"]["UnsetDefault"] to revert.

Examples

Basic Examples

Open a sample notebook:

In[1]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/6f3d345b-99e4-4f31-9c8d-ce964bd1e310"]
Out[1]=

Enable dark mode:

In[2]:=
ResourceFunction["DarkMode"][obj];

Call DarkMode from within any notebook to restyle it:

In[3]:=
ResourceFunction["DarkMode"][]

Publisher

Michael Sollami

Version History

  • 2.2.0 – 23 June 2022
  • 2.1.0 – 02 August 2021
  • 2.0.0 – 16 June 2020
  • 1.0.0 – 31 March 2020

Related Resources

License Information