kitconcept / volto-form-builder

An interactive form builder for Volto, that allows editors to assemble forms via drag and drop.
4 stars 5 forks source link

Adding less loader #41

Closed iFlameing closed 3 years ago

iFlameing commented 4 years ago

@tiberiuichim can you comment on what I am missing in this pr? I just want to style the elements of the form builder.

tiberiuichim commented 4 years ago

To use less files, you don't need anything extra. The globals.less is not needed, the @addon* declarations are not needed in form-builder.less.

The @addon* lines will declare two variables. In globals.less we have two mixins, loadAddonVariables and loadAddonOverrides. Just like Pastanaga is customizable by Volto projects, these mixins would allow Volto projects to customize variables that you set in your addon.

tiberiuichim commented 4 years ago

A note though: you should call the mixins in the forms-builder.less file. You should read the semantic-ui-less code to understand it, the system it's used here mimics what Volto does.

tisto commented 3 years ago

@iFlameing can we close this one now that the other PR is merged?

iFlameing commented 3 years ago

Yes! We can close this now.