How to change container color based on tag

Thanks for the reply, I’m confused as to how you achieved that. Please can you explain some more? Thank you.