Skip to content

brick-js/brick-less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brick-less

NPM version Build Status Coverage Status Dependency manager

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';

About

Less processor for brick.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published