If you don't like the use of !important in the rule, another option is to reduce the specificity in https://github.com/deathau/cm-show-whitespace-obsidian/blob/main/styles.scss#L15 from body.plugin-cm-show-whitespace { to .plugin-cm-show-whitespace {. Then the example CSS doesn't need !important. There may be other side effects I'm not aware of, though.
If you don't like the use of
!important
in the rule, another option is to reduce the specificity in https://github.com/deathau/cm-show-whitespace-obsidian/blob/main/styles.scss#L15 frombody.plugin-cm-show-whitespace {
to.plugin-cm-show-whitespace {
. Then the example CSS doesn't need!important
. There may be other side effects I'm not aware of, though.