Price Tag

The price tag component provides predefined style for the price section of an offer.

Usage

The .price-tag class works as a molecule, so it should wrap related atoms, as described below.

R$ 9.999 ,99 m
<div class="price-tag">
  <span class="price-currency">R$</span>
  <span class="price-integer">9.999</span>
  <span class="price-decimal">,99</span>
  <span class="price-unit">m</span>
</div>

Promotional price

You can get a standard style for promotional prices by adding the .promotional class to a price-tag element. The modifier applies the colors provided in the $color-promotional and $color-text-promotional variables to the background and the main price, respectively.

R$ 9.999,99
R$ 9.999,99 m
<div class="price-tag promotional">
  <div class="from-price">
    <span class="price">R$ 9.999,99</span>
  </div>

  <span class="price-currency">R$</span>
  <span class="price-integer">9.999</span><span class="price-decimal">,99</span>
  <span class="price-unit">m</span>
</div>

Notice that you can use the .from-price class to describe the previous product price.

Alternatively, you can use the same atoms used in a price-tag molecule to build the from-price section, as shown below.

R$ 9.999,99
R$ 9.999,99 m
<div class="price-tag promotional">
  <div class="from-price">
    <span class="price-currency">R$</span>
    <span class="price-integer">9.999</span><span class="price-decimal">,99</span>
  </div>

  <span class="price-currency">R$</span>
  <span class="price-integer">9.999</span><span class="price-decimal">,99</span>
  <span class="price-unit">m</span>
</div>