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

Deprecate global $chroma variable #18

Open
JohnAlbin opened this issue Apr 1, 2016 · 0 comments
Open

Deprecate global $chroma variable #18

JohnAlbin opened this issue Apr 1, 2016 · 0 comments
Milestone

Comments

@JohnAlbin
Copy link
Owner

Currently, libSass has no way to access a global Sass variable from the JavaScript side.

So while libSass allows functions to be written in JS, the JS can only access the functions parameters and cannot access any global Sass properties, like variables, mixins, extends, etc.

So the only way the JavaScript side can access Chroma's variables is by explicitly passing the $chroma global variable into the Sass function.

There are open issues for this in the libSass and node-sass queues. sass/node-sass#1297 sass/libsass#1950

Until that is fixed upstream, Chroma must continue to require explicit use of the global $chroma variable in its code examples.

@JohnAlbin JohnAlbin modified the milestones: 2.0.0, 3.x Apr 1, 2016
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

1 participant