Font Family
Aa
Bentley Font Semibold
Font Weight: 600
Aa
Bentley Font Light
Font Weight: 400
Font Styles
Hero Heading
Bentley Font Semibold
Font Weight: 600
Use on: Heros & Banners
Heading one
Bentley Font Semibold
Font Weight: 600
Use on: Titles
Heading two
Bentley Font Semibold
Font Weight: 600
Heading three
Bentley Font Semibold
Font Weight: 600
Heading four
Bentley Font Light
Font Weight: 400
Heading five
Bentley Font Light
Font Weight: 400
Body copy medium
Bentley Font Light
Font Weight: 600
Use on: body text
Body Large
Bentley Font Light
Font Weight: 600
Use on: when text needs to be enlarge
Body Small
Bentley Font Light
Font Weight: 600
Button text
Bentley Font Semibold
Font Weight: 600
Use on: CTA's
Text Link
Bentley Font Light
Font Weight: 600
Use on: links in text
Pretitle hero
Bentley Font Light
Font Weight: 600
Use on: Heros & Banners
Pretitle
Bentley Font Light
Font Weight: 600
Use on: Blog headings
Product Card Heading
Bentley Font Light
Font Weight: 600
Use on: Product cards
Product Card Price
Bentley Font Light
Font Weight: 400
Use on: product cards
Accordion Title
Bentley Font Semibold
Font Weight: 600
Use on: product detail component
Breadcrumb
Bentley Font light
Font Weight: 400
Use on: Breadcrumb
Implementing a font style
All of the font styles live inside a sass map call $font-styles. Like colours, we have generic font styles and then if we need to make a component specific font style we will add a new font style type in the font map. Note: if you add a new one please update the styleguide. An example of implementing this would be:
// _component.scss
.component__title {
@include getFontStyle(h1);
}
We implement font styles by a mixn due to performance reasons. Due to the CSS now having repeatitive pieces of code GZIP loves that sort of stuff so it makes the CSS smaller in file size than it would if you was to use extends or a single class. Another benefit will be that it decouples the styling from a single class and gives the styles just to the component.