@tu-design/cli 0.2.1 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.mjs +19 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -182,6 +182,12 @@ const TOKENS_CSS_SOURCE = `@import "tw-animate-css";
182
182
  --accent: oklch(0.97 0 0);
183
183
  --accent-foreground: oklch(0.205 0 0);
184
184
  --destructive: oklch(0.577 0.245 27.325);
185
+ --success: oklch(0.596 0.145 163.225);
186
+ --success-foreground: oklch(0.985 0 0);
187
+ --warning: oklch(0.666 0.179 58.318);
188
+ --warning-foreground: oklch(0.985 0 0);
189
+ --info: oklch(0.546 0.245 262.881);
190
+ --info-foreground: oklch(0.985 0 0);
185
191
  --border: oklch(0.922 0 0);
186
192
  --input: oklch(0.922 0 0);
187
193
  --ring: oklch(0.708 0 0);
@@ -204,6 +210,12 @@ const TOKENS_CSS_SOURCE = `@import "tw-animate-css";
204
210
  --accent: oklch(0.371 0 0);
205
211
  --accent-foreground: oklch(0.985 0 0);
206
212
  --destructive: oklch(0.704 0.191 22.216);
213
+ --success: oklch(0.696 0.17 162.48);
214
+ --success-foreground: oklch(0.985 0 0);
215
+ --warning: oklch(0.769 0.188 70.08);
216
+ --warning-foreground: oklch(0.205 0 0);
217
+ --info: oklch(0.623 0.214 259.815);
218
+ --info-foreground: oklch(0.985 0 0);
207
219
  --border: oklch(1 0 0 / 10%);
208
220
  --input: oklch(1 0 0 / 15%);
209
221
  --ring: oklch(0.556 0 0);
@@ -229,6 +241,12 @@ const TOKENS_CSS_SOURCE = `@import "tw-animate-css";
229
241
  --color-accent: var(--accent);
230
242
  --color-accent-foreground: var(--accent-foreground);
231
243
  --color-destructive: var(--destructive);
244
+ --color-success: var(--success);
245
+ --color-success-foreground: var(--success-foreground);
246
+ --color-warning: var(--warning);
247
+ --color-warning-foreground: var(--warning-foreground);
248
+ --color-info: var(--info);
249
+ --color-info-foreground: var(--info-foreground);
232
250
  --color-border: var(--border);
233
251
  --color-input: var(--input);
234
252
  --color-ring: var(--ring);
@@ -240,8 +258,7 @@ const TOKENS_CSS_SOURCE = `@import "tw-animate-css";
240
258
  * {
241
259
  border-color: var(--color-border);
242
260
  }
243
- }
244
- `;
261
+ }`;
245
262
  /** cn 工具模板,等价 @tu-design/vue/src/lib/utils.ts。 */
246
263
  const CN_UTIL_SOURCE = `import { clsx, type ClassValue } from "clsx";
247
264
  import { twMerge } from "tailwind-merge";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tu-design/cli",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "tu-design CLI:初始化并按 registry 分发组件源码到用户项目(shadcn 模式)。",
5
5
  "keywords": [
6
6
  "cli",
@@ -33,7 +33,7 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@tu-design/vue": "0.2.1",
36
+ "@tu-design/vue": "0.3.0",
37
37
  "commander": "^15",
38
38
  "package-manager-detector": "^1",
39
39
  "picocolors": "^1",