Styling
Notebook UI is styled using Tailwind CSS framework, however, there are predefined empty CSS classes for certain elements:
bodythe whole documentmainmain window.ccontainercells container (extends to the full size of main).cgroupa single group of cells: 1 input + outputs + tools.cframea single inner group of cells: 1 input + outputs.cbordera vertical line displayed at the right side from the cell group.cwrapperan input/output cell wrapper.cseparatora thin space between cells.cinita class for initialization cells.cina class for input cells parent element.couta class for output cells parent element.ttinta class applied to focused cells.cgi-icoa class for initialization cell group icon (usually a teal colored dot)#sidebar-rightstyles for the right sidebar in exported HTML files
The vertical border-marker shown on the left side of the input cell can be styled using the following selector with pseudo-element:
.cin > :nth-child(2)::after {
}
To change the background of the whole notebook apply !important to both body/main and set the background to the cell container as well:
.ccontainer {
background: lightblue;
}
body {
background: lightblue !important;
}
main {
background: lightblue !important;
}
Some input cell types can be differentiated too (a child element of one styled by .cin):
.clang-generica class for any unknown cell type / language.clang-markdowna class for input markdown cells.clang-htmla class for input html cells.clang-wlxa class for input wlx cells.clang-jsa class for input js cells.clang-slidea class for input slide cells
For wolfram language input cells the class field of the editor is empty.
The following classes are also available to style:
.cout.markdowna class for markdown output cells.markdown h1a set of selectors to style various markdown element.markdown h2- ...
Root styles
The following styles are applied to :root and defines editor's colors and fonts for UI
font-size: medium;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--editor-key-meta: #404740;
--editor-key-keyword: #708;
--editor-key-atom: #219;
--editor-key-literal: #164;
--editor-key-string: #a11;
--editor-key-escape: #e40;
--editor-key-variable: #00f;
--editor-local-variable: #30a;
--editor-key-type: #085;
--editor-key-class: #167;
--editor-special-variable: #256;
--editor-key-property: #00c;
--editor-key-comment: #940;
--editor-key-invalid: #f00;
--editor-outline: #696969;
To override them - redefine :root class.
Local Styling
HTML or WLX can be used to customize them locally for an individual notebook document.
See also: Templates.
Global Styles
From the settings menu a global styles can be set

Note, that global styles are copied to exported Static HTML files as well