unocss 0.48.4 → 0.49.0
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 +6 -6
- package/package.json +20 -20
package/README.md
CHANGED
|
@@ -100,12 +100,12 @@ To set presets to your project:
|
|
|
100
100
|
|
|
101
101
|
```ts
|
|
102
102
|
// vite.config.ts
|
|
103
|
-
import
|
|
103
|
+
import UnoCSS from 'unocss/vite'
|
|
104
104
|
import { presetAttributify, presetUno } from 'unocss'
|
|
105
105
|
|
|
106
106
|
export default {
|
|
107
107
|
plugins: [
|
|
108
|
-
|
|
108
|
+
UnoCSS({
|
|
109
109
|
presets: [
|
|
110
110
|
presetAttributify({ /* preset options */}),
|
|
111
111
|
presetUno(),
|
|
@@ -122,11 +122,11 @@ To disable the default preset, you can set `presets` to an empty array:
|
|
|
122
122
|
|
|
123
123
|
```ts
|
|
124
124
|
// vite.config.ts
|
|
125
|
-
import
|
|
125
|
+
import UnoCSS from 'unocss/vite'
|
|
126
126
|
|
|
127
127
|
export default {
|
|
128
128
|
plugins: [
|
|
129
|
-
|
|
129
|
+
UnoCSS({
|
|
130
130
|
presets: [], // disable default preset
|
|
131
131
|
rules: [
|
|
132
132
|
// your custom rules
|
|
@@ -200,9 +200,9 @@ When you really need some advanced rules that can't be covered by the combinatio
|
|
|
200
200
|
By returning a `string` from the dynamic rule's body function, it will be directly passed to the generated CSS. That also means you would need to take care of things like CSS escaping, variants applying, CSS constructing, and so on.
|
|
201
201
|
|
|
202
202
|
```ts
|
|
203
|
-
import
|
|
203
|
+
import UnoCSS, { toEscapedSelector as e } from 'unocss'
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
UnoCSS({
|
|
206
206
|
rules: [
|
|
207
207
|
[/^custom-(.+)$/, ([, name], { rawSelector, currentSelector, variantHandlers, theme }) => {
|
|
208
208
|
// discard mismatched rules
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unocss",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
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.
|
|
101
|
+
"@unocss/webpack": "0.49.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependenciesMeta": {
|
|
104
104
|
"@unocss/webpack": {
|
|
@@ -106,26 +106,26 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@unocss/astro": "0.
|
|
110
|
-
"@unocss/cli": "0.
|
|
111
|
-
"@unocss/core": "0.
|
|
112
|
-
"@unocss/preset-attributify": "0.
|
|
113
|
-
"@unocss/preset-icons": "0.
|
|
114
|
-
"@unocss/preset-mini": "0.
|
|
115
|
-
"@unocss/preset-tagify": "0.
|
|
116
|
-
"@unocss/preset-typography": "0.
|
|
117
|
-
"@unocss/preset-uno": "0.
|
|
118
|
-
"@unocss/preset-web-fonts": "0.
|
|
119
|
-
"@unocss/preset-wind": "0.
|
|
120
|
-
"@unocss/reset": "0.
|
|
121
|
-
"@unocss/transformer-attributify-jsx": "0.
|
|
122
|
-
"@unocss/transformer-compile-class": "0.
|
|
123
|
-
"@unocss/transformer-directives": "0.
|
|
124
|
-
"@unocss/transformer-variant-group": "0.
|
|
125
|
-
"@unocss/vite": "0.
|
|
109
|
+
"@unocss/astro": "0.49.0",
|
|
110
|
+
"@unocss/cli": "0.49.0",
|
|
111
|
+
"@unocss/core": "0.49.0",
|
|
112
|
+
"@unocss/preset-attributify": "0.49.0",
|
|
113
|
+
"@unocss/preset-icons": "0.49.0",
|
|
114
|
+
"@unocss/preset-mini": "0.49.0",
|
|
115
|
+
"@unocss/preset-tagify": "0.49.0",
|
|
116
|
+
"@unocss/preset-typography": "0.49.0",
|
|
117
|
+
"@unocss/preset-uno": "0.49.0",
|
|
118
|
+
"@unocss/preset-web-fonts": "0.49.0",
|
|
119
|
+
"@unocss/preset-wind": "0.49.0",
|
|
120
|
+
"@unocss/reset": "0.49.0",
|
|
121
|
+
"@unocss/transformer-attributify-jsx": "0.49.0",
|
|
122
|
+
"@unocss/transformer-compile-class": "0.49.0",
|
|
123
|
+
"@unocss/transformer-directives": "0.49.0",
|
|
124
|
+
"@unocss/transformer-variant-group": "0.49.0",
|
|
125
|
+
"@unocss/vite": "0.49.0"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"@unocss/webpack": "0.
|
|
128
|
+
"@unocss/webpack": "0.49.0"
|
|
129
129
|
},
|
|
130
130
|
"scripts": {
|
|
131
131
|
"build": "unbuild",
|