CSS Variables
Since UXP v3.0
UXP supports the use of CSS Variables, otherwise known as Custom Properties. This feature, combined with support for the prefers-color-scheme media query makes it extremely easy to create custom themes that respond to the selected theme in the host application.