Get Theme Colors from Plugin

I develop a plugin that shows a dialog interface. I would like to make the dialog’s colors match the user’s current theme.

Could you provide a way to get the current value of different css variables from within the plugin?