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

**URL:** <https://forum.pinegrow.com/t/variables-in-separate-file-using-less-can-it-be-done/2753>\
**Category:** Styling (CSS)\
**Created:** [February 20, 2019, 2:32pm UTC](https://forum.pinegrow.com/t/variables-in-separate-file-using-less-can-it-be-done/2753 "2019-02-20T14:32:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ro6](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/ro6/32/1306_2.png) [@Ro6](https://forum.pinegrow.com/u/Ro6)\
**Post date:** [February 20, 2019, 2:32pm UTC](https://forum.pinegrow.com/t/variables-in-separate-file-using-less-can-it-be-done/2753/1 "2019-02-20T14:32:28Z")

</div>

> @import url(‘[mydomain.co.uk&nbsp;-&nbsp;mydomain Resources and Information.](http://cdn.mydomain.co.uk/assets/css/globals.less)’);  
> – 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.
