@dnb/eufemia

中文文档
11.17.1发布于 2026/11/11SEE LICENSE IN LICENSE FILETypeScriptES Module构建来源已验证近 30 天下载 28.7万

DNB Eufemia Design System UI Library

原始使用文档

DNB UI Library

Eufemia is DNB's design system and UI library, providing a consistent and accessible set of components for building modern web applications. It streamlines development by offering reusable elements, design guidelines, and best practices, ensuring a unified user experience across DNB's digital products.

Read more about Eufemia and the DNB UI Library.

Agent Skills

The package includes portable Agent Skills that use Eufemia's versioned documentation through the Eufemia MCP server.

Install the skills in a project that already depends on @dnb/eufemia:

yarn eufemia skills install

The command asks which supported agent locations to use and preselects existing managed installations. Interactive users should use this selector. CI and other non-interactive environments can pass --target <directory> because they cannot answer terminal prompts.

See the Agent Skills and MCP documentation for installation targets, npm and pnpm commands, update safety, cloud-agent usage, and MCP configuration.

yarn eufemia skills check
yarn eufemia skills list
yarn eufemia skills update
yarn eufemia skills uninstall

The installer tracks generated files and refuses to replace local changes unless --force is given. Commit installed project skills when they should be available to cloud agents.

Configure the Eufemia MCP server before using the skills. The skill files contain workflows, while component APIs, tokens, theme support, and other version-sensitive facts remain in Eufemia's packaged documentation. The hosted MCP serves the latest release; use the package-local MCP when an installed project version differs.

License

You find the license here: LICENSE

版本与发布记录

@dnb/eufemia 共发布 333 个版本,首次发布于 2021/03/02;过去 12 个月发布了 68 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
11.17.1latest2026/11/112 天前
11.17.02026/11/058 天前
11.16.12026/10/2816 天前
11.16.02026/10/2321 天前
11.15.22026/10/091 个月前
11.15.12026/09/301 个月前

其他发布通道:alpha → 9.0.0-alpha.1,next → 9.35.0,beta → 10.0.0-beta.8,release-10.x → 10.104.2。

关于 @dnb/eufemia 的常见问题

@dnb/eufemia 是什么?

DNB Eufemia Design System UI Library

如何安装 @dnb/eufemia?

在项目目录运行 npm install @dnb/eufemia,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^19)、react-dom(^19)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 eufemia,可以用 npx eufemia 直接运行。

@dnb/eufemia 支持 TypeScript 吗?

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

@dnb/eufemia 支持 ESM 还是 CommonJS?

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

@dnb/eufemia 可以商用吗?

@dnb/eufemia 使用 SEE LICENSE IN LICENSE FILE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@dnb/eufemia 的下载量有多少?

根据 npm 官方下载统计,@dnb/eufemia 在 2026/10/13 – 2026/11/11 这 30 天内被下载 286,607 次,日均约 9,554 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dnb/eufemia 还在维护吗?

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