After Effects UXP doesn’t appear to have theme colors support the way Photoshop does with CSS Variables
Examples:
var(--uxp-host-background-color)
var(--uxp-host-text-color)
While we can make workarounds in the meantime, it’s going to be important to reliably get these values from the host app in the future in case they change per install, OS and with different settings.
In CEP we could access app colors with
JSON.parse(__adobe_cep__.getHostEnvironment()).appSkinInfo.panelBackgroundColor
Which in some ways is more optimally than CSS vars, but having at least one of these methods will be important for building UXP Plugins that feel native in After Effects.