I was the author of the original post. But it was using Classic Apps.
On the new Glide Apps, as far as I aware, there are no ways for you to dynamically assign custom color, since CSS lives in a manually entered box and applies globally. In Classic Apps, you can use Rich Text and point to a column value to do so.