Adjust extension to dark mode

Hi,

is there a way to find out if dark mode/theme is used so the extension can adjust its color scheme accordingly? Mostly for a start to be consistent about dark/light mode

Thanks,
Johannes