Skip to content

Commit 551ea09

Browse files
committed
Add font weights
1 parent a251770 commit 551ea09

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,22 @@ Define a custom font. All modern browsers support WOFF2.
102102
}
103103
```
104104

105+
## Font weights
106+
107+
Which font weight number belongs to which font weight name.
108+
109+
css | name
110+
--- | ---
111+
100 | Thin
112+
300 | Light
113+
350 | Book
114+
400 (normal)| Normal/Regular
115+
500 | Medium
116+
600 | Semi Bold/Demi Bold
117+
700 (bold)| Bold
118+
800 | Extra Bold/Ultra Bold
119+
900 | Black/Heavy
120+
105121
## Responsive design
106122

107123
Every webpage should look good on desktop, tablet and mobile.
@@ -151,7 +167,7 @@ Don't wait for possible double click.
151167

152168
## Click through top element
153169

154-
Make a top level element behave it's not there.
170+
Make a top level element behave like it's not there.
155171

156172
```css
157173
.box {
@@ -187,7 +203,7 @@ button:focus-visible {
187203

188204
## Provide "alt" to background image
189205

190-
Note: make sure to keep the element empty.
206+
Note: don't include text in this element.
191207

192208
```html
193209
<div class="background-image" role="img" aria-label="Alt text"></div>
@@ -198,7 +214,7 @@ Note: make sure to keep the element empty.
198214
Remove the semantics from an element
199215

200216
```html
201-
<h2 role=presentation>Large text, but not a heading</h2>
217+
<h2 role="presentation">Large text, but not a heading</h2>
202218
```
203219

204220
## Toggle buttons

0 commit comments

Comments
 (0)