Font-weight is an to apply the weight of an font in an applicaiton.

Normal html has different properties as given below

Native html and css has standard properties

font-weight: bold
or
font-weight: number

Here, number is an value that represents how much bold is required for an font.

It has following values

numberboldness
100thin
200extralight
300light
400normal
500medium
600extra bold
700bold
800Extra Bold
900heavy black

Tailwind font weight

font weights can be applied with font-{weight} property values


font-weight: font-{weight}

weighth is one of the value below.

utilitynumberboldness
font-thin100thin
font-extralight200extralight
font-light300light
font-normal400normal
font-medium500medium
font-bold600extra bold
font-semibold700bold
font-extrabold800Extra Bold
font-black900heavy black

Here is an examples

<div class="font-bold"> bold font</div>
<div class="font-extrabold"> extra bold font</div>

font weight applied with different states

<div class="font-normal hover:font-bold">normal font with hover bold font</div>
<div class="font-normal focus:font-bold">bold font with focus bold font</div>
<div class="font-normal first-child:font-bold">bold font with first child bold</div>

Media queries such as lg, md,sm also applied to this

<div class="font-normal lg:font-bold">normal font with large screen bold font</div>
<div class="font-normal md:font-bold">bold font with medium screen bold font</div>
<div class="font-bold sm:font-normal">bold font with small screen normal font</div>