How to change the whitespace (non-printable characters) colors based on current theme in Visual Studio Code?

I want to customize the appearance of all non-printable characters (spaces, tabs, end-of-line markers, etc.) in VS Code. Rather than assigning fixed colors, I’d like their foreground and background colors to automatically follow or be based on the active theme’s foreground and background colors.

Actually, I want the non-printable characters to be rendered using the current theme’s background color as their foreground color, and the current theme’s foreground color as their background color—essentially an inverted color scheme, similar to how Notepad++ displays them in the screenshot.

Any tips?

Notepad++ screenshot below:

"N++ do it right"