🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

FontWeight

The thickness of the glyphs, in a range of [1, 1000].

Source set: Common
public class FontWeight(public val weight: Int) : Comparable<FontWeight>

The thickness of the glyphs, in a range of 1, 1000.

Parameters

weight Font weight value in the range of [1, 1000]

Members

Companion

Source set: Common
public companion object

Properties

W100

Source set: Common
@Stable public val W100: FontWeight = FontWeight(100)

Thin

W200

Source set: Common
@Stable public val W200: FontWeight = FontWeight(200)

ExtraLight

W300

Source set: Common
@Stable public val W300: FontWeight = FontWeight(300)

Light

W400

Source set: Common
@Stable public val W400: FontWeight = FontWeight(400)

Normal / regular / plain

W500

Source set: Common
@Stable public val W500: FontWeight = FontWeight(500)

Medium

W600

Source set: Common
@Stable public val W600: FontWeight = FontWeight(600)

SemiBold

W700

Source set: Common
@Stable public val W700: FontWeight = FontWeight(700)

Bold

W800

Source set: Common
@Stable public val W800: FontWeight = FontWeight(800)

ExtraBold

W900

Source set: Common
@Stable public val W900: FontWeight = FontWeight(900)

Black

Thin

Source set: Common
@Stable public val Thin: FontWeight = W100

Alias for W100

ExtraLight

Source set: Common
@Stable public val ExtraLight: FontWeight = W200

Alias for W200

Light

Source set: Common
@Stable public val Light: FontWeight = W300

Alias for W300

Normal

Source set: Common
@Stable public val Normal: FontWeight = W400

The default font weight - alias for W400

Medium

Source set: Common
@Stable public val Medium: FontWeight = W500

Alias for W500

SemiBold

Source set: Common
@Stable public val SemiBold: FontWeight = W600

Alias for W600

Bold

Source set: Common
@Stable public val Bold: FontWeight = W700

A commonly used font weight that is heavier than normal - alias for W700

ExtraBold

Source set: Common
@Stable public val ExtraBold: FontWeight = W800

Alias for W800

Black

Source set: Common
@Stable public val Black: FontWeight = W900

Alias for W900