All Morningstar products and communications use Univers Next for Morningstar, our brand typeface created in collaboration with Monotype.
Morningstar Symbols is a font used to incorporate specialized characters and symbols into products. Recently, some symbols have also been made available within the Design System’s Icons. Until all icons are available in the System, teams may continue to use the Symbols font.
Contact the Brand team for more information and to obtain the typeface.
MDS provides four font weights to establish hierarchy, ensure legibility, and create harmony on-screen.
Typographic hierarchy is defined by the differences in size and weight of textual elements on the page. A successful hierarchy uses a succinct set of size and weight combinations to both create points of focus and outline the content of a page in an easily scannable structure.
In addition to their defined weights, each of the heading level and body text sizes can also be bolded by using the $mds-font-weight-bold
constant.
Body text is available in three different sizes. Use body text to present the bulk of a page’s content. All body text uses a line height of 1.375 relative to the font size.
Headings are available in six different sizes. To create an optical balance between the six levels, headings are set in two weights: Condensed Thin and Condensed Light. All headings use a line height of 1.2 relative to the font size.
Heading mixins and constants can be applied to any HTML element, but we recommend using <h1>
through <h6>
elements for headings to ensure markup is semantic and accessible.
When combining heading typography with a header border use the Header component. The Header component’s combination of typography and borders strengthens visual hierarchy. The Header component also eases implementation of UI component controls relevant to the content tied to the Header.
<div class="mds-header mds-header--primary mds-header--level-4">
<h2 class="mds-header__title"> Header Title </h2>
</div>
font-weight
, work with a designer to create custom styles within your product’s CSS, which utilize the MDS font weight constants.Mixins are available for headings (for example, mds-level-1-heading
) and body text (for example, mds-body-text-m
) to quickly apply font-weight
, font-size
, and line-height
properties to CSS declarations within your own products.
For example, applying the mds-level-3-heading()
mixin to an element with the .product_element
class:
h1 {
@include mds-level-3-heading();
}
will result in the following CSS:
h1 {
font-size: 28px;
font-family: 'Univers', HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: 200;
line-height: 1.2;
}
-heading
and -body-text
mixins do not apply color
across multiple background containers. Instead, they should be used in concert with text color mixins for that purpose.Variable Name | Value |
---|---|
$mds-font-size-xs | 10px |
$mds-font-size-s | 14px |
$mds-font-size-m | 16px |
$mds-font-size-l | 20px |
$mds-font-size-heading-level-1 | 45px |
$mds-font-size-heading-level-2 | 32px |
$mds-font-size-heading-level-3 | 28px |
$mds-font-size-heading-level-4 | 23px |
$mds-font-size-heading-level-5 | 20px |
$mds-font-size-heading-level-6 | 18px |
$mds-font-size-code | 12px |
$mds-font-size-xs
only for eyebrow headings.Legibility is a core tenant of the MDS typographic system. By following the rules below, we ensure consistency and readability across all typographic variations.
Providing an adequate amount of space between lines is critical to the legibility of text. Using relative line heights, MDS ensures consistent spacing of all headings and body-text sizes. All headings use a relative line height of 1.2-times the font size. All body text uses a relative line height of 1.375-times the font size.
Line length, also known as measure, is the number of characters contained in a line of text. To ensure readability, line length should fall between 50 and 75 characters wide, including spaces. Lines narrower than 50 characters require the eye to jump to the next line too frequently, breaking the reader’s rhythm. Lines wider than 75 characters make it difficult to continue on to the correct line in a large body of text.