@want-foundation/desyst-foundation

中文文档
0.4.0发布于 2026/11/03MITTypeScriptES Module零依赖

Shared design tokens, styles, fonts, brand assets and browser effects.

原始使用文档

@want-foundation/desyst-foundation

Shared design tokens, compiled styles, local fonts and brand resources. Import @want-foundation/desyst-foundation/styles.css and optionally @want-foundation/desyst-foundation/fonts.css. Read tokens through @want-foundation/desyst-foundation/tokens.json.

Browser effects are opt-in and return cleanup functions. Call burstConfetti with the clicked control; application events and downloads remain with the consumer.

See the repository README for usage, compatibility and release instructions.

Want design skill

Install the bundled brand, UI/UX, motion, composition, and product-voice skill from the target project's root:

npx --yes --package=@want-foundation/[email protected] want-design-install

The default destination is .agents/skills/want-design. Add --global for ~/.agents/skills/want-design, or --dest PATH for another parent skills directory. Matching installations are unchanged; different installations are never overwritten. See the repository instructions for invocation and updates.

版本与发布记录

@want-foundation/desyst-foundation 共发布 7 个版本,首次发布于 2026/10/29;过去 12 个月发布了 7 个版本。

版本发布日期距今
0.4.0latest2026/11/03今天
0.3.02026/10/295 天前
0.2.12026/10/295 天前
0.2.02026/10/295 天前
0.1.22026/10/295 天前
0.1.12026/10/295 天前

关于 @want-foundation/desyst-foundation 的常见问题

@want-foundation/desyst-foundation 是什么?

共享设计令牌、样式、字体、品牌资产和浏览器效果。

如何安装 @want-foundation/desyst-foundation?

在项目目录运行 npm install @want-foundation/desyst-foundation,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 want-design-install,可以用 npx want-design-install 直接运行。

@want-foundation/desyst-foundation 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@want-foundation/desyst-foundation 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@want-foundation/desyst-foundation 可以商用吗?

@want-foundation/desyst-foundation 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@want-foundation/desyst-foundation 还在维护吗?

最新版本 0.4.0 发布于 2026/11/03(今天);至今共发布 7 个版本,其中过去 12 个月发布了 7 个;首次发布于 2026/10/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。