How to change overall editor appearance?

What is the recommended method for changing the overall appearance of the editor? I’d like to make the editor window appear disabled sometimes. Thanks.

Add your own CSS rules (overriding, for example, the background color of the .CodeMirror class), and toggle some class on the editor or a parent element to select or deselect your custom styles.

Thanks Marijn!