font-thin…font-black (100–900) — the nine standard weights. This family contains 9 generated classes in Nakshora 3.0.

Classes#

ClassGenerated CSS
font-thinfont-weight: 100;
font-extralightfont-weight: 200;
font-lightfont-weight: 300;
font-normalfont-weight: 400;
font-mediumfont-weight: 500;
font-semiboldfont-weight: 600;
font-boldfont-weight: 700;
font-extraboldfont-weight: 800;
font-blackfont-weight: 900;

Example#

example
html
<p class="font-medium">Emphasis without size changes</p>

Responsive & variants#

Every class here accepts screen prefixes (sm:xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • UI standard: font-medium (500) for labels, font-semibold (600) for headings
  • Your font must ship the weight or the browser fakes it

Common mistakes#

  • Loading a 9-weight font for 2 used weights — subset!

colors/index|Text color · utilities/typography/font-size|Font size