# How to set Initialization Cell style to conform with custom stylesheet?

In version 11, initialization cells got a dedicated style which has a light gray background. How can I ensure that the background of this type of cell conforms to the actual stylesheet?

Compare below the two basic stylesheets, ReverseColor and Default. The initialization cell is barely readable with the reversed stylesheet.

## 1 Answer

You need to add to the private stylesheet or edit the ReverseColor.nb with

Cell[StyleData["InitializationCell"], Background->GrayLevel[0]]


because it was missed somehow. E.g. "Code" cell has this fixed already:

Cell[StyleData["Code"],
FontColor->GrayLevel[0.9],
Background->GrayLevel[0]
]


p.s. Built in stylesheets can be edited safely when moved from $InstallationDirectory to appropriate directory in e.g $UserBaseDirectory. An example: Package editor interface

To make the copied stylesheet file editable, open Option Inspector (Ctrl+Shift+O), make sure that the Show option values field says Selected Notebook, find Notebook options > File options > Editable and set it to True.

• I'd report that. – Kuba Aug 11 '16 at 8:24
• Thanks for the answer Kuba. Actually I've already reported it before posting here, but they are slower to provide a workaround, so I expected that someone here already knows the answer. – István Zachar Aug 11 '16 at 9:11