10
$\begingroup$

Now I can use this function:ResourceFunction["DarkMode"][] to use the dark mode, but when I turn on Mathematica again, the black mode will not work. How can I set to use the black mode permanently.

Picture

enter image description here

$\endgroup$
7
  • 3
    $\begingroup$ And how can one turn it off again...? $\endgroup$ Apr 11 '20 at 14:32
  • $\begingroup$ The above mode can not be good for your eyes. I would use it with caution. $\endgroup$
    – Nasser
    Apr 11 '20 at 18:29
  • $\begingroup$ @Nasser care to explain why it's not good for your eyes? $\endgroup$ Apr 11 '20 at 21:19
  • 1
    $\begingroup$ @HenrikSchumacher If you go to Format -> StyleSheet Default will be unselected...selecting this again will ask to destroy current settings, and will revert to default stylesheet. $\endgroup$ Apr 11 '20 at 21:20
  • 3
    $\begingroup$ @morbo Dark themes can put more strain on your eyes in high-light conditions, since it washes out the text. 100% contrast (white text on a black background) is typically harder to read and may cause more eye strain If you google the subject you could see about this. I can't handle black or dark background on computer screen, it leaves spots in my eyes and makes it hard to look at for long time. May be for younger people it is ok. I prefer light theme. light white background and black text. $\endgroup$
    – Nasser
    Apr 11 '20 at 21:30
5
$\begingroup$

You can change the default stylesheet as follows:

  1. Go to menu: Format > Options Inspector

  2. Set the scope dropdown menu to "Global Preferences"

  3. Download the stylesheet notebook of ResourceFunction@"DarkMode" from here.

  4. Set the DefaultStyleDefinitions path to wherever you saved the notebook.

enter image description here

  1. Now when you do File > New (cmd + n), you will have what you want.

enter image description here

Notes:

  • To undo this change simply set DefaultStyleDefinitions back to "Default.nb".
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.