Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

AEM Style System, how can I re-use options for many components?

Avatar

Level 6

Most of my AEM component's requires a magins optons. What can I do to ensure that all component's have style system for the margin options?

2 Replies

Avatar

Community Advisor

Hi,

 

You can create the common dialog having margin options and use below options to include common dialog items to a component

 

sling:resourceType: granite/ui/components/coral/foundation/include

path: /apps/myproject/components/include/utilities/cq:dialog/content/items/tabs/items/utilities

 

Also, write a common sling model which reads the margin values and add the values in sightly.

Avatar

Level 6

Thanks for the reply, but I only want to use style system at this point, how can I do this?