Skip to content

Commit 7905911

Browse files
authored
Document fontSize default lineHeight object syntax (#972)
1 parent f0a46c0 commit 7905911

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/pages/docs/font-size.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,21 @@ module.exports = {
148148
}
149149
```
150150

151+
You can also specify a default line-height using object syntax:
152+
153+
```js
154+
// tailwind.config.js
155+
module.exports = {
156+
theme: {
157+
fontSize: {
158+
sm: ['14px', {
159+
lineHeight: '20px',
160+
}],
161+
}
162+
}
163+
}
164+
```
165+
151166
We already provide default line heights for each `.text-{size}` class.
152167

153168
### Providing a default letter-spacing

0 commit comments

Comments
 (0)