Refactor the defines and the selected font for the blue template.

It is clearer to write the code inside the function because they
belong to that template, until we use other files if we do that
at some point.