diff --git a/docs/source/_partials/customized-config.blade.php b/docs/source/_partials/customized-config.blade.php index f69383f2a..881ed5dc8 100644 --- a/docs/source/_partials/customized-config.blade.php +++ b/docs/source/_partials/customized-config.blade.php @@ -10,6 +10,9 @@ if (starts_with($line, '-')) { return '
By default, {{ $whichVariants }} variants are generated for {{ $utility['name'] }} utilities.
+ +You can control which variants are generated for the {{ $utility['name'] }} utilities by modifying the {{ $utility['property'] }} property in the modules section of your Tailwind config file.
For example, this config will also generate {{ $extraVariants }} variants:
+ +@component('_partials.customized-config', ['key' => 'modules']) + // ... +- {{ $utility['property'] }}: [{{$currentVariants}}], ++ {{ $utility['property'] }}: ['responsive', 'hover', 'focus'], +@endcomponent + +@isset($extraMessage) +{!! $extraMessage !!}
+@endif + +If you aren't using the {{ $utility['name'] }} utilities in your project, you can disable them entirely by setting the {{ $utility['property'] }} property to false in the modules section of your config file:
8 8pxflexbox property will affect what variants are generated for all flexbox modules, not just the align-content utilities.'
+])
diff --git a/docs/source/docs/flexbox-align-items.blade.md b/docs/source/docs/flexbox-align-items.blade.md
index 3428011ad..39f839c32 100644
--- a/docs/source/docs/flexbox-align-items.blade.md
+++ b/docs/source/docs/flexbox-align-items.blade.md
@@ -147,3 +147,16 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'flexbox',
+ 'property' => 'flexbox',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+ 'extraMessage' => 'Note that modifying the flexbox property will affect what variants are generated for all flexbox modules, not just the align-items utilities.'
+])
diff --git a/docs/source/docs/flexbox-align-self.blade.md b/docs/source/docs/flexbox-align-self.blade.md
index 46441d121..bc59df587 100644
--- a/docs/source/docs/flexbox-align-self.blade.md
+++ b/docs/source/docs/flexbox-align-self.blade.md
@@ -149,3 +149,16 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'flexbox',
+ 'property' => 'flexbox',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+ 'extraMessage' => 'Note that modifying the flexbox property will affect what variants are generated for all flexbox modules, not just the align-self utilities.'
+])
diff --git a/docs/source/docs/flexbox-direction.blade.md b/docs/source/docs/flexbox-direction.blade.md
index a449cfe0c..fb821f57e 100644
--- a/docs/source/docs/flexbox-direction.blade.md
+++ b/docs/source/docs/flexbox-direction.blade.md
@@ -130,3 +130,16 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'flexbox',
+ 'property' => 'flexbox',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+ 'extraMessage' => 'Note that modifying the flexbox property will affect what variants are generated for all flexbox modules, not just the flex-direction utilities.'
+])
diff --git a/docs/source/docs/flexbox-display.blade.md b/docs/source/docs/flexbox-display.blade.md
index 543e52811..6b51e1759 100644
--- a/docs/source/docs/flexbox-display.blade.md
+++ b/docs/source/docs/flexbox-display.blade.md
@@ -96,3 +96,16 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'flexbox',
+ 'property' => 'flexbox',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+ 'extraMessage' => 'Note that modifying the flexbox property will affect what variants are generated for all flexbox modules, not just the display utilities.'
+])
diff --git a/docs/source/docs/flexbox-flex-grow-shrink.blade.md b/docs/source/docs/flexbox-flex-grow-shrink.blade.md
index e30f8ad20..1fd6b33c4 100644
--- a/docs/source/docs/flexbox-flex-grow-shrink.blade.md
+++ b/docs/source/docs/flexbox-flex-grow-shrink.blade.md
@@ -368,3 +368,16 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'flexbox',
+ 'property' => 'flexbox',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+ 'extraMessage' => 'Note that modifying the flexbox property will affect what variants are generated for all flexbox modules, not just the flex utilities.'
+])
diff --git a/docs/source/docs/flexbox-justify-content.blade.md b/docs/source/docs/flexbox-justify-content.blade.md
index 9483a2af0..0ca75df2d 100644
--- a/docs/source/docs/flexbox-justify-content.blade.md
+++ b/docs/source/docs/flexbox-justify-content.blade.md
@@ -147,3 +147,16 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'flexbox',
+ 'property' => 'flexbox',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+ 'extraMessage' => 'Note that modifying the flexbox property will affect what variants are generated for all flexbox modules, not just the justify-content utilities.'
+])
diff --git a/docs/source/docs/flexbox-wrapping.blade.md b/docs/source/docs/flexbox-wrapping.blade.md
index d919eba88..05167a7ee 100644
--- a/docs/source/docs/flexbox-wrapping.blade.md
+++ b/docs/source/docs/flexbox-wrapping.blade.md
@@ -161,3 +161,16 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'flexbox',
+ 'property' => 'flexbox',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+ 'extraMessage' => 'Note that modifying the flexbox property will affect what variants are generated for all flexbox modules, not just the flex-wrap utilities.'
+])
diff --git a/docs/source/docs/floats.blade.md b/docs/source/docs/floats.blade.md
index 87d0548e4..6ca9a94bb 100644
--- a/docs/source/docs/floats.blade.md
+++ b/docs/source/docs/floats.blade.md
@@ -35,3 +35,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'float',
+ 'property' => 'float',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/font-weight.blade.md b/docs/source/docs/font-weight.blade.md
index 8e32b5c8a..a53afde6d 100644
--- a/docs/source/docs/font-weight.blade.md
+++ b/docs/source/docs/font-weight.blade.md
@@ -60,3 +60,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'font weight',
+ 'property' => 'fontWeights',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/fonts.blade.md b/docs/source/docs/fonts.blade.md
index 78f2659fe..2c7d8fcd3 100644
--- a/docs/source/docs/fonts.blade.md
+++ b/docs/source/docs/fonts.blade.md
@@ -30,3 +30,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'font',
+ 'property' => 'fonts',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/forms.blade.md b/docs/source/docs/forms.blade.md
index 7f1f822c8..e1f5e2245 100644
--- a/docs/source/docs/forms.blade.md
+++ b/docs/source/docs/forms.blade.md
@@ -37,3 +37,15 @@ Form controls are great candidates for component classes, but just for fun, here
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'form control appearance',
+ 'property' => 'appearance',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/height.blade.md b/docs/source/docs/height.blade.md
index 26824f247..87534acfb 100644
--- a/docs/source/docs/height.blade.md
+++ b/docs/source/docs/height.blade.md
@@ -101,3 +101,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'height',
+ 'property' => 'height',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/letter-spacing.blade.md b/docs/source/docs/letter-spacing.blade.md
index af5a523fa..218b6a097 100644
--- a/docs/source/docs/letter-spacing.blade.md
+++ b/docs/source/docs/letter-spacing.blade.md
@@ -30,3 +30,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'tracking',
+ 'property' => 'tracking',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/line-height.blade.md b/docs/source/docs/line-height.blade.md
index 2f31a286d..fd2fc8d37 100644
--- a/docs/source/docs/line-height.blade.md
+++ b/docs/source/docs/line-height.blade.md
@@ -35,3 +35,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'leading',
+ 'property' => 'leading',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/lists.blade.md b/docs/source/docs/lists.blade.md
index 86c374a5b..a79b17e91 100644
--- a/docs/source/docs/lists.blade.md
+++ b/docs/source/docs/lists.blade.md
@@ -20,3 +20,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'list',
+ 'property' => 'lists',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/max-height.blade.md b/docs/source/docs/max-height.blade.md
index 8071a3142..6d1325dd2 100644
--- a/docs/source/docs/max-height.blade.md
+++ b/docs/source/docs/max-height.blade.md
@@ -26,3 +26,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'max-height',
+ 'property' => 'maxHeight',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/max-width.blade.md b/docs/source/docs/max-width.blade.md
index 7b7b9d90b..dc1903486 100644
--- a/docs/source/docs/max-width.blade.md
+++ b/docs/source/docs/max-width.blade.md
@@ -66,3 +66,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'max-width',
+ 'property' => 'maxWidth',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/min-height.blade.md b/docs/source/docs/min-height.blade.md
index add177599..6cfbbc4cf 100644
--- a/docs/source/docs/min-height.blade.md
+++ b/docs/source/docs/min-height.blade.md
@@ -31,3 +31,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'min-height',
+ 'property' => 'minHeight',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/min-width.blade.md b/docs/source/docs/min-width.blade.md
index 86be64906..3eb1562e7 100644
--- a/docs/source/docs/min-width.blade.md
+++ b/docs/source/docs/min-width.blade.md
@@ -26,3 +26,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'min-width',
+ 'property' => 'minWidth',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/opacity.blade.md b/docs/source/docs/opacity.blade.md
index b7793b466..8484b41f8 100644
--- a/docs/source/docs/opacity.blade.md
+++ b/docs/source/docs/opacity.blade.md
@@ -113,3 +113,13 @@ By default Tailwind provides five opacity utilities based on a simple numeric sc
+ '90': '.9',
'100': '1',
@endcomponent
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'opacity',
+ 'property' => 'opacity',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/overflow.blade.md b/docs/source/docs/overflow.blade.md
index 1d92a5c7d..36f930bf8 100644
--- a/docs/source/docs/overflow.blade.md
+++ b/docs/source/docs/overflow.blade.md
@@ -219,3 +219,15 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'overflow',
+ 'property' => 'overflow',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/pointer-events.blade.md b/docs/source/docs/pointer-events.blade.md
index d6da015fe..a8ae844ff 100644
--- a/docs/source/docs/pointer-events.blade.md
+++ b/docs/source/docs/pointer-events.blade.md
@@ -25,3 +25,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'pointer event',
+ 'property' => 'pointerEvents',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/positioning.blade.md b/docs/source/docs/positioning.blade.md
index 554434052..c1dc30eab 100644
--- a/docs/source/docs/positioning.blade.md
+++ b/docs/source/docs/positioning.blade.md
@@ -404,3 +404,15 @@ For more information about Tailwind's responsive design features, check out the
@endslot
@endcomponent
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'positioning',
+ 'property' => 'position',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/resize.blade.md b/docs/source/docs/resize.blade.md
index 67efc21d6..a4c1f89ae 100644
--- a/docs/source/docs/resize.blade.md
+++ b/docs/source/docs/resize.blade.md
@@ -36,3 +36,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'resizing',
+ 'property' => 'resize',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/shadows.blade.md b/docs/source/docs/shadows.blade.md
index 117598cd6..46de97295 100644
--- a/docs/source/docs/shadows.blade.md
+++ b/docs/source/docs/shadows.blade.md
@@ -135,3 +135,13 @@ If a `default` shadow is provided, it will be used for the non-suffixed `.shadow
+ '3': '0 8px 16px rgba(0,0,0,0.15)',
'none': 'none',
@endcomponent
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'shadow',
+ 'property' => 'shadows',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/spacing.blade.md b/docs/source/docs/spacing.blade.md
index 57029cad5..45bd7123e 100644
--- a/docs/source/docs/spacing.blade.md
+++ b/docs/source/docs/spacing.blade.md
@@ -45,3 +45,41 @@ For example, `.pt-2` would add `.5rem` of padding to the top of the element, `.m
auto auto (margins only)…) if needed.',
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'whitespace & wrapping',
+ 'property' => 'whitespace',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/width.blade.md b/docs/source/docs/width.blade.md
index 23954527e..d5f690976 100644
--- a/docs/source/docs/width.blade.md
+++ b/docs/source/docs/width.blade.md
@@ -156,3 +156,15 @@ features:
],
]
])
+
+## Customizing
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'width',
+ 'property' => 'width',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])
diff --git a/docs/source/docs/z-index.blade.md b/docs/source/docs/z-index.blade.md
index af87a556f..3e4a7bee7 100644
--- a/docs/source/docs/z-index.blade.md
+++ b/docs/source/docs/z-index.blade.md
@@ -154,3 +154,13 @@ By default Tailwind provides six numeric `z-index` utilities and an `auto` utili
+ '100': 100,
'auto': 'auto',
@endcomponent
+
+@include('_partials.variants-and-disabling', [
+ 'utility' => [
+ 'name' => 'z-index',
+ 'property' => 'zIndex',
+ ],
+ 'variants' => [
+ 'responsive',
+ ],
+])