brick-less
Less processor for brick.js.
Mixins/Variables
A brick.js module can contain arbitrary files.
Your index.less
can import
mixin/variable files in the current directory,
and in modules directory.
Less PATH is set to <current module>:<module root>
.
For example:
bricks/
|-- homepage
| |-- index.less
| |-- local-mixins.less
|
|-- styles
|-- mixins.less
File homepage/index.less
:
// relative to current directory
@import 'local-mixins';
// relative to current directory
@import '../styles/mixins'
// relative to Brick Root, see <https://github.com/brick-js/brick.js/wiki/Quickstart#brick-root>
@import 'styles/mixins';