Factor out styles into lib