dynamically generating style tag for mastery colors