Search code examples
csscontent-management-systemaemaem-6

How to add custom styles for Aem proxy components?


I have created one component which extends core image component. So i add new features to it called as Title. I am not able to add styles for the title component. What is the approach to add the styles for proxy components


Solution

    1. First method: Define the css class in the more generic client library used for your project and include it in your component.

    /apps/project/clientlibs include in the html

    1. Second method: You can create custom client library folder under your proxy component and define your css class in that to pick styles.

    /apps/project/imagecomponent/clientlibs