.font-weight()

Get the font-weight of a given font.

Check font definition in config.less and retrive the proper font weight.

.font-weight(
  @weight: regular,
  @font: primary
);

Parameters

Name Type Default
@weight String regular
@font String primary

How to use

.bold-element {
  .font-weight(extra-bold, primary);
}

Will output

.bold-element {
  font-weight: 800;
}