@gitlab/fonts

中文文档
1.3.1发布于 2025/08/21OFL-1.1CommonJS零依赖近 30 天下载 26.5万

Fonts to be used in the GitLab product

原始使用文档

GitLab fonts

Requirements for building locally

  • pdm, on Mac run brew install pdm
  • jq, on Mac run brew install jq
  • make (should be installed)

In order to build the fonts, just run make in the root directory of the repo.

To build everything from scratch run make clean beforehand.

Support

Support will generally follow the GitLab supported browser guidelines. For fonts, extra stipulations need to be made for devices and operating systems.

  • We will support the latest two major versions of iOS on the latest two iPhone devices, following the browser support guidelines for Safari only.
  • We will support the latest three major versions of Android on the latest two Samsung Galaxy devices, following the browser support guidelines for Chrome only.
  • We will support the latest two major versions of OSX, following the browser support guidelines for all supported browsers.
  • We will support the latest two major versions of Windows, following the browser support guidelines for all supported browsers.
  • We will support Linux distrubutions where we can, following the browser support guidelines for all supported browsers

Any changes made to your browser or operating system that modify the way fonts render will not be supported.

版本与发布记录

@gitlab/fonts 共发布 8 个版本,首次发布于 2022/12/02;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.3.1latest2025/08/211.2 年前
1.3.02023/06/163 年前
1.2.02023/01/263 年前
1.1.22023/01/243 年前
1.1.12023/01/233 年前
1.1.02023/01/103 年前

关于 @gitlab/fonts 的常见问题

@gitlab/fonts 是什么?

Fonts to be used in the GitLab product

如何安装 @gitlab/fonts?

在项目目录运行 npm install @gitlab/fonts,或使用 pnpm add / yarn add / bun add。

@gitlab/fonts 支持 TypeScript 吗?

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

@gitlab/fonts 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@gitlab/fonts 可以商用吗?

@gitlab/fonts 使用 OFL-1.1 许可。声明的许可为 OFL-1.1,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@gitlab/fonts 的下载量有多少?

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

@gitlab/fonts 还在维护吗?

最新版本 1.3.1 发布于 2025/08/21(1.2 年前);至今共发布 8 个版本,其中过去 12 个月发布了 0 个;首次发布于 2022/12/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。