style-js
v0.0.26
Published
Comprehensive color manipulation classes.
Downloads
10
Readme
== Style.js ==
An easy to use JavaScript library providing CSS preprocessing and a myriad of color manipulation functions.
== CSS Preprocessing ==
Style.js allows developers to utilize the full power of JavaScript to generate CSS.
Example:
''Alternative syntax'':
Result:
Any valid JavaScript code should work. It's easy to mix in your own functionality:
Result:
=== Nested Styles ===
Example:
Result:
=== "Mixins" ===
Example:
Result:
=== Inheritance ===
Example:
Result:
== Color Functionality ==
Color spaces are interchangeable:
Result:
=== complement() ===
Example:
Result:
=== analogous() ===
Example:
Result:
=== split() ===
Example:
Result:
=== square() ===
Example:
Result:
=== triad() ===
Example:
Result:
=== tetradic() ===
Example:
Result: