June 2013
Intermediate to advanced
236 pages
4h 33m
English
Stylus comes with a large number of built-in functions to perform common operations on objects, especially related to CSS.
The following is a list of some useful in-built functions:
|
Function |
Description |
|---|---|
|
|
Returns the red component of the color |
|
|
Returns the green component of the color |
|
|
Returns the blue component of the color |
|
|
Returns the alpha component of the color |
|
|
Checks if the color is dark |
|
|
Checks if the color is light |
|
|
Returns the hue of the color |
|
|
Returns the saturation of the color |
|
|
Returns the lightness of the color |
|
|
Inverts the color |
|
|
Read now
Unlock full access