I think this happens on topics you have read because of the changes in
UX: Variable additions (#33473) · discourse/discourse@20f57ae · GitHub,
which added a separate background color for visited topics.
You could probably fix that with your own CSS until the theme component is adapted, but I can’t check how right now.
Issues with components that aren’t official should generally be reported in the topic.
