@citizensadvice/font-weight

Defines the weight of the text.

Usage no npm install needed!

<script type="module">
  import citizensadviceFontWeight from 'https://cdn.skypack.dev/@citizensadvice/font-weight';
</script>

README

Font-weight npm (scoped)

Defines the weight of the text.

Classes

Class name Value
.normal Normal
.regular regular (400)
.semi-bold semi-bold (600)
.bold bold (700)
.extra-bold extra-bold (700)

Examples

<p class="normal">...</p>
<p class="extra-bold">...</p>

Installation

$ npm install @citizensadvice/font-weight

now import into your stylesheet...

@import '@citizensadvice/font-weight/index.scss';

You can also make use of the unpkg service, try adding the link below to the head of your HTML file

<link src="https://unpkg.com/@citizensadvice/font-weight@latest/build/font-weight.css" />