[Product Post] Theme Tip: Changing Message Colors
When you create you message you have an opportunity to select the “Appearance” of the message. You can select one of four types: Casual, Information, Alert and Warning. Vanilla already has default colors associated to these four types. For example, a Casual Message will look like the following:
Should you wish to change the color of the message, you can apply the change to the appropriate CSS class. To change Casual to be a dark green, add the following to your custom CSS:
.CasualMessage {
background-color: #233302 !important;
}
This will be the result:
If wish to change the CSS for the other Message types, the following are the appropriate classes.
.AlertMessage
.CasualMessage
.InfoMessage
.WarningMessage
#Bonus Tip#
If you are looking to change the color of links in the messages, here is the code to use:
.CasualMessage a { color: #f00000; }
.AlertMessage a { color: #f00000; }
.InfoMessage a { color: #f00000; }
.WarningMessage a { color: #f00000; }
In the above example, the links will be red. To get different hex color codes you can use this website.
We hope you found these tips helpful. Check under the product category for more product tips.