Wolfram Research

Function Repository Resource:

DarkMode (2.1.0) current version: 2.2.0 »

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 (2) 

Open a sample notebook:

In[1]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/3ee4607c-4fef-489f-b559-8d03af42df15"]
Out[1]=

Enable dark mode:

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

Call DarkMode from within any notebook to restyle it:

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

Version History

  • 2.2.0 – 23 June 2022
  • 2.1.0 – 02 August 2021

Related Resources

License Information