@limeui/unocss-preset 0.0.2 → 0.0.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +15 -5
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "lime-unocss-preset",
3
3
  "name": "@limeui/unocss-preset",
4
4
  "displayName": "lime-unocss-preset - UnoCSS 预设",
5
- "version": "0.0.2",
5
+ "version": "0.0.4",
6
6
  "description": "让 UnoCSS 支持 uni-app 和 uni-app x,提供平台条件样式等特性",
7
7
  "type": "module",
8
8
  "main": "./dist/index.js",
package/readme.md CHANGED
@@ -8,21 +8,28 @@ UnoCSS preset for uni-app,支持 uni-app 和 uni-app x。
8
8
  - 📱 支持小程序、App、H5 等所有 uni-app 平台
9
9
  - 🔄 支持平台条件样式(如 `uni-weixin:`、`uni-h5:`)
10
10
  - 🎯 支持排除平台(如 `uni-not-weixin:`)
11
- - 💾 支持内联样式模式(解决 APP 端样式热更新问题)
12
- - 📝 支持将生成的 CSS 输出到文件(用于调试)
13
11
 
14
12
  ## 安装
15
13
 
16
- ### 安装依赖
14
+ ### 方式一:通过 npm 安装
17
15
 
18
16
  ```bash
19
- npm install unocss
17
+ npm install unocss @limeui/unocss-preset
18
+ # 或
19
+ yarn add unocss @limeui/unocss-preset
20
+ # 或
21
+ pnpm add unocss @limeui/unocss-preset
20
22
  ```
21
23
 
22
- ### 导入插件
24
+ ### 方式二:通过 uni-app 插件市场安装
23
25
 
24
26
  在 uni-app 插件市场中搜索并导入 `lime-unocss-preset`。
25
27
 
28
+ ```bash
29
+ # 同时需要安装 unocss
30
+ npm install unocss
31
+ ```
32
+
26
33
  ## 使用
27
34
 
28
35
  本配置基于 HBuilderX 开发环境。
@@ -76,6 +83,9 @@ import 'virtual:uno.css'
76
83
 
77
84
  ```typescript
78
85
  import { defineConfig } from 'unocss'
86
+ // 通过 npm 安装时使用
87
+ // import { presetUnix } from '@limeui/unocss-preset'
88
+ // 通过 uni-app 插件市场安装时使用
79
89
  import { presetUnix } from './uni_modules/lime-unocss-preset'
80
90
 
81
91
  export default defineConfig({