How to obtain the theme of figma inside plugin

If I want to display the plugin with light/dark themes based on the figma app’s plugin, what is the plugin API to get this value? Or is this possible at all with the current plugin API?