Export the getStyleFunction