Skip to content

Commit 19fd10e

Browse files
committed
borderStyle
1 parent 9248d28 commit 19fd10e

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

docs/source/docs/border-radius.blade.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,35 @@ By default Tailwind provides five border radius size utilities. You can change,
366366
- 'full': '9999px',
367367
+ 'large': '12px',
368368
@endcomponent
369+
370+
### Responsive, Hover, and Focus Variants
371+
372+
By default, no hover, focus, or group-hover variants are generated for border radius utilities.
373+
374+
You can control which variants are generated for the border radius utilities by modifying the `borderRadius` property in the `modules` section of your Tailwind config file.
375+
376+
For example, this config will _also_ generate hover and focus variants:
377+
378+
```js
379+
{
380+
// ...
381+
modules: {
382+
// ...
383+
borderRadius: ['responsive', 'hover', 'focus'],
384+
}
385+
}
386+
```
387+
388+
### Disabling
389+
390+
If you aren't using the border radius utilities in your project, you can disable them entirely by setting the `borderRadius` property to `false` in the `modules` section of your config file:
391+
392+
```js
393+
{
394+
// ...
395+
modules: {
396+
// ...
397+
borderRadius: false,
398+
}
399+
}
400+
```

docs/source/docs/border-style.blade.md

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

0 commit comments

Comments
 (0)