I am playing with prism.css, there is a css declaration like this:
.token.function, .token.namespace, .token.pseudo-element, .token.class, .token.class-name, .token.pseudo-class, .token.id, .token.url-reference .token.variable, .token.attr-name {
color: red;
}
and if I want to overwrite this based on a body class (dark):
body.dark .token.function, .token.namespace, .token.pseudo-element, .token.class, .token.class-name, .token.pseudo-class, .token.id, .token.url-reference .token.variable, .token.attr-name {
color: blue;
}
it will always apply color: blue, even the body doesn't have the ".dark" class. However if I left only one css class like this:
.token.function {
color: red;
}
body.dark .token.function {
color: blue;
}
then this will work based on the body class.