When selecting font or background colors, there are options to select Bootstrap custom properties like “var(–bs-danger)”.
However, when selecting the colors for spans (for both font and background color), this option doesn’t exist. Furthermore, even if I manually insert the custom property as a color, the software doesn’t allow it.
I’d love to see the option to select Bootstrap custom properties when selecting colors for spans.
This is why the Span Component exists. So you can style portions of your text with the Options panel or custom CSS rules.
The icons in the top menu for styling text are basically “shortcuts” to quickly insert inline spans with inline styling. Personally, I wouldn’t use them excessively as they’ll “bloat” your HTML.
Drag and drop a Span Component directly into the text…
Double click the span to edit the text and type your desire text (Ipsum) and then delete the second Ipsum
Select the Span, go to the Options panel > Text Options > Color and choose Danger. Voila, you have your custom colored text var(–bs-danger) inside your <p> element.
Thank you for starting this thread! It appears that there is a problem with the color picker. Normally when you click the Design tab you should see the CSS color variables like this:
However they are missing when the color picker is activated while editing text. We will fix this in our upcoming update. When the fix lands you will be able to just click a color variable from this tab.
The bug you’ve uncovered is the program’s failure to display the Bootstrap variable colors along with the CSS Colors in the Design tab when you try to style inline text.
The Design tab in the color selector palate should normally show the standard Bootstrap variable colors, and below it, colors that exist in your design via custom CSS rules you’ve added. That’s why in your example, you’re only seeing your CSS colors.
When they fix it, it should look like this… (I’ve used Photoshop to artificially increase the height of the color palate so you can see all the colors. Normally you’d have to scroll to see them.)
Talking about the colors i wish there is a list view so i can see which color to pick. Sometime i want to use my custom variables but is not easy to see from the palette.