Skip to content

Commit 1659a92

Browse files
committed
Update docs on typography helpers
1 parent cf5c30c commit 1659a92

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

docs/concepts/typography.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Please refer to the <a href="colours">Colors</a> section for more information on
1010

1111
### Sizes
1212

13+
Disclaimer: Use these helpers when you need to modify the look of an element in cases where using a different element would lead to the wrong semantic meaning. A good example is the Ember.js home page, where a hero element exists which contains the `<h1>` for that page and therefore requires all subsequent headlines to shift down one level. The design does not know about this semantic shift, so all `<h2>` on that page need `.text-xl` to look like `<h1>` and so on.
14+
1315
Use `.text-sm` for small headings or notice paragraphs.
1416

1517
```html
@@ -42,28 +44,38 @@ Use `.text-md` for section headings. This is also the default size for the `h3`
4244
</div>
4345
```
4446

45-
Use `.large` for content page headings. This is also the default size for the `h2` element.
47+
Use `.text-lg` for content page headings. This is also the default size for the `h2` element.
4648

4749
```html
4850
<div class="text-lg">
4951
Build with the teams that never stop shipping.
5052
</div>
5153
```
5254

53-
Use `.xlarge` for landing page headlines. This is also the default size for the `h1` element.
55+
Use `.text-xl` for landing page headlines. This is also the default size for the `h1` element.
5456

5557
```html
5658
<div class="text-xl">
5759
Build with the teams that never stop shipping.
5860
</div>
5961
```
6062

61-
Use `.display` in page headers.
63+
Use `.text-hero-xl` for headlines in page headers (heros).
6264

6365
```html
64-
<div class="display">
66+
<h1 class="text-hero-xl">
6567
Build with the teams that never stop shipping.
66-
</div>
68+
</h1>
69+
```
70+
71+
Use `.text-hero-base` for plain text in page headers (heros).
72+
73+
```html
74+
<p class="text-hero-base">
75+
Ember.js is a productive, battle-tested JavaScript framework for building
76+
modern web applications. It includes everything you need to build rich UIs
77+
that work on any device.
78+
</p>
6779
```
6880

6981
## Weights

0 commit comments

Comments
 (0)