The default white is very tiring for the eye after some hours.

  • $\begingroup$ Many people have their computer displays set too bright, which cause eye strain. That my be your problem. Try reducing the display's brightness. $\endgroup$
    – m_goldberg
    Commented Apr 19, 2014 at 16:52
  • $\begingroup$ closely related: Invert Colors Stylesheet White on Black $\endgroup$
    – Kuba
    Commented Apr 30, 2015 at 11:16
  • $\begingroup$ Was hoping they would add this in their Mojave update, but alas... $\endgroup$
    – Max Coplan
    Commented Sep 13, 2019 at 1:18
  • $\begingroup$ I had this issue with my eyesight (light sensitivity and worse) and I am very happy to have found the solution. I told my eye doctor to give me computer glasses so that the formula is optimized for the distance between my eyes and the computer monitor. The resulting eyeglasses changed my life. $\endgroup$ Commented Nov 24, 2020 at 20:53
  • $\begingroup$ There is a website draculatheme.com/wolfram-notebooks to provide this stylesheet $\endgroup$
    – partida
    Commented Oct 19, 2021 at 5:03

5 Answers 5


I created own dark theme for Mathematica. It looks like dark theme

All stylesheets needed for that you can found here [repo]=https://github.com/dmarienko/Matlab/tree/master/.Mathematica You need to copy .nb files from repo [repo]/SystemFiles/FrontEnd/StyleSheets/ to your local Mathematica StyleSheets folder. After that you can choose stylesheet named as Dimad.nb (You also may set it as default stylesheet). Also there is Plot's functions color palette for dark theme in [repo]/Kernel/init.m. You need to add it's content to your local .Mathematica/Kernel/init.m file. Hope it helps.

PS: All was done for Mathematica 9.0, I didn't test it for other versions.

PPS: It uses Ubuntu Mono as default font. It can be obtained here http://font.ubuntu.com/

  • 2
    $\begingroup$ This is truly beautiful. Thanks, community bot! $\endgroup$
    – LLlAMnYP
    Commented Apr 30, 2015 at 11:49
  • $\begingroup$ I tried to use your stylesheet and I got an error saying that some file was not found. This can be corrected by replacing StyleDefinitions->FrontEnd`FileName[{$RootDirectory, "home", "dima", ".Mathematica", "SystemFiles", "FrontEnd", "StyleSheets"}, "Dimad.nb", CharacterEncoding -> "UTF-8"] with StyleDefinitions->FrontEnd`FileName[{$UserBaseDirectory, "SystemFiles", "FrontEnd", "StyleSheets"}, "Dimad.nb", CharacterEncoding -> "UTF-8"] in "Dimand.nb" $\endgroup$
    – sebhofer
    Commented Aug 19, 2016 at 9:23
  • 1
    $\begingroup$ @sebhofer I've put the Dimad.nb in the Stylesheet Mathematica folder. I open a new notebook, and change the style sheet in the format drop-down menu. But nothing happens. I still get a white background... Could you help me? $\endgroup$ Commented Jul 31, 2017 at 9:20
  • 1
    $\begingroup$ How did you manage to get a dark colour for the window frame, scrollbars etc? When I try your config, it only applies to the notebook contents. $\endgroup$ Commented Apr 8, 2019 at 5:14
  • $\begingroup$ @EliasRiedelGårding I could be wrong, but it looks to me like they are using Mathematica on Linux, and that's simply the default frame and scrollbar style on that OS. If you're using Windows or macOS, you may be stuck with the default colours there. I know on macOS, my frame is a light colour despite having the systemwide "dark theme" preference enabled. $\endgroup$
    – MassDefect
    Commented Apr 16, 2019 at 18:32
  1. Built-in Format -> Stylesheet -> ReverseColor:

    I don't know how about you but I missed the fact it is built-in since V 10.

    enter image description here

  2. Custom one

    I didn't like to coloring in ReverseColor much so I patched it a little and added to my https://github.com/kubaPod/DevTools

    I was focusing on making it neat for .m files rather than .nb so it may look weird in place of default styles.

    See https://mathematica.stackexchange.com/a/164654/5478 or Github readme for installation steps.

    enter image description here

  • 1
    $\begingroup$ Now how can I set this as the default... $\endgroup$
    – Andrew
    Commented Feb 8, 2016 at 17:10
  • 1
    $\begingroup$ This is probably a bug but with Mathematica 10.4 Student Edition (on Linux), the output box does not invert color properly. imgur.com/DUPlpI1 $\endgroup$ Commented Jun 30, 2016 at 19:45

Wolfram Repository Function (WFR) entries:

