Board Thread:News and Announcements/@comment-26235098-20150803143307

I have introduced "wrapper" templates for each of the difficulty colors.

Please use these templates, instead of hardcoded HTML colors, whenever coloring something for difficulty.

Using these templates will help assure consistency in the colors used, and will faciliate any need to change the color coding scheme, or even just make minor adjustments.

There is a template for each difficulty. Without parameters, it will return the background color for the difficulty, as an HTML color code (eg: "blue" or "#FF00FC"). If you pass it a parameter, it returns the appropriate foreground color for writing against the difficulty background (white for some, black for others. You can use these templates anywhere you would an HTML color code.

The new templates are:


 * None: ColorN
 * Very Easy: ColorVE
 * Easy: ColorE
 * Somewhat Easy: ColorSE
 * Medium: ColorM
 * Somewhat Hard: ColorSH
 * Hard: ColorH
 * Very Hard: ColorVH
 * Insanely Hard: ColorIH
 * Impossible: ColorI
 * Variable: ColorV

Example 1 - set font color and background:

insanely hard

Result: insanely hard

Example 2 - set font color using background color:

very easy

Result: very easy

Example 3 - table with colored cell:

Result: