You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
+
# 🧩 Tailwind CSS Custom Native Utilities
1
2
This Tailwind CSS plugin allows you to write configuration for your own custom utility in the `theme` and `variants` section of your config as though it were actually part of the framework. Just define it with a single line in the `plugins` section!
2
3
3
4
This should allow you to finally kill off leftover CSS and inline styles that have no accompanying plugin-made or native utility. Although you can replace other [plugins](https://github.com/aniftyco/awesome-tailwindcss#plugins) with this one, it's probably a good idea to use those instead because they're purpose-built and likely to create a better output.
4
5
5
-
##Installation
6
+
#💻 Installation
6
7
7
8
```bash
8
9
npm install --save-dev tailwindcss-custom-native
9
10
```
10
11
11
-
##Basic usage
12
+
#🛠 Basic usage
12
13
13
14
With this Tailwind configuration,
14
15
@@ -92,7 +93,7 @@ you get this additional CSS:
92
93
}
93
94
```
94
95
95
-
## Advanced usage
96
+
#⚙️ Full configuration
96
97
97
98
This plugin expects configuration of the form
98
99
@@ -125,7 +126,7 @@ Where each parameter means:
125
126
126
127
As of Tailwind 1.2.0, this just means the [`respectPrefix` and `respectImportant`](https://tailwindcss.com/docs/plugins/#prefix-and-important-preferences) options
127
128
128
-
##Examples
129
+
#📚 Examples
129
130
130
131
Specify `rename: ''` so you can write `blur-4` and `grayscale` instead of `filter-blur-4` and `filter-grayscale`:
131
132
@@ -339,7 +340,7 @@ module.exports = {
339
340
}
340
341
```
341
342
342
-
## License and Contributing
343
+
## 📄 License and Contributing
343
344
344
345
MIT licensed. There are no contributing guidelines. Just do whatever you want to point out an issue or feature request and I'll work with it.
0 commit comments