Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

global variable overwrite #7

Open
davidpfahler opened this Issue Dec 23, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Owner

davidpfahler commented Dec 23, 2012

less variables which are not scoped should be available to overwrite using a importless.json config file.

importless.json config

specifies the global variables that should be overwritten and the value with which they should be overwritten by.

Example importless.json

{
  "variables": {
    "icon-font-path": "build/fonts/",
    "notification-base-color": "#FAFAFA"
  }
}

list variables available for overwrite

importless should provide a function that returns the global variable names as an array.

overwrite

Not sure how the actual overwriting is being done. Need to investigate if the parse tree can be modified and then compiled.
Modify parse tree and then call .toCSS() to compile.

Contributor

boennemann commented Dec 23, 2012

re overwrite:

the less parse tree has a .toCSS method, so overwriting properties and then compiling should be easy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment