Bulma Text weight
Bulma text weight class is used to set the text into bold text. There are 5 text weights and you can transform the text weight with the use of one of 5 text weight helpers.
Text weight classes:
- has-text-weight-light: This class is used to transform text weight to light.
- has-text-weight-normal: This class is used to transform text weight to normal.
- has-text-weight-medium: This class is used to transform text weight to medium.
- has-text-weight-semibold: This class is used to transform text weight to semi-bold.
- has-text-weight-bold: This class is used to transform text weight to bold.
Example: Below example illustrate the text size class in Bulma.
HTML
<!DOCTYPE html> < html > < head > < title >Bulma Typography</ title > < link rel = 'stylesheet' href = 'https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css' > </ head > < body class = "has-text-centered" > < h1 class = "is-size-2 has-text-success" > w3wiki </ h1 > < b >Bulma Text weight</ b > < br > < div class = "container" > < p class = "is-size-5 has-text-weight-light" >w3wiki</ p > < p class = "is-size-5 has-text-weight-normal" >w3wiki</ p > < p class = "is-size-5 has-text-weight-medium" >w3wiki</ p > < p class = "is-size-5 has-text-weight-semibold" >w3wiki</ p > < p class = "is-size-5 has-text-weight-bold" >w3wiki</ p > </ div > </ body > </ html > |
Output:
Reference: https://bulma.io/documentation/helpers/typography-helpers/#text-weight