@adyen/bento-design-tokens

中文文档
2.9.1发布于 2026/11/06MIT零依赖近 30 天下载 7.8万
原始使用文档
文档目录3 节
  1. Introduction
  2. Style Dictionary
  3. Design tokens package:

Bento Design Tokens

Introduction

Welcome to the Bento Design Tokens library!

The aim of this library is to maintain design consistency across various products at Adyen.

Design tokens are semantic values that are used in Figma designs and CSS styles.

Style Dictionary

We have opted to use the Style Dictionary token creation tool that resides in the @adyen/bento-design-tokens package.

The Style dictionary uses 3 layers of tokens:

Definitions - All the static literal definitions

  Example: color.grey.30

Aliases - Semantic layer of tokens relating to a specific context or abstraction

  Example: background-color-interacted

Components - Component-specific tokens are representation of every theme-able value associated with a component

  Example: toggle-checked-background-color

For further explanation please check Adobe Spectrum documentation.

Design tokens package:

The design tokens package tokens folder contains 2 folders:

  • base
    • aliases (read-only)
    • components
    • definitions (read-only)
  • themes
    • dark
      • aliases
      • components
      • definitions

版本与发布记录

@adyen/bento-design-tokens 共发布 298 个版本,首次发布于 2023/04/04;过去 12 个月发布了 122 个版本。

版本发布日期距今
2.9.1latest2026/11/06今天
2.10.0-rc.sha-8cfcf46rc2026/11/05今天
2.9.02026/11/041 天前
2.9.0-rc.sha-d6bc08b2026/11/032 天前
2.7.0-rc.sha-8005d132026/10/297 天前
2.8.0-rc.sha-fd162112026/10/288 天前

其他发布通道:c4b7880.rc → 2.7.0-rc.sha-c4b7880,d7382f5.rc → 2.7.0-rc.sha-d7382f5,rc → 2.10.0-rc.sha-8cfcf46。

关于 @adyen/bento-design-tokens 的常见问题

如何安装 @adyen/bento-design-tokens?

在项目目录运行 npm install @adyen/bento-design-tokens,或使用 pnpm add / yarn add / bun add。

@adyen/bento-design-tokens 支持 TypeScript 吗?

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

@adyen/bento-design-tokens 可以商用吗?

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

@adyen/bento-design-tokens 的下载量有多少?

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

@adyen/bento-design-tokens 还在维护吗?

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