--- layout: documentation doc-tab: overview doc-subtab: functions --- {% include subnav-overview.html %}

Functions

Utility functions to calculate colors and other values


Bulma uses 5 custom functions to help define the values and colors dynamically:

  • powerNumber($number, $exp): calculates the value of a number exposed to another one. Returns a number.
  • colorLuminance($color): defines if a color is dark or light. Return a decimal number between 0 and 1 where <= 0.5 is dark and > 0.5 is light.
  • findColorInvert($color): returns either 70% transparent black or 100% opaque white depending on the luminance of the color.