extract some common styles for preview