Skip to content

Commit 45913d2

Browse files
committed
backgroundSize
1 parent db2176b commit 45913d2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/source/docs/background-size.blade.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,37 @@ features:
2525
],
2626
]
2727
])
28+
29+
## Customizing
30+
31+
### Responsive, Hover, and Focus Variants
32+
33+
By default, no hover, focus, or group-hover variants are generated for background size utilities.
34+
35+
You can control which variants are generated for the background size utilities by modifying the `backgroundSize` property in the `modules` section of your Tailwind config file.
36+
37+
For example, this config will _also_ generate hover and focus variants:
38+
39+
```js
40+
{
41+
// ...
42+
modules: {
43+
// ...
44+
backgroundSize: ['responsive', 'hover', 'focus'],
45+
}
46+
}
47+
```
48+
k
49+
### Disabling
50+
51+
If you aren't using the background size utilities in your project, you can disable them entirely by setting the `backgroundSize` property to `false` in the `modules` section of your config file:
52+
53+
```js
54+
{
55+
// ...
56+
modules: {
57+
// ...
58+
backgroundSize: false,
59+
}
60+
}
61+
```

0 commit comments

Comments
 (0)