-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
//---------- #1559
Comments
So if @element: 'button';
@theme: @@element
@theme: @button
@theme: 'default'; The other variables should be simpler to understand, they are explicitly set in @themesFolder: 'src/themes/` And in the definition /* if compiling src/definitions/elements/button.less */
@type: 'element';
@element: 'button'; So the path turns from @import "@{themesFolder}/@{theme}/@{type}s/@{element}.variables";` To @import src/themes/default/elements/button.variables Each less file is compiled separately, each running Part of why less files cannot be imported directly into other LESS files is that variables are handled globally in LESS meaning that |
You are mistaking the parsed values. //Then
@import "@{themesFolder}/@{theme}/@{type}s/@{element}.variables";
//becomes
@import "src/themes/default/elements/button.variables"
@import "src/themes/default/views/statistic.variables"
//and
@import "@{themesFolder}/@{theme}/@{type}s/@{element}.overrides";
//becomes
@import "src/themes/default/elements/button.overrides"
@import "src/themes/default/views/statistic.overrides" because
This is not the same as the "site theme" which are The site definition even has its own "site theme" in |
No worries, nice to have this archived on GitHub in case this comes up again. Perhaps will include in upcoming FAQ |
//----------
The text was updated successfully, but these errors were encountered: