Pulled out swatch styling into a mixin for easier maintenance.