Skip to content

Typography

We established a font convention to ensure consistent and optimal presentation across various platforms. These choices reflect the visual identity and design principles that guide our UI/UX, ensuring clarity and ease of readability.

Font Family

The font family defines the primary typeface used in the design of our product. Consistent use of font families across all platforms maintains brand cohesion and legibility. The following font families are used in our typography system:

Font FamilyClassSample Text
Rubikmc-font-mainThis is a sample text.
Robotomc-font-inboundThis is a sample text.
Roboto Monomc-font-codeThis is a sample text.

Rubik

- is the main typeface used for general UI text. It has a modern, rounded design that ensures clarity and smooth readability.

Roboto

- It is used specifically for inbound products from SAIL.

Roboto Mono

- is used for code blocks and technical content to distinguish it clearly from body text.

Font Sizes

Font sizes define the typographic hierarchy, ensuring content is presented in a clear, readable, and visually appealing way. The following font sizes are defined for use throughout the application:

12px

This is a sample text.

14px

This is a sample text.

16px

This is a sample text.

20px

This is a sample text.

24px

This is a sample text.

28px

This is a sample text.

32px

This is a sample text.

40px

This is a sample text.

48px

This is a sample text.

56px

This is a sample text.

Font Weight

Font weight controls the thickness of the typeface characters, helping create visual contrast and emphasis. Here’s how the various font weights are used:

100

This is a sample text.

200

This is a sample text.

300

This is a sample text.

400

This is a sample text.

500

This is a sample text.

600

This is a sample text.

700

This is a sample text.

800

This is a sample text.

900

This is a sample text.

Line Height

Line height (or leading) is the vertical space between lines of text. Proper line height improves readability, especially for larger bodies of text. We define the following line heights:

Line HeightClass
12pxmc-line-height-100
14pxmc-line-height-200
16pxmc-line-height-300
20pxmc-line-height-400
24pxmc-line-height-500
32pxmc-line-height-600
36pxmc-line-height-700
40pxmc-line-height-800
48pxmc-line-height-900
60pxmc-line-height-1000

Letter Spacing

Letter spacing affects the horizontal space between characters. Proper spacing can improve legibility and the overall aesthetic of the text. The following letter spacing values are defined:

Letter SpacingClass
-1.3pxmc-letter-spacing-densest
-1pxmc-letter-spacing-denser
-0.7pxmc-letter-spacing-dense
0pxmc-letter-spacing-normal
0.7pxmc-letter-spacing-wide
1pxmc-letter-spacing-wider
1.3pxmc-letter-spacing-widest

Headings

Headings are an essential element in establishing the hierarchy of information. They help break down sections of content and guide the user through a page. They typically use larger font sizes, bolder weights, and generous line heights.

Heading XL

mc-heading-xl

  • mc-font-size-900
  • mc-line-height-1000
  • mc-letter-spacing-densest
  • mc-font-main
  • mc-font-medium
This is a sample text.
Heading LG

mc-heading-lg

  • mc-font-size-800
  • mc-line-height-900
  • mc-letter-spacing-denser
  • mc-font-main
  • mc-font-medium
This is a sample text.
Heading MD

mc-heading-md

  • mc-font-size-700
  • mc-line-height-800
  • mc-letter-spacing-denser
  • mc-font-main
  • mc-font-medium
This is a sample text.
Heading SM

mc-heading-sm

  • mc-font-size-600
  • mc-line-height-700
  • mc-letter-spacing-dense
  • mc-font-main
  • mc-font-medium
This is a sample text.
Heading XS

mc-heading-xs

  • mc-font-size-500
  • mc-line-height-600
  • mc-letter-spacing-dense
  • mc-font-main
  • mc-font-medium
This is a sample text.

Subheadings

Subheadings support the primary heading and break down content into digestible sections. These are typically used for content categories or grouped ideas within larger sections. The typography is adjusted to be smaller and less bold than main headings but still visually distinct.

Subheading SM

mc-subheading-sm

  • mc-font-size-400
  • mc-line-height-500
  • mc-letter-spacing-dense
  • mc-font-main
  • mc-font-medium
This is a sample text.
Subheading XS

mc-subheading-xs

  • mc-font-size-300
  • mc-line-height-400
  • mc-letter-spacing-normal
  • mc-font-main
  • mc-font-medium
This is a sample text.

Body

Body text is the core content on most pages. It needs to be easy to read and legible across all screen sizes. Body text uses standard font size (16px) and is typically set to a regular or medium weight for clarity and readability.

Base Class

mc-body-lg

  • mc-font-size-400
  • mc-line-height-600
  • mc-letter-spacing-normal
  • mc-font-main

mc-body-lg-regular

  • mc-body-lg
  • mc-font-normal

mc-body-lg-regular-underline

  • mc-body-lg
  • mc-font-normal
  • mc-decoration-solid

mc-body-lg-regular-medium

  • mc-body-lg
  • mc-font-medium

mc-body-lg-medium-underline

  • mc-body-lg
  • mc-font-medium
  • mc-decoration-solid
Base Class

mc-body-md

  • mc-font-size-300
  • mc-line-height-500
  • mc-letter-spacing-normal
  • mc-font-main

mc-body-md-regular

  • mc-body-md
  • mc-font-normal

mc-body-md-regular-underline

  • mc-body-md
  • mc-font-normal
  • mc-decoration-solid

mc-body-md-regular-medium

  • mc-body-md
  • mc-font-medium

mc-body-md-medium-underline

  • mc-body-md
  • mc-font-medium
  • mc-decoration-solid
Base Class

mc-body-sm

  • mc-font-size-200
  • mc-line-height-400
  • mc-letter-spacing-normal
  • mc-font-main

mc-body-sm-regular

  • mc-body-sm
  • mc-font-normal

mc-body-sm-regular-underline

  • mc-body-sm
  • mc-font-normal
  • mc-decoration-solid

mc-body-sm-regular-medium

  • mc-body-sm
  • mc-font-medium

mc-body-sm-medium-underline

  • mc-body-sm
  • mc-font-medium
  • mc-decoration-solid
Base Class

mc-body-xs

  • mc-font-size-100
  • mc-line-height-300
  • mc-letter-spacing-normal
  • mc-font-main

mc-body-xs-regular

  • mc-body-xs
  • mc-font-normal

mc-body-xs-regular-underline

  • mc-body-xs
  • mc-font-normal
  • mc-decoration-solid

mc-body-xs-regular-medium

  • mc-body-xs
  • mc-font-medium

mc-body-xs-medium-underline

  • mc-body-xs
  • mc-font-medium
  • mc-decoration-solid

Labels

Labels are used for form inputs, navigation, and UI elements. These are typically smaller in size, often 12px–16px, and require a high contrast to stand out clearly. Labels also use consistent letter spacing for neatness.

Base Class

mc-label-sm

  • mc-font-size-200
  • mc-line-height-200
  • mc-letter-spacing-wide
  • mc-font-main

mc-label-sm-regular

  • mc-label-sm
  • mc-font-normal

mc-label-sm-medium

  • mc-label-sm
  • mc-font-medium
Base Class

mc-label-xs

  • mc-font-size-100
  • mc-line-height-100
  • mc-letter-spacing-wide
  • mc-font-main

mc-label-xs-regular

  • mc-label-xs
  • mc-font-normal

mc-label-xs-medium

  • mc-label-xs
  • mc-font-medium