Is it possible to get the current theme via JavaScript?

I’d like to perform some actions, mainly UI related, based on what the current theme is. Is there a way to get this information through the UXP API? I didn’t see anything in the docs, but it’s possible I missed it.

Check the readout() function in @assitburn theme switcher plugin. This might give some insight

This is exactly what I needed. Thank you!