Pinegrow Community Support Forum

Variables in separate file using LESS - Can it be done?


@import url(‘’);
– or –
@import ‘…/…/assets/css/globals.less’;

body {
background-color: @bodybgcolour;

I just cannot get less compiled inside PG to import a file containing variables.
In the old docs, it says @import isn’t supported
But… in the new docs it specifically says to add an @import to the main stylesheet to import it.
however… It still seems to not work.

i.e. I get “Error: @bodybgcolour is undefined”

NB: Compiling with winless works fine - i.e. The variables are imported and usable, with no syntax errors.