CBP Theme uses the Roboto font family.
Typography is an essential component of the Common Framework Theme. We’ve selected san-serif fonts for primary use across all mobile and desktop patterns. The Roboto font family provides a wide range of characters and weights that are designed to maintain optimal legibility across platforms, sizes and pixel densities. It offers a clean, light, and open aesthetic that compliments content and hierarchy. Roboto should be the only font-family in use throughout CBP applications built on the CBP theme.
All of the @font-face css properties and font files are loaded into the theme and ready for use. The .woff file is included to assist in IE 11+ compatibility. The majority of other modern browsers will accept the .woff2 file type natively. Note: Adding additional font files to your application can cause pages to load slowly or display inconsistently.
In the theme you will notice that the font-family property is listed as ( font-family: roboto, calibri, tahoma, sans-serif; ). This is to maintain some semblance of compatibility should the Roboto font files fail unexpectedly. Since all of our font files are served from our servers and not remotely, this should be an incredibly rare occurrence. Basically, if the Roboto files are unavailable, the browser will look for the Calibri system font. If that fails (Note: Calibri is a proprietary font created by Microsoft – thus it can encounter issues when loaded in non-Microsoft environments). then it will move down the list to Tahoma, and then finally to the default sans-serif font on the system. This does not mean that applications may use Calibri or any other of the fallback fonts as the primary font. These fallback fonts are only to be used in the event of a system failure.
900 - Black: The quick brown fox jumps over the lazy dog
700 - Bold: The quick brown fox jumps over the lazy dog
500 - Semi-Bold: The quick brown fox jumps over the lazy dog
400 - Normal: The quick brown fox jumps over the lazy dog
300 - Light: The quick brown fox jumps over the lazy dog
h1 | Main Heading Regular 30px Secondary text |
h2 | Sub Heading Semibold 24px Secondary text |
h3 | Sub Sub Heading Semibold 22px Secondary text |
h4 | Sub Sub Sub Heading Semibold 20px Secondary text |
h5 | Sub Sub Sub Sub Heading Semibold 18px Secondary text |
h6 | Sub Sub Sub Sub Sub Heading Semibold 16px Secondary text |
Body | Regular 13px |
Caption |
This is text-primary
This is text-warning
This is text-success
This is text-danger
This is text-info
This is text-muted