Skip to content

Commit b2910c3

Browse files
authored
Merge pull request #5 from github/tobiasahlin/polish-readme
Polish readme
2 parents 7d8b093 + 6a5a7f6 commit b2910c3

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
11
# Mona Sans
22

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) ↗️
44

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).
66

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.
88

99
![mona-sans](https://user-images.githubusercontent.com/99746865/200648883-dbd47e9a-9d95-483e-aef6-1bfa602eb942.png)
1010

11-
Check out Mona Sans's sidekick, [Hubot Sans](https://github.com/github/hubot-sans).
11+
## Usage
1212

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:
1414

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+
```
1635

1736
## Styles
1837
| Style Name | Italic Name | Weight | Width |

0 commit comments

Comments
 (0)