Skip to main content

Text CSS Classes

UIkit offers various text utilities to style your text. You can use those classes in our Extensions to style your text.

Text Alignment

ClassDescription
uk-text-leftAligns the text to the left.
uk-text-centerAligns the text to the center.
uk-text-rightAligns the text to the right.
uk-text-justifyJustifies the text.

Text Wrapping

ClassDescription
uk-text-nowrapPrevents the text from wrapping.
uk-text-truncateTruncates the text with an ellipsis.

Text Transform

ClassDescription
uk-text-lowercaseConverts the text to lowercase.
uk-text-uppercaseConverts the text to uppercase.
uk-text-capitalizeCapitalizes the text.
uk-text-leadIncreases the font size of the text.

Text Styling

ClassDescription
uk-text-mutedApplies a muted color to the text.
uk-text-emphasisApplies an emphasis color to the text.
uk-text-primaryApplies a primary color to the text.
uk-text-secondaryApplies a secondary color to the text.
uk-text-successApplies a success color to the text.
uk-text-warningApplies a warning color to the text.
uk-text-dangerApplies a danger color to the text.
uk-text-metaApplies a meta color to the text.
uk-text-italicAdd this class to apply an italic styling

Text Size

ClassDescription
uk-text-smallDecreases the font size of the text.
uk-text-largeIncreases the font size of the text.
uk-text-xlargeIncreases the font size of the text.

Text Weight

ClassDescription
uk-text-lightAdd this class to apply a font-weight of 300
uk-text-normalAdd this class to apply a font-weight of 400
uk-text-boldAdd this class to apply a font-weight of 700
uk-text-lighterAdd this class to apply a lighter font weight
uk-text-bolderAdd this class to apply a bolder font weight