fontWeight

scalatags.generic.Styles.fontWeight
object fontWeight extends Style

The font-weight CSS property specifies the weight or boldness of the font. However, some fonts are not available in all weights; some are available only on normal and bold.

Numeric font weights for fonts that provide more than just normal and bold. If the exact weight given is unavailable, then 600-900 use the closest available darker weight (or, if there is none, the closest available lighter weight), and 100-500 use the closest available lighter weight (or, if there is none, the closest available darker weight). This means that for fonts that provide only normal and bold, 100-500 are normal, and 600-900 are bold.

MDN

Attributes

Graph
Supertypes
class Style
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
fontWeight.type

Members list

Value members

Inherited methods

def :=[Builder, T](v: T)(implicit ev: StyleValue[Builder, T]): StylePair[Builder, T]

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Attributes

Inherited from:
Style
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val bold: StylePair[Builder, String]

Bold font weight. Same as 700.

Bold font weight. Same as 700.

MDN

Attributes

lazy val bolder: StylePair[Builder, String]

One font weight darker than the parent element (among the available weights of the font)

One font weight darker than the parent element (among the available weights of the font)

MDN

Attributes

lazy val lighter: StylePair[Builder, String]

One font weight lighter than the parent element (among the available weights of the font).

One font weight lighter than the parent element (among the available weights of the font).

MDN

Attributes

lazy val normal: StylePair[Builder, String]

Normal font weight. Same as 400.

Normal font weight. Same as 400.

MDN

Attributes