monks/font_weight

The font-weight CSS property sets the weight (or boldness) of the font. The weights available depend on the {{cssxref(“font-family”)}} that is currently set.

Values

pub const bold: #(String, String)
  • : Bold font weight. Same as 700.
pub const bolder: #(String, String)
  • : One relative font weight heavier than the parent element. Note that only four font weights are considered for relative weight calculation; see the Meaning of relative weights section below.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const lighter: #(String, String)
  • : One relative font weight lighter than the parent element. Note that only four font weights are considered for relative weight calculation; see the Meaning of relative weights section below.
pub const normal: #(String, String)
  • : Normal font weight. Same as 400.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for font-weight

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for font-weight. It will be wrapped in var() and have -- prepended.

Search Document