unocss 0.33.1 → 0.33.5
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 -5
- package/dist/index.cjs +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/vite.d.ts +1 -1
- package/package.json +15 -14
package/README.md
CHANGED
|
@@ -30,16 +30,17 @@ Inspired by [Windi CSS](http://windicss.org/), [Tailwind CSS](https://tailwindcs
|
|
|
30
30
|
|
|
31
31
|
- [Fully customizable](#configurations) - no core utilities, all functionalities are provided via presets.
|
|
32
32
|
- No parsing, no AST, no scanning, it's **INSTANT** (200x faster than Windi CSS or Tailwind JIT).
|
|
33
|
-
- ~
|
|
33
|
+
- ~5kb min+gzip - zero deps and browser friendly.
|
|
34
34
|
- [Shortcuts](#shortcuts) - aliasing utilities, dynamically.
|
|
35
|
-
- [Attributify
|
|
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.
|
|
37
|
+
- [Variant Groups](https://github.com/unocss/unocss/tree/main/packages/transformer-variant-group) - shorthand for group utils with common prefixes.
|
|
38
|
+
- [CSS Directives](https://github.com/unocss/unocss/tree/main/packages/transformer-directives) - reuse utils in CSS with `@apply` directive.
|
|
39
|
+
- [Compilation mode](https://github.com/unocss/unocss/tree/main/packages/transformer-compile-class/) - synthesizes multiple classes into one at build time.
|
|
37
40
|
- [Inspector](#inspector) - inspect and debug interactively.
|
|
38
|
-
- [CSS-in-JS Runtime
|
|
41
|
+
- [CSS-in-JS Runtime build](https://github.com/unocss/unocss/tree/main/packages/runtime) - use UnoCSS with one line of CDN import.
|
|
39
42
|
- [VS Code extension](https://marketplace.visualstudio.com/items?itemName=antfu.unocss)
|
|
40
|
-
- [Variant Groups](https://github.com/unocss/unocss/tree/main/packages/transformer-variant-group) & [CSS Directives](https://github.com/unocss/unocss/tree/main/packages/transformer-directives)
|
|
41
43
|
- Code-splitting for CSS - ships minimal CSS for MPA.
|
|
42
|
-
- Library friendly - ships atomic styles with your component libraries, and safely scoped.
|
|
43
44
|
|
|
44
45
|
###### Benchmark
|
|
45
46
|
|
package/dist/index.cjs
CHANGED
|
@@ -12,6 +12,7 @@ const presetMini = require('@unocss/preset-mini');
|
|
|
12
12
|
const presetWind = require('@unocss/preset-wind');
|
|
13
13
|
const transformerDirectives = require('@unocss/transformer-directives');
|
|
14
14
|
const transformerVariantGroup = require('@unocss/transformer-variant-group');
|
|
15
|
+
const transformerCompileClass = require('@unocss/transformer-compile-class');
|
|
15
16
|
|
|
16
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
17
18
|
|
|
@@ -24,6 +25,7 @@ const presetMini__default = /*#__PURE__*/_interopDefaultLegacy(presetMini);
|
|
|
24
25
|
const presetWind__default = /*#__PURE__*/_interopDefaultLegacy(presetWind);
|
|
25
26
|
const transformerDirectives__default = /*#__PURE__*/_interopDefaultLegacy(transformerDirectives);
|
|
26
27
|
const transformerVariantGroup__default = /*#__PURE__*/_interopDefaultLegacy(transformerVariantGroup);
|
|
28
|
+
const transformerCompileClass__default = /*#__PURE__*/_interopDefaultLegacy(transformerCompileClass);
|
|
27
29
|
|
|
28
30
|
function defineConfig(config) {
|
|
29
31
|
return config;
|
|
@@ -38,6 +40,7 @@ exports.presetMini = presetMini__default;
|
|
|
38
40
|
exports.presetWind = presetWind__default;
|
|
39
41
|
exports.transformerDirectives = transformerDirectives__default;
|
|
40
42
|
exports.transformerVariantGroup = transformerVariantGroup__default;
|
|
43
|
+
exports.transformerCompileClass = transformerCompileClass__default;
|
|
41
44
|
exports.defineConfig = defineConfig;
|
|
42
45
|
for (const k in core) {
|
|
43
46
|
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = core[k];
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as presetMini } from '@unocss/preset-mini';
|
|
|
9
9
|
export { default as presetWind } from '@unocss/preset-wind';
|
|
10
10
|
export { default as transformerDirectives } from '@unocss/transformer-directives';
|
|
11
11
|
export { default as transformerVariantGroup } from '@unocss/transformer-variant-group';
|
|
12
|
+
export { default as transformerCompileClass } from '@unocss/transformer-compile-class';
|
|
12
13
|
|
|
13
14
|
declare function defineConfig<Theme extends {}>(config: UserConfig<Theme>): UserConfig<Theme>;
|
|
14
15
|
|
package/dist/index.mjs
CHANGED
|
@@ -8,6 +8,7 @@ export { default as presetMini } from '@unocss/preset-mini';
|
|
|
8
8
|
export { default as presetWind } from '@unocss/preset-wind';
|
|
9
9
|
export { default as transformerDirectives } from '@unocss/transformer-directives';
|
|
10
10
|
export { default as transformerVariantGroup } from '@unocss/transformer-variant-group';
|
|
11
|
+
export { default as transformerCompileClass } from '@unocss/transformer-compile-class';
|
|
11
12
|
|
|
12
13
|
function defineConfig(config) {
|
|
13
14
|
return config;
|
package/dist/vite.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { VitePluginConfig } from '@unocss/vite';
|
|
|
2
2
|
export * from '@unocss/vite';
|
|
3
3
|
import { Plugin } from 'vite';
|
|
4
4
|
|
|
5
|
-
declare function UnocssVitePlugin(configOrPath?: VitePluginConfig | string): Plugin[];
|
|
5
|
+
declare function UnocssVitePlugin<Theme extends {}>(configOrPath?: VitePluginConfig<Theme> | string): Plugin[];
|
|
6
6
|
|
|
7
7
|
export { UnocssVitePlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unocss",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.5",
|
|
4
4
|
"description": "The instant on-demand Atomic CSS engine.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -77,19 +77,20 @@
|
|
|
77
77
|
],
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@unocss/cli": "0.33.
|
|
81
|
-
"@unocss/core": "0.33.
|
|
82
|
-
"@unocss/preset-attributify": "0.33.
|
|
83
|
-
"@unocss/preset-icons": "0.33.
|
|
84
|
-
"@unocss/preset-mini": "0.33.
|
|
85
|
-
"@unocss/preset-typography": "0.33.
|
|
86
|
-
"@unocss/preset-uno": "0.33.
|
|
87
|
-
"@unocss/preset-web-fonts": "0.33.
|
|
88
|
-
"@unocss/preset-wind": "0.33.
|
|
89
|
-
"@unocss/reset": "0.33.
|
|
90
|
-
"@unocss/transformer-
|
|
91
|
-
"@unocss/transformer-
|
|
92
|
-
"@unocss/
|
|
80
|
+
"@unocss/cli": "0.33.5",
|
|
81
|
+
"@unocss/core": "0.33.5",
|
|
82
|
+
"@unocss/preset-attributify": "0.33.5",
|
|
83
|
+
"@unocss/preset-icons": "0.33.5",
|
|
84
|
+
"@unocss/preset-mini": "0.33.5",
|
|
85
|
+
"@unocss/preset-typography": "0.33.5",
|
|
86
|
+
"@unocss/preset-uno": "0.33.5",
|
|
87
|
+
"@unocss/preset-web-fonts": "0.33.5",
|
|
88
|
+
"@unocss/preset-wind": "0.33.5",
|
|
89
|
+
"@unocss/reset": "0.33.5",
|
|
90
|
+
"@unocss/transformer-compile-class": "0.33.5",
|
|
91
|
+
"@unocss/transformer-directives": "0.33.5",
|
|
92
|
+
"@unocss/transformer-variant-group": "0.33.5",
|
|
93
|
+
"@unocss/vite": "0.33.5"
|
|
93
94
|
},
|
|
94
95
|
"engines": {
|
|
95
96
|
"node": ">=14"
|