Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global variable overwrite #7

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

global variable overwrite #7

davidpfahler opened this issue Dec 23, 2012 · 1 comment

Comments

@davidpfahler
Copy link
Member

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.

@boennemann
Copy link
Contributor

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
Projects
None yet
Development

No branches or pull requests

2 participants