-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Express Web Application Development
By :
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 |
|
|
Saturates the color by the given amount |
|
|
Desaturates the color by the given amount |
|
|
Lightens the color by the given amount |
|
|
Darkens the color by the given amount ... |
Change the font size
Change margin width
Change background colour