Expand my Community achievements bar.

SOLVED

style editor or themes

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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.htm...

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

@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.htm...

Avatar

Employee Advisor

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