Refactor style into less variables for #584

Move hardcoded style definitions into less variables.