Skip to content
Indiana University Logo
Rivet Design System
  • Components Add-ons Content guide Migration guide
  • What is Rivet? Blog Changelog
  1. May 4, 2022

    Rivet 2.0.0-beta.4 release

    The fourth Rivet 2 beta release introduces design updates to several components and a new responsive table wrapper element.

  2. March 30, 2022

    Rivet 2.0.0-beta.3 release

    The third Rivet 2 beta release updates accordion, badge, and button styles.

  3. February 9, 2022

    Rivet 2.0.0-beta.2 release

    The latest Rivet 2 beta release introduces the link hub component, adds new utility classes, and refactors component JavaScript.

More posts Get updates in your inbox
Install via NPM Download CSS & JS Hosted assets
Navigation
    • Components
    • Add-ons
    • Content guide
    • What is Rivet?
    • Blog
    • Roadmap
    • Changelog
  • Use Rivet
Resources
  • User Experience Office
  • Accessibility Evaluations
  • Rivet Software Design System
  • IU Framework for WCMS
Rivet 1 has been retired and will no longer receive updates. The v1 source code has been archived here. Please migrate to Rivet 2 as soon as possible.
Version 1.8.3
  • Information
    • Changelog
    • Component status
    • Contributing
  • Getting started
    • Install with NPM
    • Rivet Sass
  • Layout
    • Box
    • Grid
    • Panels
    • Spacing
    • Typography
  • Page content
    • Badges
    • Links
    • Lists
    • Media Object
    • Step Indicator
    • Tables
    • Tabs This component requires JS
    • Timeline
  • Forms
    • Buttons
    • Segmented Buttons
    • Checkboxes
    • File input This component requires JS
    • Input group
    • Radio buttons
    • Select element
    • Text inputs
  • Navigation
    • Breadcrumb
    • Dropdown This component requires JS
    • Footer
    • Header This component requires JS
    • Menu
    • Pagination
  • Overlays & Feedback
    • Alerts This component requires JS
    • Loading indicator
    • Modals This component requires JS
  • Utilities
    • Border
    • Display
    • Flex
    • Text
    • Visibility
    • Width
    • z-index
Ready Added in 1.0.0

Text

The Rivet text utilities make it easy to style text.

Migrating to Rivet 2

This version of Rivet is deprecated. View the typography utilities documentation on the Rivet 2 website.

Font weight

You can use the rivet text utilities to change the font-weight property of text. The available utility classes are:

  • .rvt-text-regular
  • .rvt-text-bold
Regular text utility
Bold Text utility
<strong class="rvt-text-regular">Regular text utility</strong>
<div class="rvt-text-bold">Bold Text utility</div>

Line height

In Rivet the line-height of the <body> element is set to 1.5 globally for better legibility. This can sometimes make larger text (like headings or titles) appear as if the line-height is too tall. For that reason, we created a text utility called .rvt-lh-title that you can use to give larger text a smaller line-height.

This large text could sometimes end up in a space that causes it to run on to two lines.

<h3 class="rvt-ts-36 rvt-lh-title">This large text could sometimes end up in a space that causes it to run on to two lines.</h3>

Text alignment

Use the text alignment utilities to change the text-align property of any text. The available text alignment utilities are:

  • .rvt-text-left
  • .rvt-text-center
  • .rvt-text-right

Left-aligned text utility

Center-aligned text utility

Right-aligned text utility

<p class="rvt-text-left">Left-aligned text utility</p>
<p class="rvt-text-center">Center-aligned text utility</p>
<p class="rvt-text-right">Right-aligned text utility</p>

Uppercase

The .rvt-text-uppercase utility class sets the text-transform CSS property to uppercase and adds a small amount of letter-spacing to improve readability.

Uppercase text utility

<p class="rvt-text-uppercase">Uppercase text utility</p>

No break

If you need to stop text from wrapping, for example next to radio buttons or checkboxes, you can use the .rvt-text-nobr utility.

Checkbox list
<form>
    <fieldset>
        <legend class="sr-only">Checkbox list</legend>
        <ul class="rvt-plain-list">
            <li>
                <input type="checkbox" name="checkbox-demo" id="checkbox-3">
                <label for="checkbox-3" class="rvt-m-right-sm rvt-text-nobr">The label for this checkbox is quite long, but will not break.</label>
            </li>
            <li>
                <input type="checkbox" name="checkbox-demo" id="checkbox-4">
                <label for="checkbox-4">Option two</label>
            </li>
        </ul>
    </fieldset>
</form>

On this page

  • Font weight
  • Line height
  • Text alignment
  • Uppercase
  • No break
  • Accessibility
  • Privacy Notice
  • Copyright © The Trustees of Indiana University