Style guide - HearthStats/hearthstats GitHub Wiki

If you are planning to submit changes/additions to the Hearthstats code, please keep the following style guidelines in mind. It will help keep the site looking uniform and well ordered, while also speeding up code review and limiting the amount of changes that may need to be made for acceptance.

Class Colors

The following colors are the "standardized" colors for WoW classes. Except where otherwise noted, these are the official hex codes for the classes as defined by Blizzard.

  • DeathKnight - #C41F3B (Unused but already configured in css for future use)
  • Druid - #FF7D0A
  • Hunter - #ABD473
  • Mage - #69CCF0
  • Monk - #00FF96 (Unused but already configured in css for future use.)
  • Paladin - #F58CBA
  • Priest - #999999 (This color should be white, but is grey for readability.)
  • Rogue - #f1c40f (A muted gold as the official shade of yellow is hard on the eyes.)
  • Shaman - #0070DE
  • Warlock - #9482C9
  • Warrior - #A57A4D

System Colors

The following colors are the standards used for the related subjects when a color is needed.

  • Arena References - these should use the color blue as defined in the css as #27a9e3
  • Arena Match Wins - these should use the color blue as defined in the css as #27a9e3
  • Arena Match Loss - these should use the color orange as defined in the css as #fcb322
  • Constructed Win - these should use the color green as defined in the css as #3cc051
  • Constructed Loss - these should use the color red as defined in the css as #c0392b
  • Decks - these should use the color purple as defined in the css as #852b99