@unocss/preset-mini 0.50.6 → 0.50.8
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 +2 -126
- package/dist/{colors-fdadc382.d.ts → colors-e683aa85.d.ts} +24 -0
- package/dist/colors.cjs +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/colors.mjs +1 -1
- package/dist/{default-be74c37e.d.ts → default-d9218dd5.d.ts} +24 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +9 -9
- package/dist/rules.cjs +2 -2
- package/dist/rules.mjs +2 -2
- package/dist/shared/{preset-mini.fc0fd434.cjs → preset-mini.2c84a1da.cjs} +2 -2
- package/dist/shared/{preset-mini.2f75df7e.cjs → preset-mini.4b2d3970.cjs} +12 -8
- package/dist/shared/{preset-mini.305062ab.mjs → preset-mini.6c20780a.mjs} +8 -8
- package/dist/shared/{preset-mini.65ac75be.mjs → preset-mini.74b45c11.mjs} +48 -24
- package/dist/shared/{preset-mini.761cdd48.mjs → preset-mini.94514c53.mjs} +42 -39
- package/dist/shared/{preset-mini.ef35a101.cjs → preset-mini.a8322582.cjs} +73 -69
- package/dist/shared/{preset-mini.be40d10c.mjs → preset-mini.b53c93f8.mjs} +12 -8
- package/dist/shared/{preset-mini.9d7e4452.mjs → preset-mini.b68b942d.mjs} +73 -69
- package/dist/shared/{preset-mini.30606736.cjs → preset-mini.bb7dc365.cjs} +48 -24
- package/dist/shared/{preset-mini.4a5aade9.cjs → preset-mini.c4fc86b9.cjs} +8 -8
- package/dist/shared/{preset-mini.f9468448.mjs → preset-mini.d3cd9ef2.mjs} +2 -2
- package/dist/shared/{preset-mini.e96e6b4a.cjs → preset-mini.fea712fb.cjs} +42 -39
- package/dist/theme.cjs +3 -3
- package/dist/theme.d.ts +2 -2
- package/dist/theme.mjs +3 -3
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +4 -4
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +2 -2
- package/dist/variants.d.ts +10 -10
- package/dist/variants.mjs +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,133 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
The minimal preset for [UnoCSS](https://github.com/unocss/unocss).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Documentation
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
npm i -D @unocss/preset-mini
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
import presetMini from '@unocss/preset-mini'
|
|
13
|
-
|
|
14
|
-
UnoCSS({
|
|
15
|
-
presets: [
|
|
16
|
-
presetMini(),
|
|
17
|
-
],
|
|
18
|
-
})
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Features
|
|
22
|
-
|
|
23
|
-
### Dark Mode
|
|
24
|
-
|
|
25
|
-
By default, this preset generates class based dark mode with `dark:` variant.
|
|
26
|
-
|
|
27
|
-
```html
|
|
28
|
-
<div class="dark:bg-red:10" />
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
will generate:
|
|
32
|
-
|
|
33
|
-
```css
|
|
34
|
-
.dark .dark\:bg-red\:10 {
|
|
35
|
-
background-color: rgba(248, 113, 113, 0.1);
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
To opt-in media query based dark mode, you can use `@dark:` variant:
|
|
40
|
-
|
|
41
|
-
```html
|
|
42
|
-
<div class="@dark:bg-red:10" />
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
```css
|
|
46
|
-
@media (prefers-color-scheme: dark) {
|
|
47
|
-
.\@dark\:bg-red\:10 {
|
|
48
|
-
background-color: rgba(248, 113, 113, 0.1);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Or set globally with the config for `dark:` variant
|
|
54
|
-
|
|
55
|
-
```ts
|
|
56
|
-
presetMini({
|
|
57
|
-
dark: 'media'
|
|
58
|
-
})
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### CSS @layer
|
|
62
|
-
|
|
63
|
-
[CSS's native @layer](https://developer.mozilla.org/en-US/docs/Web/CSS/@layer) is supported with variant `layer-xx:`
|
|
64
|
-
|
|
65
|
-
```html
|
|
66
|
-
<div class="layer-foo:p4" />
|
|
67
|
-
<div class="layer-bar:m4" />
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
will generate:
|
|
71
|
-
|
|
72
|
-
```css
|
|
73
|
-
@layer foo {
|
|
74
|
-
.layer-foo\:p4 {
|
|
75
|
-
padding: 1rem;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
@layer bar {
|
|
79
|
-
.layer-bar\:m4 {
|
|
80
|
-
margin: 1rem;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Theme
|
|
86
|
-
You can fully customize your theme property in your config, and UnoCSS will eventually deeply merge it to the default theme.
|
|
87
|
-
|
|
88
|
-
<!--eslint-skip-->
|
|
89
|
-
|
|
90
|
-
```ts
|
|
91
|
-
presetMini({
|
|
92
|
-
theme: {
|
|
93
|
-
// ...
|
|
94
|
-
colors: {
|
|
95
|
-
'veryCool': '#0000ff', // class="text-very-cool"
|
|
96
|
-
'brand': {
|
|
97
|
-
'primary': 'hsla(var(--hue, 217), 78%, 51%)', //class="bg-brand-primary"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
}
|
|
101
|
-
})
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
To consume the theme in rules:
|
|
105
|
-
|
|
106
|
-
```ts
|
|
107
|
-
rules: [
|
|
108
|
-
[/^text-(.*)$/, ([, c], { theme }) => {
|
|
109
|
-
if (theme.colors[c])
|
|
110
|
-
return { color: theme.colors[c] }
|
|
111
|
-
}],
|
|
112
|
-
]
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
One exception is that UnoCSS gives full control of `breakpoints` to users. When a custom `breakpoints` is provided, the default will be overridden instead of merging. For example:
|
|
116
|
-
|
|
117
|
-
```ts
|
|
118
|
-
presetMini({
|
|
119
|
-
theme: {
|
|
120
|
-
// ...
|
|
121
|
-
breakpoints: {
|
|
122
|
-
sm: '320px',
|
|
123
|
-
md: '640px',
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
})
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
Right now, you can only use the `sm:` and `md:` breakpoint variants.
|
|
130
|
-
|
|
131
|
-
`verticalBreakpoints` is same as `breakpoints` but for vertical layout.
|
|
7
|
+
Please refer to the [documentation](https://unocss.dev/presets/mini).
|
|
132
8
|
|
|
133
9
|
## License
|
|
134
10
|
|
|
@@ -17,6 +17,7 @@ declare const colors: {
|
|
|
17
17
|
700: string;
|
|
18
18
|
800: string;
|
|
19
19
|
900: string;
|
|
20
|
+
950: string;
|
|
20
21
|
};
|
|
21
22
|
pink: {
|
|
22
23
|
50: string;
|
|
@@ -29,6 +30,7 @@ declare const colors: {
|
|
|
29
30
|
700: string;
|
|
30
31
|
800: string;
|
|
31
32
|
900: string;
|
|
33
|
+
950: string;
|
|
32
34
|
};
|
|
33
35
|
fuchsia: {
|
|
34
36
|
50: string;
|
|
@@ -41,6 +43,7 @@ declare const colors: {
|
|
|
41
43
|
700: string;
|
|
42
44
|
800: string;
|
|
43
45
|
900: string;
|
|
46
|
+
950: string;
|
|
44
47
|
};
|
|
45
48
|
purple: {
|
|
46
49
|
50: string;
|
|
@@ -53,6 +56,7 @@ declare const colors: {
|
|
|
53
56
|
700: string;
|
|
54
57
|
800: string;
|
|
55
58
|
900: string;
|
|
59
|
+
950: string;
|
|
56
60
|
};
|
|
57
61
|
violet: {
|
|
58
62
|
50: string;
|
|
@@ -65,6 +69,7 @@ declare const colors: {
|
|
|
65
69
|
700: string;
|
|
66
70
|
800: string;
|
|
67
71
|
900: string;
|
|
72
|
+
950: string;
|
|
68
73
|
};
|
|
69
74
|
indigo: {
|
|
70
75
|
50: string;
|
|
@@ -77,6 +82,7 @@ declare const colors: {
|
|
|
77
82
|
700: string;
|
|
78
83
|
800: string;
|
|
79
84
|
900: string;
|
|
85
|
+
950: string;
|
|
80
86
|
};
|
|
81
87
|
blue: {
|
|
82
88
|
50: string;
|
|
@@ -89,6 +95,7 @@ declare const colors: {
|
|
|
89
95
|
700: string;
|
|
90
96
|
800: string;
|
|
91
97
|
900: string;
|
|
98
|
+
950: string;
|
|
92
99
|
};
|
|
93
100
|
sky: {
|
|
94
101
|
50: string;
|
|
@@ -101,6 +108,7 @@ declare const colors: {
|
|
|
101
108
|
700: string;
|
|
102
109
|
800: string;
|
|
103
110
|
900: string;
|
|
111
|
+
950: string;
|
|
104
112
|
};
|
|
105
113
|
cyan: {
|
|
106
114
|
50: string;
|
|
@@ -113,6 +121,7 @@ declare const colors: {
|
|
|
113
121
|
700: string;
|
|
114
122
|
800: string;
|
|
115
123
|
900: string;
|
|
124
|
+
950: string;
|
|
116
125
|
};
|
|
117
126
|
teal: {
|
|
118
127
|
50: string;
|
|
@@ -125,6 +134,7 @@ declare const colors: {
|
|
|
125
134
|
700: string;
|
|
126
135
|
800: string;
|
|
127
136
|
900: string;
|
|
137
|
+
950: string;
|
|
128
138
|
};
|
|
129
139
|
emerald: {
|
|
130
140
|
50: string;
|
|
@@ -137,6 +147,7 @@ declare const colors: {
|
|
|
137
147
|
700: string;
|
|
138
148
|
800: string;
|
|
139
149
|
900: string;
|
|
150
|
+
950: string;
|
|
140
151
|
};
|
|
141
152
|
green: {
|
|
142
153
|
50: string;
|
|
@@ -149,6 +160,7 @@ declare const colors: {
|
|
|
149
160
|
700: string;
|
|
150
161
|
800: string;
|
|
151
162
|
900: string;
|
|
163
|
+
950: string;
|
|
152
164
|
};
|
|
153
165
|
lime: {
|
|
154
166
|
50: string;
|
|
@@ -161,6 +173,7 @@ declare const colors: {
|
|
|
161
173
|
700: string;
|
|
162
174
|
800: string;
|
|
163
175
|
900: string;
|
|
176
|
+
950: string;
|
|
164
177
|
};
|
|
165
178
|
yellow: {
|
|
166
179
|
50: string;
|
|
@@ -173,6 +186,7 @@ declare const colors: {
|
|
|
173
186
|
700: string;
|
|
174
187
|
800: string;
|
|
175
188
|
900: string;
|
|
189
|
+
950: string;
|
|
176
190
|
};
|
|
177
191
|
amber: {
|
|
178
192
|
50: string;
|
|
@@ -185,6 +199,7 @@ declare const colors: {
|
|
|
185
199
|
700: string;
|
|
186
200
|
800: string;
|
|
187
201
|
900: string;
|
|
202
|
+
950: string;
|
|
188
203
|
};
|
|
189
204
|
orange: {
|
|
190
205
|
50: string;
|
|
@@ -197,6 +212,7 @@ declare const colors: {
|
|
|
197
212
|
700: string;
|
|
198
213
|
800: string;
|
|
199
214
|
900: string;
|
|
215
|
+
950: string;
|
|
200
216
|
};
|
|
201
217
|
red: {
|
|
202
218
|
50: string;
|
|
@@ -209,6 +225,7 @@ declare const colors: {
|
|
|
209
225
|
700: string;
|
|
210
226
|
800: string;
|
|
211
227
|
900: string;
|
|
228
|
+
950: string;
|
|
212
229
|
};
|
|
213
230
|
gray: {
|
|
214
231
|
50: string;
|
|
@@ -221,6 +238,7 @@ declare const colors: {
|
|
|
221
238
|
700: string;
|
|
222
239
|
800: string;
|
|
223
240
|
900: string;
|
|
241
|
+
950: string;
|
|
224
242
|
};
|
|
225
243
|
slate: {
|
|
226
244
|
50: string;
|
|
@@ -233,6 +251,7 @@ declare const colors: {
|
|
|
233
251
|
700: string;
|
|
234
252
|
800: string;
|
|
235
253
|
900: string;
|
|
254
|
+
950: string;
|
|
236
255
|
};
|
|
237
256
|
zinc: {
|
|
238
257
|
50: string;
|
|
@@ -245,6 +264,7 @@ declare const colors: {
|
|
|
245
264
|
700: string;
|
|
246
265
|
800: string;
|
|
247
266
|
900: string;
|
|
267
|
+
950: string;
|
|
248
268
|
};
|
|
249
269
|
neutral: {
|
|
250
270
|
50: string;
|
|
@@ -257,6 +277,7 @@ declare const colors: {
|
|
|
257
277
|
700: string;
|
|
258
278
|
800: string;
|
|
259
279
|
900: string;
|
|
280
|
+
950: string;
|
|
260
281
|
};
|
|
261
282
|
stone: {
|
|
262
283
|
50: string;
|
|
@@ -269,6 +290,7 @@ declare const colors: {
|
|
|
269
290
|
700: string;
|
|
270
291
|
800: string;
|
|
271
292
|
900: string;
|
|
293
|
+
950: string;
|
|
272
294
|
};
|
|
273
295
|
light: {
|
|
274
296
|
50: string;
|
|
@@ -281,6 +303,7 @@ declare const colors: {
|
|
|
281
303
|
700: string;
|
|
282
304
|
800: string;
|
|
283
305
|
900: string;
|
|
306
|
+
950: string;
|
|
284
307
|
};
|
|
285
308
|
dark: {
|
|
286
309
|
50: string;
|
|
@@ -293,6 +316,7 @@ declare const colors: {
|
|
|
293
316
|
700: string;
|
|
294
317
|
800: string;
|
|
295
318
|
900: string;
|
|
319
|
+
950: string;
|
|
296
320
|
};
|
|
297
321
|
readonly lightblue: string | Colors;
|
|
298
322
|
readonly lightBlue: string | Colors;
|
package/dist/colors.cjs
CHANGED
package/dist/colors.d.ts
CHANGED
package/dist/colors.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as colors } from './shared/preset-mini.
|
|
1
|
+
export { c as colors } from './shared/preset-mini.74b45c11.mjs';
|
|
@@ -210,6 +210,7 @@ declare const theme: {
|
|
|
210
210
|
700: string;
|
|
211
211
|
800: string;
|
|
212
212
|
900: string;
|
|
213
|
+
950: string;
|
|
213
214
|
};
|
|
214
215
|
pink: {
|
|
215
216
|
50: string;
|
|
@@ -222,6 +223,7 @@ declare const theme: {
|
|
|
222
223
|
700: string;
|
|
223
224
|
800: string;
|
|
224
225
|
900: string;
|
|
226
|
+
950: string;
|
|
225
227
|
};
|
|
226
228
|
fuchsia: {
|
|
227
229
|
50: string;
|
|
@@ -234,6 +236,7 @@ declare const theme: {
|
|
|
234
236
|
700: string;
|
|
235
237
|
800: string;
|
|
236
238
|
900: string;
|
|
239
|
+
950: string;
|
|
237
240
|
};
|
|
238
241
|
purple: {
|
|
239
242
|
50: string;
|
|
@@ -246,6 +249,7 @@ declare const theme: {
|
|
|
246
249
|
700: string;
|
|
247
250
|
800: string;
|
|
248
251
|
900: string;
|
|
252
|
+
950: string;
|
|
249
253
|
};
|
|
250
254
|
violet: {
|
|
251
255
|
50: string;
|
|
@@ -258,6 +262,7 @@ declare const theme: {
|
|
|
258
262
|
700: string;
|
|
259
263
|
800: string;
|
|
260
264
|
900: string;
|
|
265
|
+
950: string;
|
|
261
266
|
};
|
|
262
267
|
indigo: {
|
|
263
268
|
50: string;
|
|
@@ -270,6 +275,7 @@ declare const theme: {
|
|
|
270
275
|
700: string;
|
|
271
276
|
800: string;
|
|
272
277
|
900: string;
|
|
278
|
+
950: string;
|
|
273
279
|
};
|
|
274
280
|
blue: {
|
|
275
281
|
50: string;
|
|
@@ -282,6 +288,7 @@ declare const theme: {
|
|
|
282
288
|
700: string;
|
|
283
289
|
800: string;
|
|
284
290
|
900: string;
|
|
291
|
+
950: string;
|
|
285
292
|
};
|
|
286
293
|
sky: {
|
|
287
294
|
50: string;
|
|
@@ -294,6 +301,7 @@ declare const theme: {
|
|
|
294
301
|
700: string;
|
|
295
302
|
800: string;
|
|
296
303
|
900: string;
|
|
304
|
+
950: string;
|
|
297
305
|
};
|
|
298
306
|
cyan: {
|
|
299
307
|
50: string;
|
|
@@ -306,6 +314,7 @@ declare const theme: {
|
|
|
306
314
|
700: string;
|
|
307
315
|
800: string;
|
|
308
316
|
900: string;
|
|
317
|
+
950: string;
|
|
309
318
|
};
|
|
310
319
|
teal: {
|
|
311
320
|
50: string;
|
|
@@ -318,6 +327,7 @@ declare const theme: {
|
|
|
318
327
|
700: string;
|
|
319
328
|
800: string;
|
|
320
329
|
900: string;
|
|
330
|
+
950: string;
|
|
321
331
|
};
|
|
322
332
|
emerald: {
|
|
323
333
|
50: string;
|
|
@@ -330,6 +340,7 @@ declare const theme: {
|
|
|
330
340
|
700: string;
|
|
331
341
|
800: string;
|
|
332
342
|
900: string;
|
|
343
|
+
950: string;
|
|
333
344
|
};
|
|
334
345
|
green: {
|
|
335
346
|
50: string;
|
|
@@ -342,6 +353,7 @@ declare const theme: {
|
|
|
342
353
|
700: string;
|
|
343
354
|
800: string;
|
|
344
355
|
900: string;
|
|
356
|
+
950: string;
|
|
345
357
|
};
|
|
346
358
|
lime: {
|
|
347
359
|
50: string;
|
|
@@ -354,6 +366,7 @@ declare const theme: {
|
|
|
354
366
|
700: string;
|
|
355
367
|
800: string;
|
|
356
368
|
900: string;
|
|
369
|
+
950: string;
|
|
357
370
|
};
|
|
358
371
|
yellow: {
|
|
359
372
|
50: string;
|
|
@@ -366,6 +379,7 @@ declare const theme: {
|
|
|
366
379
|
700: string;
|
|
367
380
|
800: string;
|
|
368
381
|
900: string;
|
|
382
|
+
950: string;
|
|
369
383
|
};
|
|
370
384
|
amber: {
|
|
371
385
|
50: string;
|
|
@@ -378,6 +392,7 @@ declare const theme: {
|
|
|
378
392
|
700: string;
|
|
379
393
|
800: string;
|
|
380
394
|
900: string;
|
|
395
|
+
950: string;
|
|
381
396
|
};
|
|
382
397
|
orange: {
|
|
383
398
|
50: string;
|
|
@@ -390,6 +405,7 @@ declare const theme: {
|
|
|
390
405
|
700: string;
|
|
391
406
|
800: string;
|
|
392
407
|
900: string;
|
|
408
|
+
950: string;
|
|
393
409
|
};
|
|
394
410
|
red: {
|
|
395
411
|
50: string;
|
|
@@ -402,6 +418,7 @@ declare const theme: {
|
|
|
402
418
|
700: string;
|
|
403
419
|
800: string;
|
|
404
420
|
900: string;
|
|
421
|
+
950: string;
|
|
405
422
|
};
|
|
406
423
|
gray: {
|
|
407
424
|
50: string;
|
|
@@ -414,6 +431,7 @@ declare const theme: {
|
|
|
414
431
|
700: string;
|
|
415
432
|
800: string;
|
|
416
433
|
900: string;
|
|
434
|
+
950: string;
|
|
417
435
|
};
|
|
418
436
|
slate: {
|
|
419
437
|
50: string;
|
|
@@ -426,6 +444,7 @@ declare const theme: {
|
|
|
426
444
|
700: string;
|
|
427
445
|
800: string;
|
|
428
446
|
900: string;
|
|
447
|
+
950: string;
|
|
429
448
|
};
|
|
430
449
|
zinc: {
|
|
431
450
|
50: string;
|
|
@@ -438,6 +457,7 @@ declare const theme: {
|
|
|
438
457
|
700: string;
|
|
439
458
|
800: string;
|
|
440
459
|
900: string;
|
|
460
|
+
950: string;
|
|
441
461
|
};
|
|
442
462
|
neutral: {
|
|
443
463
|
50: string;
|
|
@@ -450,6 +470,7 @@ declare const theme: {
|
|
|
450
470
|
700: string;
|
|
451
471
|
800: string;
|
|
452
472
|
900: string;
|
|
473
|
+
950: string;
|
|
453
474
|
};
|
|
454
475
|
stone: {
|
|
455
476
|
50: string;
|
|
@@ -462,6 +483,7 @@ declare const theme: {
|
|
|
462
483
|
700: string;
|
|
463
484
|
800: string;
|
|
464
485
|
900: string;
|
|
486
|
+
950: string;
|
|
465
487
|
};
|
|
466
488
|
light: {
|
|
467
489
|
50: string;
|
|
@@ -474,6 +496,7 @@ declare const theme: {
|
|
|
474
496
|
700: string;
|
|
475
497
|
800: string;
|
|
476
498
|
900: string;
|
|
499
|
+
950: string;
|
|
477
500
|
};
|
|
478
501
|
dark: {
|
|
479
502
|
50: string;
|
|
@@ -486,6 +509,7 @@ declare const theme: {
|
|
|
486
509
|
700: string;
|
|
487
510
|
800: string;
|
|
488
511
|
900: string;
|
|
512
|
+
950: string;
|
|
489
513
|
};
|
|
490
514
|
readonly lightblue: string | Colors;
|
|
491
515
|
readonly lightBlue: string | Colors;
|
package/dist/index.cjs
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
|
-
require('./shared/preset-mini.
|
|
7
|
-
const _default$1 = require('./shared/preset-mini.
|
|
6
|
+
require('./shared/preset-mini.fea712fb.cjs');
|
|
7
|
+
const _default$1 = require('./shared/preset-mini.4b2d3970.cjs');
|
|
8
8
|
const colors$1 = require('./shared/preset-mini.2be263e2.cjs');
|
|
9
|
-
const colors = require('./shared/preset-mini.
|
|
10
|
-
const _default = require('./shared/preset-mini.
|
|
11
|
-
const _default$2 = require('./shared/preset-mini.
|
|
12
|
-
require('./shared/preset-mini.
|
|
9
|
+
const colors = require('./shared/preset-mini.bb7dc365.cjs');
|
|
10
|
+
const _default = require('./shared/preset-mini.2c84a1da.cjs');
|
|
11
|
+
const _default$2 = require('./shared/preset-mini.a8322582.cjs');
|
|
12
|
+
require('./shared/preset-mini.c4fc86b9.cjs');
|
|
13
13
|
|
|
14
14
|
const preflights = [
|
|
15
15
|
{
|
|
@@ -24,7 +24,7 @@ const preflights = [
|
|
|
24
24
|
}
|
|
25
25
|
];
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
function presetMini(options = {}) {
|
|
28
28
|
options.dark = options.dark ?? "class";
|
|
29
29
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
30
30
|
options.preflight = options.preflight ?? true;
|
|
@@ -39,7 +39,7 @@ const presetMini = (options = {}) => {
|
|
|
39
39
|
preflights: options.preflight ? normalizePreflights(preflights, options.variablePrefix) : [],
|
|
40
40
|
prefix: options.prefix
|
|
41
41
|
};
|
|
42
|
-
}
|
|
42
|
+
}
|
|
43
43
|
function VarPrefixPostprocessor(prefix) {
|
|
44
44
|
if (prefix !== "un-") {
|
|
45
45
|
return (obj) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
|
|
2
|
-
export { c as colors } from './colors-
|
|
3
|
-
export { t as theme } from './default-
|
|
2
|
+
export { c as colors } from './colors-e683aa85.js';
|
|
3
|
+
export { t as theme } from './default-d9218dd5.js';
|
|
4
4
|
import { T as Theme } from './types-f73ecdfe.js';
|
|
5
5
|
export { T as Theme, a as ThemeAnimation } from './types-f73ecdfe.js';
|
|
6
6
|
export { p as parseColor } from './utilities-a87209ad.js';
|
|
@@ -53,7 +53,7 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
53
53
|
*/
|
|
54
54
|
preflight?: boolean;
|
|
55
55
|
}
|
|
56
|
-
declare
|
|
56
|
+
declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
|
|
57
57
|
|
|
58
58
|
declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
|
|
59
59
|
declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<{}>[];
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { entriesToCss, toArray } from '@unocss/core';
|
|
2
|
-
import './shared/preset-mini.
|
|
3
|
-
import { r as rules } from './shared/preset-mini.
|
|
2
|
+
import './shared/preset-mini.94514c53.mjs';
|
|
3
|
+
import { r as rules } from './shared/preset-mini.b53c93f8.mjs';
|
|
4
4
|
export { p as parseColor } from './shared/preset-mini.617e6696.mjs';
|
|
5
|
-
export { c as colors } from './shared/preset-mini.
|
|
6
|
-
import { t as theme } from './shared/preset-mini.
|
|
7
|
-
export { t as theme } from './shared/preset-mini.
|
|
8
|
-
import { v as variants } from './shared/preset-mini.
|
|
9
|
-
import './shared/preset-mini.
|
|
5
|
+
export { c as colors } from './shared/preset-mini.74b45c11.mjs';
|
|
6
|
+
import { t as theme } from './shared/preset-mini.d3cd9ef2.mjs';
|
|
7
|
+
export { t as theme } from './shared/preset-mini.d3cd9ef2.mjs';
|
|
8
|
+
import { v as variants } from './shared/preset-mini.b68b942d.mjs';
|
|
9
|
+
import './shared/preset-mini.6c20780a.mjs';
|
|
10
10
|
|
|
11
11
|
const preflights = [
|
|
12
12
|
{
|
|
@@ -21,7 +21,7 @@ const preflights = [
|
|
|
21
21
|
}
|
|
22
22
|
];
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
function presetMini(options = {}) {
|
|
25
25
|
options.dark = options.dark ?? "class";
|
|
26
26
|
options.attributifyPseudo = options.attributifyPseudo ?? false;
|
|
27
27
|
options.preflight = options.preflight ?? true;
|
|
@@ -36,7 +36,7 @@ const presetMini = (options = {}) => {
|
|
|
36
36
|
preflights: options.preflight ? normalizePreflights(preflights, options.variablePrefix) : [],
|
|
37
37
|
prefix: options.prefix
|
|
38
38
|
};
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
40
|
function VarPrefixPostprocessor(prefix) {
|
|
41
41
|
if (prefix !== "un-") {
|
|
42
42
|
return (obj) => {
|
package/dist/rules.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const transform = require('./shared/preset-mini.
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
5
|
+
const transform = require('./shared/preset-mini.fea712fb.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.4b2d3970.cjs');
|
|
7
7
|
require('./shared/preset-mini.2be263e2.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as alignments, F as appearance, w as appearances, b as bgColors, V as borderStyles, a as borders, r as boxShadows, T as boxShadowsBase, N as boxSizing, C as breaks, R as contains, c as contentVisibility, e as contents, v as cursors, d as displays, L as floats, q as fontSmoothings, p as fontStyles, f as fonts, W as handlerBorderStyle, K as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, U as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, S as transformBase, P as transforms, O as transitions, A as userSelects, X as varEmpty, z as verticalAligns, B as whitespaces, Q as willChange, M as zIndexes } from './shared/preset-mini.
|
|
2
|
-
export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.
|
|
1
|
+
export { I as alignments, F as appearance, w as appearances, b as bgColors, V as borderStyles, a as borders, r as boxShadows, T as boxShadowsBase, N as boxSizing, C as breaks, R as contains, c as contentVisibility, e as contents, v as cursors, d as displays, L as floats, q as fontSmoothings, p as fontStyles, f as fonts, W as handlerBorderStyle, K as insets, H as justifies, o as opacity, G as orders, E as outline, D as overflows, J as placements, x as pointerEvents, u as positions, y as resizes, U as ringBase, s as rings, t as tabSizes, m as textAligns, n as textColors, i as textDecorations, g as textIndents, h as textOverflows, k as textShadows, j as textStrokes, l as textTransforms, S as transformBase, P as transforms, O as transitions, A as userSelects, X as varEmpty, z as verticalAligns, B as whitespaces, Q as willChange, M as zIndexes } from './shared/preset-mini.94514c53.mjs';
|
|
2
|
+
export { b as aspectRatio, c as containerParent, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities } from './shared/preset-mini.b53c93f8.mjs';
|
|
3
3
|
import './shared/preset-mini.617e6696.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const colors = require('./preset-mini.
|
|
4
|
-
const transform = require('./preset-mini.
|
|
3
|
+
const colors = require('./preset-mini.bb7dc365.cjs');
|
|
4
|
+
const transform = require('./preset-mini.fea712fb.cjs');
|
|
5
5
|
require('@unocss/core');
|
|
6
6
|
require('./preset-mini.2be263e2.cjs');
|
|
7
7
|
|