Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

style customization through a config file

Avatar

Level 2

How can I build a component that allows for customization through a config file so we can control certain styling options without doing development work each time like in other CMS wordpress & drupal ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

See this best practices document for components:

https://helpx.adobe.com/experience-manager/using/best-practices-cq-component-design.html

"Do not define CSS styling in components. This practice keeps components loosely coupled from a styling standpoint and lets you restyle them whenever necessary

Note that component styling is done in CSS - not a config file. You can place CSS in various repository locations. That way - when you want to modify style - update the CSS. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

See this best practices document for components:

https://helpx.adobe.com/experience-manager/using/best-practices-cq-component-design.html

"Do not define CSS styling in components. This practice keeps components loosely coupled from a styling standpoint and lets you restyle them whenever necessary

Note that component styling is done in CSS - not a config file. You can place CSS in various repository locations. That way - when you want to modify style - update the CSS.