Skip to content

Commit 1f22e0c

Browse files
committed
textAlign
1 parent 837f288 commit 1f22e0c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/source/docs/text-alignment.blade.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,37 @@ features:
3535
],
3636
]
3737
])
38+
39+
## Customizing
40+
41+
### Responsive, Hover, and Focus Variants
42+
43+
By default, no hover, focus, or group-hover variants are generated for text align utilities.
44+
45+
You can control which variants are generated for the text align utilities by modifying the `textAlign` 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+
textAlign: ['responsive', 'hover', 'focus'],
55+
}
56+
}
57+
```
58+
59+
### Disabling
60+
61+
If you aren't using the text align utilities in your project, you can disable them entirely by setting the `textAlign` property to `false` in the `modules` section of your config file:
62+
63+
```js
64+
{
65+
// ...
66+
modules: {
67+
// ...
68+
textAlign: false,
69+
}
70+
}
71+
```

0 commit comments

Comments
 (0)