Better to ask in main card-mod theme. Check the 1st post - “fantastic” link - input select.
Oops, this is not an input select. Just a codemirror. Well, check source code in Frontend for codemirror, perhaps it mentions this variable.
Card-mod is probably a solution in 95% of the cases Just realizing that the code-mirror stuff might be out-of-scope for what is configurable in HA.
Some searching in the codemirror source code did not get me there
Did find the reference “cm-selectionBackground” in the codemirror.ts file: link
In this code I found:
var(--code-editor-background-color
Which you can set in the theme - works great. (except that I’m only looking to modify the “selection” background color).
The other items found around line 56 do not seem to be relevant in my scenario.
(like --code-mirror-height and --code-mirror-max-height)
Pink? Because I would definitely notice However, the result is still that it uses the old color with transparency 0.1.
My theme did have an error that could have caused a problem:
Metro OrangeDJ:
<<: *common-card-mods
card-mod-theme: "Metro Orange DJ"
Think the space between “Orange DJ” should not be there because it’s also not there 2 lines above. After fixing it the result is still the same: no background color change.