Skip to content

Commit db2176b

Browse files
committed
backgroundRepeat
1 parent 0c02fee commit db2176b

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,38 @@ features:
3434
'Repeat the background image only vertically.',
3535
],
3636
]
37-
])
37+
])
38+
39+
## Customizing
40+
41+
### Responsive, Hover, and Focus Variants
42+
43+
By default, no hover, focus, or group-hover variants are generated for background repeat utilities.
44+
45+
You can control which variants are generated for the background repeat utilities by modifying the `backgroundRepeat` property in the `modules` section of your Tailwind config file.
46+
47+
For example, this config will _also_ generate hover and focus variants:
48+
49+
```js
50+
{
51+
// ...
52+
modules: {
53+
// ...
54+
backgroundRepeat: ['responsive', 'hover', 'focus'],
55+
}
56+
}
57+
```
58+
59+
### Disabling
60+
61+
If you aren't using the background repeat utilities in your project, you can disable them entirely by setting the `backgroundRepeat` property to `false` in the `modules` section of your config file:
62+
63+
```js
64+
{
65+
// ...
66+
modules: {
67+
// ...
68+
backgroundRepeat: false,
69+
}
70+
}
71+
```

0 commit comments

Comments
 (0)