How to apply a theme color to a div


#1

Sorry if this seems stupid but I am going round in circles trying to dynamically set a div’s background color based on a theme name.

This works: [style.background]=“red”

but instead of red I want to use the variable danger.

Can anyone point me in the right direction?