(DarkMode is hard to find using WFR's search interface...)

  • 1
    $\begingroup$ +1 since you helped me learn there is is a ResourceFunction called "Bob". $\endgroup$ Commented Nov 24, 2020 at 17:31
  • 1
    $\begingroup$ I was convinced DarkMode was removed, I couldn't find it at all. Nice find! $\endgroup$ Commented Nov 24, 2020 at 19:34
  • 1
    $\begingroup$ @bobthechemist Is talking about this resource function: Bob -- very useful and needed function. (After you see it used...) $\endgroup$ Commented Nov 24, 2020 at 23:21

I also created my own Mathematica stylesheet (github.com/MJSteil/Mathematica-DarkTheme) which includes a dark themed Screen Environment.


There are multiple advantages of defining the dark theme for a given stylesheet using a so called style environment in the stylesheet (in addition to the canonical environments Working, Printing and Presentation) instead of using a separate stylesheet for the dark theme.


While I occasionally like working with a dark theme, for output and presentation a light themed notebook often feels/looks better in my opinion. Switching between Screen Environments using the front end/menu (Format->Screen Environment->...) or e.g. SetOptions[EvaluationNotebook[],ScreenStyleEnvironment->"..."] is in my opinion much more convenient than changing the actual stylesheet of the notebook (which might delete/overwrite custom/private style definitions).

The colors of my dark theme are loosely based on the Dracula theme in JetBrains CLion and I used strategies and adapted style definitions from various sources/dark themes to piece together my stylesheet. The stylesheet is not perfect and some modifications in the notebooks and or the stylesheet itself (for e.g. plotting) might be advisable/necessary to use the dark theme as a default. I mainly use it for coding.

Apart from the definitions related the dark working environment WorkingDark my stylesheet includes modifications of the Printing environment and some modified and special cells. The most notable changes here are that I use Code cells which per redefined default are not Initialization Cells for most of my input in the notebooks since I like to manually indent my code (I am unhappy with the default code indentation of Mathematica). Further more I have defined NonEvaluating versions for most cells (e.g. Section, Input, Code and more) which I use extensively in my notebooks to temporarily or in some cases permanently exclude code and entire sections of code from evaluation. Those NonEvaluating cells have a distinct (gray) formatting and are implemented by setting PrivateCellOptions->{"CellGroupBaseStyle"->{Evaluatable -> False}} or Evaluatable->False in their styles.

Further -- non-stylesheet -- modification one could consider when using dark themed notebooks (of any kind) is to use a custom MiscExpressions.tr file in $UserBaseDirectory\SystemFiles\FrontEnd\TextResources which uses a custom CellInsertionPointBitmap.png for the "CellInsertionMenu" since the default graphics of Mathematica includes a gradient which makes the icon almost invisible on a dark background. Another possible and potentially useful modification/addition to the front end related to the NonEvaluating cells is the addition of

Item[KeyEvent["Keypad1", Modifiers -> {Control}], 
        SelectionMove[InputNotebook[], All, Cell];
            If[StringContainsQ[style, "NonEvaluating"],
                FrontEndTokenExecute[SelectedNotebook[], "Style", StringReplace[style,"NonEvaluating" -> ""]];,
                FrontEndTokenExecute[SelectedNotebook[], "Style", StringJoin["NonEvaluating", style]];

to a user-version of KeyEventTranslations.tr under $UserBaseDirectory\SystemFiles\FrontEnd\TextResources\Windows (or corresponding folders for other operating systems) which switches the cell style of a selected cell between the plain and NonEvaluating version of the cell when pressing Controll+Keypad1. This does not work as expected/intended when selecting cells of multiple/different styles but works very well for cells with the same style/type.

Disclaimer: Modification of system files like MiscExpressions.tr and KeyEventTranslations.tr are "likely prohibited by the EULA" [see e.g. the discussion in https://mathematica.stackexchange.com/a/15408/] and I therefore do neither recommend nor provide such modified files. I am only pointing out the theoretical technical possibility of such modifications. This disclaimer does not concern the use of user defined stylesheets.

  • $\begingroup$ Great! Please consider submitting a Wolfram Resource Function as the ones linked in this answer. $\endgroup$ Commented Nov 25, 2020 at 15:23

The quickest thing might be to modify the default stylesheet and save it as a new one. You can find a good description of how to do that on David Park's Mathematica page http://home.comcast.net/~djmpark/Mathematica.html.

If you want a ready-made stylesheet, I've found David Park's PresentationsStyle stylesheet especially easy on the eyes. It not only uses a light brownish background but changes other styles so as to harmonize. If you own Park's Presentations add-on, then you already have this stylesheet. If you don't, you can obtain it as part of his newly-available FreePresentations add-on (which allows you to read documents prepared with the full Presentations but not conveniently to author new ones):


  • 3
    $\begingroup$ Links are not reachable anymore $\endgroup$
    – Kuba
    Commented Mar 17, 2017 at 22:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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