Introduction
You can optionally install the @jesscss/fns
package to add a number of helper functions to your stylesheets.
Most of these functions (especially color functions) are imported and converted from Less.js.
To use, import them like:
note
Unlike Less, all functions must be imported! This keeps the Jess runtime small and fast. It also prevents conflicts with CSS function names, because you can do the following, using the power of module syntax!
This will produce: