Add define style function.