Using bootstrap color in webstyle

In my web project I’m want to set a red border around a field when the input is invalid.
Afaik the correct way is by using WebStyle.
For the uniformity I want to use the Bootstrap red color (indicator danger) for the red border.
Is it possible to use the danger color from Bootstrap or can I only use a hardcoded color (&cDC3545)?
I hope that it is possible to use the Bootstrap color somehow. Reason, looking forward into the future, if the color changes in Bootstrap I don’t have to redefine the WebStyle color(s).

Try:

me.style.Value("border-color") = "var(--bs-danger)"
4 Likes

Brilliant! Thank you, AlbertoD.

1 Like