@department-of-veterans-affairs/formation

中文文档
12.0.0发布于 2024/10/17CC0-1.0近 30 天下载 6387

The VA design system

此软件包已被标记为弃用

The Formation package is no longer supported. Please use @department-of-veterans-affairs/css-library or contact the VA Design System team for more info.

原始使用文档

This module contains styles and assets for the VA design system.

Quick start

npm install @department-of-veterans-affairs/formation

Our components are styled with sass, which is exported in the sass directory in the module. There's a core.scss file that includes uswds styles and our changes on top of it. Many of the components also have individual scss files in sass/modules, which you should make sure to import when using a particular component.

Also included is a full build of all the styles, including component styles, at dist/formation.min.css. This file is quite large and should not be used in sites were performance is a high priority.

Assets

Image and font assets used by Formation are included in the dist folder.

版本与发布记录

@department-of-veterans-affairs/formation 共发布 216 个版本,首次发布于 2018/05/12;过去 12 个月发布了 0 个版本。

版本发布日期距今
12.0.0latest2024/10/172 年前
11.0.262024/10/012 年前
11.0.252024/09/282 年前
11.0.232024/09/262 年前
11.0.222024/09/182 年前
11.0.212024/09/172 年前

其他发布通道:beta → 6.9.4。

关于 @department-of-veterans-affairs/formation 的常见问题

@department-of-veterans-affairs/formation 是什么?

The VA design system注意:该包已被作者标记为弃用——The Formation package is no longer supported. Please use @department-of-veterans-affairs/css-library or contact the VA Design System team for more info.

如何安装 @department-of-veterans-affairs/formation?

在项目目录运行 npm install @department-of-veterans-affairs/formation,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:uswds(^1.6.10)、foundation-sites(5)、@fortawesome/fontawesome-free(^5.15.4)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@department-of-veterans-affairs/formation 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/department-of-veterans-affairs__formation 是否存在。

@department-of-veterans-affairs/formation 可以商用吗?

@department-of-veterans-affairs/formation 使用 CC0-1.0 许可。作者放弃著作权,可不受限制地使用。以上为概括,不构成法律意见,请以许可原文为准。

@department-of-veterans-affairs/formation 的下载量有多少?

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

@department-of-veterans-affairs/formation 还在维护吗?

最新版本 12.0.0 发布于 2024/10/17(2 年前);至今共发布 216 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/05/12。作者已将其标记为弃用,新项目建议寻找替代方案。