Possible to colorize dynamic text?

In Bubble I have the ability to change the color of certain words, even if they are dynamic. For example, these boxes you see on the live site are a mix of static & dynamic words:

Behind the scenes, here is how one of those boxes is structured (and which parts get the color):
image

However, with WeWeb I don’t see that kind of ability when using formulas:
image

Which gives me this…and doesn’t look as good (I would love to have “Sorted By:” be a different color):
image

Is there a way around this?

Hello, you can achieve this by using simple CSS tags, which in my opinion is better than the ugly Bubble tags :slight_smile: See the screenshot I’m attaching:
Edit: you can also concat text like this:

"this" + [variable] + "is red"

That worked! I still feel like the bbcode that Bubble uses is easier, but I also am very rusty with my CSS so perhaps that’s why I think that :sweat_smile:

Regardless, thank you!

image

Hey there :wave:

Not exactly your use case @brandon but I think you both might like this approach to styling text dynamically with the switch formula so thought I’d share :slight_smile:

2 Likes

This is great! I actually have a scenario like this I’ve been thinking about doing and I didn’t realize the Switch function was the answer!

1 Like