@design-factory/design-factory

中文文档
22.1.0发布于 2026/11/05BSD-3-ClauseTypeScriptES Module近 30 天下载 9465

Amadeus design system

原始使用文档
文档目录6 节
  1. Description
  2. Getting started
  3. Architecture
  4. CSS namespace feature
  5. Dependencies
  6. How to work with the icons

Amadeus Design Factory

Description

Design Factory is an InnerSource design system made of:

  • A UI library for Amadeus external and internal interfaces and applications, based on our four pillars
  • A set of design and coding best practices
  • A cross-functional community from all Amadeus business units

If you want to get more information about Design Factory, please contact Design Factory team.

Getting started

You can easily add Design Factory library in your project thanks our schematics. Just run the following:

ng add @design-factory/design-factory

It will install Design Factory for the default application specified in your angular.json. If you have multiple projects and you want to target a specific application, you could specify the --project option

ng add @design-factory/design-factory --project myProject

Architecture

The Design Factory is composed of multiple projects and you can install the package that fits your requirements.

  • @design-factory/tokens includes the Design Tokens that empower the Design System
  • @design-factory/styles includes the styles, composed of utilities and component styles
  • @design-factory/design-factory contains Angular components and utilities. They will be migrated to the following package
  • @design-factory/angular contains the new SideNav and will grow to include all Design Factory Angular components

CSS namespace feature

For some specific cases, you may have to use the CSS namespace feature which allows you to apply DF styles only under a selector defined by $df-css-namespace-selector variable (by default ==.design-factory-v2==). In order to use this feature, just import the following:

@import '@design-factory/styles/scss/namespace';

in your styles.scss and add the defined selector in your HTML element where you want to apply DF style.

Dependencies

The dependencies are Angular, Bootstrap 5, Ng-bootstrap, AgnosUI, Ng-select, Ag-grid and ngx-slider. The supported versions are:

Design FactoryAngularBootstrap CSSNg-BootstrapNg-selectAg-gridngx-sliderAgnosUI
9.x.x11.0.04.5.09.1.05.0.142.0.3
10.x.x12.0.04.5.310.0.07.2.02.0.3
11.x.x13.2.04.5.311.0.08.1.12.0.3
12.x.x13.2.05.1.312.1.28.1.127.3.02.0.3
13.x.x14.1.05.2.013.1.09.0.227.3.02.0.4
14.x.x15.1.05.2.014.0.110.0.327.3.02.0.4
15.x.x16.0.05.2.015.0.011.0.029.3.5
16.x.x16.x.x5.2.015.1.011.2.030.2.x
17.0.x17.x.x5.3.216.0.x12.0.x31.0.x0.0.1-alpha.10
17.1.x17.x.x5.3.316.0.x12.0.x31.1.x0.2.0
18.0.x18.x.x5.3.317.0.x13.2.x31.3.x0.4.x
18.1.x18.x.x5.3.317.0.x13.2.x32.0.x0.4.x
19.0.x19.x.x5.3.318.0.x14.0.x32.0.x0.7.x
19.1.x19.x.x5.3.318.0.x14.1.x32.0.x0.8.x
20.0.x20.x5.3.719.0.x15.x || 20.x32.x0.9.x
21.0.x21.x5.3.820.0.x21.x35.x0.10.x
22.0.x22.x5.3.821.0.x23.x35.x0.11.x

How to work with the icons

Icons are a mix of Font Awesome (FW) and in-house produced pictograms.

Since DF 18.0.0 release in-house icons and FW icons are split into different fonts.

版本与发布记录

@design-factory/design-factory 共发布 54 个版本,首次发布于 2023/10/20;过去 12 个月发布了 18 个版本。

版本发布日期距今
22.1.0latest2026/11/056 天前
21.1.22026/10/2220 天前
22.0.22026/09/221 个月前
22.0.12026/08/033 个月前
21.1.12026/07/303 个月前
22.0.02026/07/293 个月前

其他发布通道:next → 22.0.0-next.1。

关于 @design-factory/design-factory 的常见问题

@design-factory/design-factory 是什么?

Amadeus design system

如何安装 @design-factory/design-factory?

在项目目录运行 npm install @design-factory/design-factory,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@angular/core(^22.0.0)、@angular/common(^22.0.0)、@angular/router(^22.0.0)、@angular/localize(^22.0.0)、ag-grid-community(^35.0.0)、@angular-devkit/core(^22.0.0)、@ng-select/ng-select(^23.0.0)、@design-factory/styles(22.1.0)、@ng-bootstrap/ng-bootstrap(~21.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@design-factory/design-factory 支持 TypeScript 吗?

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

@design-factory/design-factory 支持 ESM 还是 CommonJS?

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

@design-factory/design-factory 可以商用吗?

@design-factory/design-factory 使用 BSD-3-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括,不构成法律意见,请以许可原文为准。

@design-factory/design-factory 的下载量有多少?

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

@design-factory/design-factory 还在维护吗?

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