style editor or themes | Community
Skip to main content
Level 2
October 31, 2022
Solved

style editor or themes

  • October 31, 2022
  • 1 reply
  • 755 views

I am creating a form in 6.5 and already have CSS from my other project which is based in PHP, what is the best way to apply style to forms?

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 Mayank_Gandhi

@formuser1 

The form object can be styled in multiple ways, however, if you have the CSS already style editor is not what you should go for. It is mostly for inline styling.

 

You can create a theme and apply CSS, but here you will have to click the object and manually select the property like background, font, width.. etc. Themes can be re-used with any number of forms too.

 

Coming to the best way around this would be to have custom client libs and map the client libs to the form. This is also reusable. 

 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/introduction/clientlibs.html?lang=en

1 reply

Mayank_Gandhi
Adobe Employee
Mayank_GandhiAdobe EmployeeAccepted solution
Adobe Employee
October 31, 2022

@formuser1 

The form object can be styled in multiple ways, however, if you have the CSS already style editor is not what you should go for. It is mostly for inline styling.

 

You can create a theme and apply CSS, but here you will have to click the object and manually select the property like background, font, width.. etc. Themes can be re-used with any number of forms too.

 

Coming to the best way around this would be to have custom client libs and map the client libs to the form. This is also reusable. 

 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/introduction/clientlibs.html?lang=en

formuser1Author
Level 2
October 31, 2022

@mayank_gandhi Thanks, so if we have both in the form is it ok?

Mayank_Gandhi
Adobe Employee
Adobe Employee
October 31, 2022

@formuser1 Yes, you can but as I mentioned style editor is for inline and will take preference over theme while rendering.