style customization through a config file | Community
Skip to main content
shubha_kirani
Level 2
October 16, 2015
Solved

style customization through a config file

  • October 16, 2015
  • 1 reply
  • 628 views

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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.