Generalized custom blocks styling