How to get Bootstrap Fill Color(s)

Hello all,

How can I get the name of the fill color used in the selected bootstrap theme?

Thanks,
Tim

This is a major part of why I recommend using <raw><svg ... /></raw> :smiley:
When it’s used in a WebLabel, a WebButton caption, or similar component, it automatically adopts the native text color – including dark mode support.

2 Likes

ColorGroup.NamedColor can return the Bootstrap values since 2024r3 :slight_smile: (and it supports custom Bootstrap themes)

Var c As ColorGroup = ColorGroup.NamedColor("primary")

The companion blog post:

2 Likes

But where do I find the list of named colors? That is what is really missing I think.

Hi Tim,

Couldn’t get that to work. I’ll send a PM.
Tim

They’re from Bootstrap: Color and background · Bootstrap v5.3

3 Likes