Adding component styles automatically