Skip to content

Commit ceee123

Browse files
committed
docs: add reset-font docs
1 parent 913320d commit ceee123

4 files changed

Lines changed: 36 additions & 8 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ __Tiny [5<sup>th</sup> generation](https://github.com/streamich/freestyler/blob/
3939
- [`unitless`](./docs/unitless.md)
4040
- [`!important`](./docs/important.md)
4141
- [`:global`](./docs/global.md)
42-
- [Animations](./docs/animations.md)
43-
- [CSS resets](./docs/resets.md)
42+
- [`animate/*`](./docs/animations.md)
43+
- [`reset/*`](./docs/resets.md)
44+
- [`reset-font`](./docs/reset-font.md)
4445
- [Server-side rendering](./docs/SSR.md)
4546

4647

addon/reset-font.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ exports.addon = function (renderer) {
77

88
renderer.put('', {
99
'html, body': {
10-
ff: '"Open Sans",sans',
11-
fw: 400,
12-
fz: '16px',
10+
fontFamily: '"Open Sans",sans',
11+
fontWeight: 400,
12+
fontSize: '16px',
1313

1414
'-moz-text-size-adjust': '100%',
1515
'-ms-text-size-adjust': '100%',

docs/Addons.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ plenty more to chose from. Below is a list of addons shipped with `nano-css`.
2626
- [`unitless`](./unitless.md) &mdash; automatically adds `px` to styles
2727
- [`!important`](./important.md) &mdash; adds `!important` to all declarations
2828
- [`:global`](./global.md) &mdash; allows emitting global styles
29-
- [Animations](./animations.md) &mdash; collection of animation styles
30-
- [CSS resets](./resets.md) &mdash; collection of CSS resets
31-
29+
- [`animate/*`](./animations.md) &mdash; collection of animation styles
30+
- [`reset/*`](./resets.md) &mdash; collection of CSS resets
31+
- [`reset-font`](./docs/reset-font.md) &mdash; global styles for better font
3232

3333
## Addon Installation
3434

docs/reset-font.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# `reset-font` Addon
2+
3+
Injects the below global styles to make fonts look better.
4+
5+
```js
6+
{
7+
'html, body': {
8+
fontFamily: '"Open Sans",sans',
9+
fontWeight: 400,
10+
fontSize: '16px',
11+
12+
'-moz-text-size-adjust': '100%',
13+
'-ms-text-size-adjust': '100%',
14+
'-webkit-text-size-adjust': '100%',
15+
'text-size-adjust': '100%',
16+
17+
// Makes fonts more smooth/prettier.
18+
'-webkit-font-smoothing': 'antialiased',
19+
'-moz-osx-font-smoothing': 'grayscale',
20+
}
21+
}
22+
```
23+
24+
25+
## Installation
26+
27+
Simply install `reset-font` addon. Read more about the [Addon Installation](./Addons.md#addon-installation).

0 commit comments

Comments
 (0)