So it sounds like in your custom CSS you are just overriding CSS variables? You’ll need to target specific elements to do what you want.
First, I suggest reviewing this post if you haven’t already Getting comfortable with Obsidian CSS
Highlighted text uses the .cm-formatting-highlight
class in edit mode and <mark>
tag in preview mode.
Bold text uses the .cm-formatting-strong
class in edit mode and <strong>
tag in preview mode.