@cueplusplus/brand-tokens

中文文档
0.34.2发布于 2026/11/09MITTypeScriptES Module零依赖近 30 天下载 3011

CUE++ brand primitives extracted from the marketing site: the white-alpha ramp, the monochrome ground, the JetBrains Mono stack, the // eyebrow motif, the motion keyframes and the four brand marks.

原始使用文档
文档目录4 节
  1. Install
  2. Quick start
  3. What it ships
  4. Where the rest is

@cueplusplus/brand-tokens

The CUE++ brand itself, transcribed out of the marketing site and dated, for whoever is building a CUE++-branded surface rather than a product screen: the white-alpha ramp, the monochrome ground, the JetBrains Mono stack, the // eyebrow motif, the motion keyframes and the four brand marks.

This is not a product dependency and it is not a theme. @cueplusplus/theme-cue is the product translation of this brand; this package is the brand as it was found, kept so that the translation can be argued with. It is a seed for the (currently empty) brand repository.

Install

The @cueplusplus scope is public on npm and resolves there by default, so there is nothing to configure and no credential to supply — it installs like any other package.

pnpm add @cueplusplus/brand-tokens

No peers and no dependencies.

CI, Vercel and the token's expiry are in docs/CONSUMING.md §1.

Quick start

The stylesheet is the source of truth and the only thing that emits CSS; the module gives you the names. Import both — nothing here resolves without the sheet, and the sheet paints nothing by itself until you use one of its custom properties or opt-in classes.

import "@cueplusplus/brand-tokens/brand.css";
import { BRAND_ASSETS, BRAND_WHITE_ALPHA_RAMP } from "@cueplusplus/brand-tokens";

const hairline = `1px solid var(${BRAND_WHITE_ALPHA_RAMP[1]})`; // --brand-white-a10
const wordmark = BRAND_ASSETS.wordmark; // the white-ink mark, for a dark ground

A repo test asserts both directions of that correspondence, so a token added to the sheet and forgotten in the index — or the reverse — fails the build rather than a consumer's var().

What it ships

subpathwhat it is
@cueplusplus/brand-tokensthe typed index: BRAND_STYLESHEET, BRAND_WHITE_ALPHA_RAMP, BRAND_TOKENS, BRAND_CLASSES, BRAND_ASSETS, and a type per set
./brand.cssthe stylesheet: every --brand-* custom property, the keyframes, and seven opt-in utility classes
./assets/*the four marks as SVG — cueplusplus-wordmark.svg, cueplusplus-wordmark-dark.svg, plussie.svg, plussie-dark.svg

BRAND_ASSETS names each mark by its import specifier, so the four rows above are reachable by key rather than by retyping a path. "Dark" names the ink, not the ground: the unsuffixed marks are drawn for a dark ground, the -dark marks for a light one.

Where the rest is

  • The reasoning, the provenance of every value and the date it was taken: BRAND.md, which ships beside this file
  • Installing and using it from another project: docs/CONSUMING.md
  • The product translation of this brand: https://ui.cueplusplus.com/docs/theming
  • What changed in the version you have: node_modules/@cueplusplus/brand-tokens/CHANGELOG.md

版本与发布记录

@cueplusplus/brand-tokens 共发布 46 个版本,首次发布于 2026/09/16;过去 12 个月发布了 46 个版本。

版本发布日期距今
0.34.2latest2026/11/092 天前
0.34.12026/10/2715 天前
0.34.1-dev.1793042906377dev2026/10/2715 天前
0.34.02026/10/2615 天前
0.34.0-dev.17930064848772026/10/2615 天前
0.33.02026/10/2615 天前

其他发布通道:historical → 0.12.0,dev → 0.34.1-dev.1793042906377。

关于 @cueplusplus/brand-tokens 的常见问题

@cueplusplus/brand-tokens 是什么?

CUE++ brand primitives extracted from the marketing site: the white-alpha ramp, the monochrome ground, the JetBrains Mono stack, the // eyebrow motif, the motion keyframes and the four brand marks.

如何安装 @cueplusplus/brand-tokens?

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

@cueplusplus/brand-tokens 支持 TypeScript 吗?

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

@cueplusplus/brand-tokens 支持 ESM 还是 CommonJS?

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

@cueplusplus/brand-tokens 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cueplusplus/brand-tokens 可以商用吗?

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

@cueplusplus/brand-tokens 的下载量有多少?

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

@cueplusplus/brand-tokens 还在维护吗?

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