To make writing in the dark more comfortable, there is now a dark mode for the editor. You can set this in the layout settings of your book.