Skip to content

global variable overwrite #7

Description

@davidpfahler

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions