From d62cf62e87de0640d53796c76941e9a75d22e4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sat, 2 Dec 2017 18:14:25 +0100 Subject: [PATCH] borderWidths --- docs/source/docs/border-width.blade.md | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/source/docs/border-width.blade.md b/docs/source/docs/border-width.blade.md index 19dca9611..3d0a0b749 100644 --- a/docs/source/docs/border-width.blade.md +++ b/docs/source/docs/border-width.blade.md @@ -37,3 +37,37 @@ For example, `.border` would add a `1px` border to all sides of the element, whe
8 8px
+ +## Customizing + +### Responsive, Hover, and Focus Variants + +By default, no hover, focus, or group-hover variants are generated for border width utilities. + +You can control which variants are generated for the border width utilities by modifying the `borderWidths` property in the `modules` section of your Tailwind config file. + +For example, this config will _also_ generate hover and focus variants: + +```js +{ + // ... + modules: { + // ... + borderWidths: ['responsive', 'hover', 'focus'], + } +} +``` + +### Disabling + +If you aren't using the border width utilities in your project, you can disable them entirely by setting the `borderWidths` property to `false` in the `modules` section of your config file: + +```js +{ + // ... + modules: { + // ... + borderWidths: false, + } +} +```