Add example from StackOverflow from https://tex.stackexchange.com/questions/146529/design-a-custom-beamer-theme-from-scratch as starting point