25
$\begingroup$

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

$\endgroup$
  • $\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 Apr 19 '14 at 16:52
  • $\begingroup$ closely related: Invert Colors Stylesheet White on Black $\endgroup$ – Kuba Apr 30 '15 at 11:16
  • $\begingroup$ Was hoping they would add this in their Mojave update, but alas... $\endgroup$ – Max Coplan Sep 13 '19 at 1:18
27
$\begingroup$

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/

| improve this answer | |
$\endgroup$
  • 1
    $\begingroup$ This is truly beautiful. Thanks, community bot! $\endgroup$ – LLlAMnYP Apr 30 '15 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 Aug 19 '16 at 9:23
  • $\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$ – An old man in the sea. Jul 31 '17 at 9:20
  • $\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$ – Elias Riedel Gårding Apr 8 '19 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 Apr 16 '19 at 18:32
25
$\begingroup$
  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

| improve this answer | |
$\endgroup$
  • $\begingroup$ Now how can I set this as the default... $\endgroup$ – Andrew Feb 8 '16 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$ – cutculus Jun 30 '16 at 19:45
1
$\begingroup$

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):

http://home.comcast.net/~djmpark/DrawGraphicsPage.html

| improve this answer | |
$\endgroup$
  • $\begingroup$ Links are not reachable anymore $\endgroup$ – Kuba Mar 17 '17 at 22:01

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.