Skip to content

Commit 868c913

Browse files
update docs
1 parent b1b2c16 commit 868c913

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

readme.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
A TailwindCSS plugin that adds centering utilities.
44

5-
> [!WARNING]
6-
> This plugin is ESM only.
7-
85
## Install
96

107
```sh
@@ -35,6 +32,22 @@ export default {
3532
};
3633
```
3734

35+
<details>
36+
<summary>CommonJS Configs</summary>
37+
38+
```ts
39+
module.exports = {
40+
theme: {
41+
// ...
42+
},
43+
plugins: [
44+
require("tailwindcss-center"),
45+
],
46+
};
47+
```
48+
49+
</details>
50+
3851
## Usage
3952

4053
Utilities are provided for centering with Flexbox, CSS Grid, absolute positioning, and auto margins:

0 commit comments

Comments
 (0)