
I’d like to apply CSS to a Bokeh plot. Most specifically I have added plots to a page on which colors are defined in CSS variables and styles and elements on those pages take colours from such vars in the form of (to share on example style in use):
#header {
width: 100%;
padding: 10px;
box-sizing: border-box;
overflow: hidden;
background-color: var(--background-header);
color: var(--text-header);
}
To wit, I don’t want to specify the colours in the Python code server side, but use the same CSS styles and variables other elements do.
I imagine that a plot and all its elements have classes that could be styled and find a clue here:
but I have struggled to find any documentation or examples.
Can someone point me to some? Or lend a little guidance. My immediate interest is in choosing colours that align with the rest of the pages styling and are available in CSS variables. But more generally it would be good to know, have a reference for, how generally to style Bokeh graphs with CSS.

