Using the styled() function is a great way to add pop & pizzaz to your database.
The styled() function takes up to 3 elements – styled(text, color, icon).
Text: This element can be hardcoded or any text field. This is the only required field for the styled() function.
Color: Indicates what color the formula field will be. You can use a hex number, or a simple statement of “red”.
Icon: The icon you want to show.
So if you want your text to be orange and have a warning the formula would look like this:
styled(“This is a Warning”, “orange”, “warn”)
And this is what you would get:
CLICK IMAGE TO ENGLARGE