Skip to content

Commit cce6d10

Browse files
committed
fontWeights
1 parent 52ef0b3 commit cce6d10

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/source/docs/font-weight.blade.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,37 @@ features:
6060
],
6161
]
6262
])
63+
64+
## Customizing
65+
66+
### Responsive, Hover, and Focus Variants
67+
68+
By default, no focus, or group-hover variants are generated for font weight utilities.
69+
70+
You can control which variants are generated for the font weight utilities by modifying the `fontWeights` property in the `modules` section of your Tailwind config file.
71+
72+
For example, this config will _also_ generate focus variants:
73+
74+
```js
75+
{
76+
// ...
77+
modules: {
78+
// ...
79+
fontWeights: ['responsive', 'hover', 'focus'],
80+
}
81+
}
82+
```
83+
84+
### Disabling
85+
86+
If you aren't using the font weight utilities in your project, you can disable them entirely by setting the `fontWeights` property to `false` in the `modules` section of your config file:
87+
88+
```js
89+
{
90+
// ...
91+
modules: {
92+
// ...
93+
fontWeights: false,
94+
}
95+
}
96+
```

0 commit comments

Comments
 (0)