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 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** (200x faster than Windi CSS or Tailwind JIT).
33
- - ~5kb min+gzip - zero deps and browser friendly.
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/7/2 08:38:12 PM
49
- 1656 utilities | x50 runs (min build time)
48
+ 2022/9/3 22:40:50
49
+ 1656 utilities | x200 runs (75% build time)
50
50
 
51
- none 5.87 ms / delta. 0.00 ms
52
- unocss v0.43.0 9.17 ms / delta. 3.30 ms (x1.00)
53
- tailwindcss v3.1.4 497.24 ms / delta. 491.37 ms (x148.70)
54
- windicss v3.5.5 869.47 ms / delta. 863.60 ms (x261.35)
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
@@ -0,0 +1,2 @@
1
+ export * from './dist/astro'
2
+ export { default } from './dist/astro'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unocss",
3
- "version": "0.45.13",
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.13"
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.13",
110
- "@unocss/cli": "0.45.13",
111
- "@unocss/core": "0.45.13",
112
- "@unocss/preset-attributify": "0.45.13",
113
- "@unocss/preset-icons": "0.45.13",
114
- "@unocss/preset-mini": "0.45.13",
115
- "@unocss/preset-tagify": "0.45.13",
116
- "@unocss/preset-typography": "0.45.13",
117
- "@unocss/preset-uno": "0.45.13",
118
- "@unocss/preset-web-fonts": "0.45.13",
119
- "@unocss/preset-wind": "0.45.13",
120
- "@unocss/reset": "0.45.13",
121
- "@unocss/transformer-attributify-jsx": "0.45.13",
122
- "@unocss/transformer-compile-class": "0.45.13",
123
- "@unocss/transformer-directives": "0.45.13",
124
- "@unocss/transformer-variant-group": "0.45.13",
125
- "@unocss/vite": "0.45.13"
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.13"
128
+ "@unocss/webpack": "0.45.18"
129
129
  },
130
130
  "scripts": {
131
131
  "build": "unbuild",
@@ -0,0 +1,2 @@
1
+ export * from './dist/preset-attributify'
2
+ export { default } from './dist/preset-attributify'
@@ -0,0 +1,2 @@
1
+ export * from './dist/preset-icons'
2
+ export { default } from './dist/preset-icons'
@@ -0,0 +1,2 @@
1
+ export * from './dist/preset-mini'
2
+ export { default } from './dist/preset-mini'
@@ -0,0 +1,2 @@
1
+ export * from './dist/preset-tagify'
2
+ export { default } from './dist/preset-tagify'
@@ -0,0 +1,2 @@
1
+ export * from './dist/preset-typography'
2
+ export { default } from './dist/preset-typography'
@@ -0,0 +1,2 @@
1
+ export * from './dist/preset-uno'
2
+ export { default } from './dist/preset-uno'
@@ -0,0 +1,2 @@
1
+ export * from './dist/preset-web-fonts'
2
+ export { default } from './dist/preset-web-fonts'
@@ -0,0 +1,2 @@
1
+ export * from './dist/perset-wind'
2
+ export { default } from './dist/perset-wind'
package/webpack.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/webpack'
2
+ export { default } from './dist/webpack'