Skip to content

Fonts modifiers

A set of modifiers that can be applied to the texts on the page.

.font {
    &_normal {
        .weight-normal();
    }

    &_semibold {
        .weight-semibold();
    }

    &_bold {
        .weight-bold();
    }

    &_line-through {
        text-decoration: line-through;
    }

    &_underline {
        text-decoration: underline;
    }

    &_italic {
        font-style: italic;
    }

    &_size-l {
        .size-l();
    }

    &_size-m {
        .size-m();
    }

    &_size-s {
        .size-s();
    }

    &_size-xs {
        .size-xs();
    }
}

.align {
    &_left {
        text-align: left;
    }

    &_center {
        text-align: center;
    }

    &_right {
        text-align: right;
    }
}

.text {
    &_uppercase {
        text-transform: uppercase;
    }
}

.overline {
    .font-size(@overlineFontSize);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: @overlineFontWeight;
    margin-bottom: @globalSpacing;

    &_s {
        .font-size(@overlineFontSizeS);
    }
}

.generate-font-color-modifier(neutral);
.generate-font-color-modifier(primary);
.generate-font-color-modifier(secondary);
.generate-font-color-modifier(success);
.generate-font-color-modifier(error);
.generate-font-color-modifier(warning);

.color_shade-light {
    color: @neutralColors0;
}

.color_shade-dark {
    color: @neutralColors1000;
}