unocss 0.45.13 → 0.45.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -8
- package/astro.d.ts +2 -0
- package/package.json +20 -20
- package/preset-attributify.d.ts +2 -0
- package/preset-icons.d.ts +2 -0
- package/preset-mini.d.ts +2 -0
- package/preset-tagify.d.ts +2 -0
- package/preset-typography.d.ts +2 -0
- package/preset-uno.d.ts +2 -0
- package/preset-web-fonts.d.ts +2 -0
- package/preset-wind.d.ts +2 -0
- package/webpack.d.ts +2 -0
package/README.md
CHANGED
|
@@ -29,8 +29,8 @@ The instant on-demand Atomic CSS engine.
|
|
|
29
29
|
Inspired by [Windi CSS](http://windicss.org/), [Tailwind CSS](https://tailwindcss.com/), and [Twind](https://github.com/tw-in-js/twind), but:
|
|
30
30
|
|
|
31
31
|
- [Fully customizable](#configurations) - no core utilities, all functionalities are provided via presets.
|
|
32
|
-
- No parsing, no AST, no scanning, it's **INSTANT** (
|
|
33
|
-
- ~
|
|
32
|
+
- No parsing, no AST, no scanning, it's **INSTANT** (5x faster than Windi CSS or Tailwind JIT).
|
|
33
|
+
- ~6kb min+brotli - zero deps and browser friendly.
|
|
34
34
|
- [Shortcuts](#shortcuts) - aliasing utilities, dynamically.
|
|
35
35
|
- [Attributify mode](https://github.com/unocss/unocss/tree/main/packages/preset-attributify/) - group utilities in attributes.
|
|
36
36
|
- [Pure CSS Icons](https://github.com/unocss/unocss/tree/main/packages/preset-icons/) - use any icon as a single class.
|
|
@@ -45,13 +45,13 @@ Inspired by [Windi CSS](http://windicss.org/), [Tailwind CSS](https://tailwindcs
|
|
|
45
45
|
###### Benchmark
|
|
46
46
|
|
|
47
47
|
```
|
|
48
|
-
2022/
|
|
49
|
-
1656 utilities |
|
|
48
|
+
2022/9/3 22:40:50
|
|
49
|
+
1656 utilities | x200 runs (75% build time)
|
|
50
50
|
|
|
51
|
-
none
|
|
52
|
-
unocss v0.
|
|
53
|
-
tailwindcss v3.1.
|
|
54
|
-
windicss v3.5.
|
|
51
|
+
none 20.01 ms / delta. 0.00 ms
|
|
52
|
+
unocss v0.45.14 199.76 ms / delta. 179.75 ms (x1.00)
|
|
53
|
+
tailwindcss v3.1.8 875.51 ms / delta. 855.50 ms (x4.76)
|
|
54
|
+
windicss v3.5.6 1342.37 ms / delta. 1322.36 ms (x7.36)
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
## Installation
|
|
@@ -144,6 +144,9 @@ Presets are the heart of UnoCSS. They let you make your own custom framework in
|
|
|
144
144
|
- [unocss-preset-scrollbar](https://github.com/action-hong/unocss-preset-scrollbar) - Scrollbar Preset by [@action-hong](https://github.com/action-hong).
|
|
145
145
|
- [unocss-preset-uni](https://github.com/zguolee/unocss-preset-uni) - UniApp Preset by [@zguolee](https://github.com/zguolee).
|
|
146
146
|
- [unocss-preset-weapp](https://github.com/MellowCo/unocss-preset-weapp) - Wechat MiniProgram Preset for [UniApp](https://uniapp.dcloud.io) and [Taro](https://taro-docs.jd.com/taro/docs) by [@MellowCo](https://github.com/MellowCo).
|
|
147
|
+
- [unocss-preset-heropatterns](https://github.com/Julien-R44/unocss-preset-heropatterns) - Preset that integrates [Hero Patterns](https://heropatterns.com/) by [@Julien-R44](https://github.com/Julien-R44).
|
|
148
|
+
- [unocss-preset-flowbite](https://github.com/Julien-R44/unocss-preset-flowbite) - Port of of [Flowbite Tailwind plugin](https://github.com/themesberg/flowbite) for UnoCSS by [@Julien-R44](https://github.com/Julien-R44).
|
|
149
|
+
- [unocss-preset-forms](https://github.com/Julien-R44/unocss-preset-forms) - Port of [@tailwindcss/forms](https://github.com/tailwindlabs/tailwindcss-forms) for UnoCSS by [@Julien-R44](https://github.com/Julien-R44).
|
|
147
150
|
|
|
148
151
|
### Using Presets
|
|
149
152
|
|
package/astro.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unocss",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.18",
|
|
4
4
|
"description": "The instant on-demand Atomic CSS engine.",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"node": ">=14"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@unocss/webpack": "0.45.
|
|
101
|
+
"@unocss/webpack": "0.45.18"
|
|
102
102
|
},
|
|
103
103
|
"peerDependenciesMeta": {
|
|
104
104
|
"@unocss/webpack": {
|
|
@@ -106,26 +106,26 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@unocss/astro": "0.45.
|
|
110
|
-
"@unocss/cli": "0.45.
|
|
111
|
-
"@unocss/core": "0.45.
|
|
112
|
-
"@unocss/preset-attributify": "0.45.
|
|
113
|
-
"@unocss/preset-icons": "0.45.
|
|
114
|
-
"@unocss/preset-mini": "0.45.
|
|
115
|
-
"@unocss/preset-tagify": "0.45.
|
|
116
|
-
"@unocss/preset-typography": "0.45.
|
|
117
|
-
"@unocss/preset-uno": "0.45.
|
|
118
|
-
"@unocss/preset-web-fonts": "0.45.
|
|
119
|
-
"@unocss/preset-wind": "0.45.
|
|
120
|
-
"@unocss/reset": "0.45.
|
|
121
|
-
"@unocss/transformer-attributify-jsx": "0.45.
|
|
122
|
-
"@unocss/transformer-compile-class": "0.45.
|
|
123
|
-
"@unocss/transformer-directives": "0.45.
|
|
124
|
-
"@unocss/transformer-variant-group": "0.45.
|
|
125
|
-
"@unocss/vite": "0.45.
|
|
109
|
+
"@unocss/astro": "0.45.18",
|
|
110
|
+
"@unocss/cli": "0.45.18",
|
|
111
|
+
"@unocss/core": "0.45.18",
|
|
112
|
+
"@unocss/preset-attributify": "0.45.18",
|
|
113
|
+
"@unocss/preset-icons": "0.45.18",
|
|
114
|
+
"@unocss/preset-mini": "0.45.18",
|
|
115
|
+
"@unocss/preset-tagify": "0.45.18",
|
|
116
|
+
"@unocss/preset-typography": "0.45.18",
|
|
117
|
+
"@unocss/preset-uno": "0.45.18",
|
|
118
|
+
"@unocss/preset-web-fonts": "0.45.18",
|
|
119
|
+
"@unocss/preset-wind": "0.45.18",
|
|
120
|
+
"@unocss/reset": "0.45.18",
|
|
121
|
+
"@unocss/transformer-attributify-jsx": "0.45.18",
|
|
122
|
+
"@unocss/transformer-compile-class": "0.45.18",
|
|
123
|
+
"@unocss/transformer-directives": "0.45.18",
|
|
124
|
+
"@unocss/transformer-variant-group": "0.45.18",
|
|
125
|
+
"@unocss/vite": "0.45.18"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"@unocss/webpack": "0.45.
|
|
128
|
+
"@unocss/webpack": "0.45.18"
|
|
129
129
|
},
|
|
130
130
|
"scripts": {
|
|
131
131
|
"build": "unbuild",
|
package/preset-mini.d.ts
ADDED
package/preset-uno.d.ts
ADDED
package/preset-wind.d.ts
ADDED
package/webpack.d.ts
ADDED