Appendix A. Color Functions in Less
The Less library includes a number of color functions that we can use to manipulate colors within our site—this appendix lists the details of each function, within the four groups of defining color formats, channeling colors, performing color operations, and blending colors.
Defining color formats
The following is a list of the color functions that handle the color formats within Less:
Function |
Purpose of the function |
Example value |
---|---|---|
|
Creates an opaque color object from the decimal red, green, and blue (RGB) values |
|
|
Creates a transparent color object from the decimal red, green, blue, and alpha (RGBA) values |
|
|
Creates a hex representation of a ... |
Get Learning Less.js now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.