Ideally, inline styles are not the best practice to follow instead follow BEM methodology to build your components and create multiple variations to it and control that via style system in AEM 6.4Refer : Adobe Experience Manager Help | Understanding how to code for the AEM Style System