mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 03:24:20 +00:00
1.7 KiB
1.7 KiB
Contributing
Feel free to contribute to bluelib at any time, adding new rules, themes or anything else through pull requests!
Structure
- src contains the project source
- rules are the Less rules for bluelib, which should use exclusively variables as selectors (
@{var} {...}
) - vars contains files with Less variables which define the selectors for every rule previously defined
- module defines selectors only by using unique classes, with the exception of
@all
, which selects.bluelib *
; it's ideal for usage with CSS Modules and React - root applies rules to the whole page by applying selectors directly to HTML elements such as
section
andblockquote
; it's ideal for basic websites which do not mix multiple styles
- module defines selectors only by using unique classes, with the exception of
- targets contains Less files which import a single var file followed by a single rule file, and the CSS files resulting from their compilation
- rygblue.module.less imports the
module
var file followed by therygblue
rules file - and so on
- rygblue.module.less imports the
- rules are the Less rules for bluelib, which should use exclusively variables as selectors (
Compiling
To compile a bluelib target, run:
lessc ${1} ${1%.*}.css --source-map