# Text

# text-align, text-decoration, white-space, text-transform

# format

text-{type}

  • allowed {type} value:
  1. text-align: center, left, right, justify
  • responsive: true
  1. text-decoration: over, under, through
  • responsive: fasle
  1. white-space: wrap, nowrap
  • responsive: fasle
  1. word-break: break-all, break-word, keep
  • responsive: fasle
  1. text-transform: upper, lower, capitalize
  • responsive: fasle

# Example

$9.99 $4.99
<div class="price">
  <span class="origin text-through">$9.99</span>
  $4.99
</div>

# Example

This text should overflow the parent.
<div class="text-nowrap" style="width: 8rem;">
  This text should overflow the parent.
</div>

# Example

  • Text below will break "any word"

    thisisaverylonglonglonglonglongtext thisisanotherlonglonglonglonglongtext

  • Text below will break "by" words

    thisisaverylonglonglonglonglongtext thisisanotherlonglonglonglonglongtext

<div class="text-break-all" style="width: 20rem;">
  thisisaverylonglonglonglonglongtext thisisanotherlonglonglonglonglongtext
</div>

<div class="text-break-word" style="width: 20rem;">
  thisisaverylonglonglonglonglongtext thisisanotherlonglonglonglonglongtext
</div>

# Example

This text go uppercased.
<div class="text-upper">
  This text go uppercased.
</div>

# font-weight, font-style

# format

fw-{state}, fst-{state}

  • allowed {state} value:
  1. font-weight: bold, bolder, normal, lighter
  • responsive: true
  1. font-style: italic, normal
  • responsive: fasle

# Example

This text go bold in PC, noraml in mobile
This text go light.
This text go italic.
<div class="fw-md-bold">
  This text go bold in PC, noraml in mobile
</div>

<div class="fw-lighter">
  This text go light.
</div>

<div class="fst-italic">
  This text go italic.
</div>