|
1 | 1 | # Mona Sans |
2 | 2 |
|
3 | | -[Typeface microsite](http://github.com/mona-sans) ↗️ |
| 3 | +[Download Mona Sans](http://github.com/github/mona-sans/releases/latest) • [Typeface microsite](http://github.com/mona-sans) ↗️ |
4 | 4 |
|
5 | | -A strong and versatile typeface, designed with [Degarism](https://degarism.com/) and inspired by industrial-era grotesques. Mona Sans works well across product, web, and print. |
| 5 | +A strong and versatile typeface, designed together with [Degarism](https://degarism.com/) and inspired by industrial-era grotesques. Mona Sans works well across product, web, and print. Made to work well together with Mona Sans's sidekick, [Hubot Sans](https://github.com/github/hubot-sans). |
6 | 6 |
|
7 | | -Mona is a [variable font](https://web.dev/variable-fonts/). Variable fonts enable different variations of a typeface to be incorporated into one single file, and are supported by all major browsers, allowing for performance benefits and granular design control of the typeface's weight, width, and slant. |
| 7 | +Mona Sans is a [variable font](https://web.dev/variable-fonts/). Variable fonts enable different variations of a typeface to be incorporated into one single file, and are supported by all major browsers, allowing for performance benefits and granular design control of the typeface's weight, width, and slant. |
8 | 8 |
|
9 | 9 |  |
10 | 10 |
|
11 | | -Check out Mona Sans's sidekick, [Hubot Sans](https://github.com/github/hubot-sans). |
| 11 | +## Usage |
12 | 12 |
|
13 | | -# Usage |
| 13 | +For web, we recommend using `Mona Sans.woff2`. Define the font with a `@font-face` rule, set its **weight** and **stretch** ranges, and use it: |
14 | 14 |
|
15 | | -[Notes on using Mona Sans] |
| 15 | +```css |
| 16 | +@font-face { |
| 17 | + font-family: 'Mona Sans'; |
| 18 | + src: |
| 19 | + url('Mona-Sans.woff2') format('woff2 supports variations'), |
| 20 | + url('Mona-Sans.woff2') format('woff2-variations'); |
| 21 | + font-weight: 200 900; |
| 22 | + font-stretch: 75% 125%; |
| 23 | +} |
| 24 | + |
| 25 | +html { |
| 26 | + font-family: 'Mona Sans'; |
| 27 | +} |
| 28 | +``` |
| 29 | + |
| 30 | +To reduce [CLS](https://web.dev/cls/), you can preload the font in the `head` of your document: |
| 31 | + |
| 32 | +```html |
| 33 | +<link rel="preload" href="Mona-Sans.woff2" as="font" type="font/woff2" crossorigin> |
| 34 | +``` |
16 | 35 |
|
17 | 36 | ## Styles |
18 | 37 | | Style Name | Italic Name | Weight | Width | |
|
0 commit comments