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

rgb

Creates an opaque color object from the decimal red, green, and blue (RGB) values

rgb(90, 129, 32)

rgba

Creates a transparent color object from the decimal red, green, blue, and alpha (RGBA) values

rgba(90, 129, 32, 0.5)

argb

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.