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

Variable injecting (of the customize theme settings) for less / scss #2197

Closed
JumpLink opened this issue Jul 11, 2016 · 1 comment
Closed

Comments

@JumpLink
Copy link

JumpLink commented Jul 11, 2016

Hi, is there any interest to make theme setting variables available in less/scss?

This would make it possible for the theme developer to let the user change style colors, sizes and much more (or any bootstrap variable) in the customize theme settings. There are already different color schemes in october themes, but the developer currently need to create several css files by hand for each color. This would be no longer necessary with theme setting variable injecting for less/scss.

I am also a shopify theme developer and it's great to have this feature there, but the implementation is another, on shopify you have a style.scss.liquid file and you can use your template variables (liquid is very similar to twig) in SCSS like this:

$brand-primary: {{settings.brand-primary}};

but with variable injecting (as described above) it would be even more beautiful, isn't?

Thanks!

See also:

@daftspunk
Copy link
Member

See the documentation on this. Simply define an assetVar option in the form field, where the value is the desired variable name.

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

No branches or pull requests

2 participants