@codecademy/brand

中文文档
5.16.1发布于 2026/11/06MITTypeScriptCommonJS近 30 天下载 6213

Brand component library for Codecademy

原始使用文档
文档目录4 节
  1. Building brand
  2. Browsing stories
  3. Writing stories
  4. PR Previews

brand

Brand components across the design spectrum that exist for utility, are more experimental, or are tied to brand representation.

Building brand

Run yarn nx build brand to build the brand component library.

Storybook

To build the Brand Storybook, run yarn nx build-storybook brand.

To run the Brand Storybook locally, run yarn nx storybook brand. The Storybook instance will be spun up on local port 4400.

You can view the production Brand Storybook at https://brand-storybook.codecademy.com/?path=/docs/brand--docs.

Browsing stories

In the Storybook sidebar, you will see all of our component organized according to Atomic Design standards.

Each component has its own Docs page as well as a number of stories representing a discrete component state, use case, or context. Clicking the story in the sidebar will take you to the Canvas view of that story, which will allow you to customize props for that component state in browser.

We recommend reading the Browse Stories documentation from Storybook to make the best use of Canvas + other features!

Writing stories

You can find more information about how to write stories here.

Eventually our stories will be colocated with their respective components, but in the meantime you can find them in the ./stories folder.

PR Previews

PR previews publish for every pull request - you can find the url in the output within the Publish Storybook Github action, under the Run npx nx run-many --target=publish-storybook --parallel=3 step.

This is temporarily, and the web platform team is diligently working on getting Storybook preview urls in PR comments.

版本与发布记录

@codecademy/brand 共发布 6,108 个版本,首次发布于 2023/04/13;过去 12 个月发布了 565 个版本。

版本发布日期距今
5.16.1latest2026/11/064 天前
5.16.1-alpha.eebc536a7.02026/11/055 天前
5.16.02026/10/2813 天前
5.16.0-alpha.382a8cf51.02026/10/2813 天前
5.16.0-alpha.fcdeb60bd.02026/10/2813 天前
5.16.0-alpha.f94aff359.02026/10/2714 天前

其他发布通道:alpha.91686cbd2c → 0.0.2-alpha.91686cbd2c.0,alpha.a12bc0e172 → 0.0.2-alpha.a12bc0e172.0,alpha.5f88f2f0ea → 0.0.2-alpha.5f88f2f0ea.0,alpha.33600e958f → 0.0.2-alpha.33600e958f.0,alpha.1d3c94b5ac → 0.0.2-alpha.1d3c94b5ac.0,alpha.e3a7df4f30 → 0.0.2-alpha.e3a7df4f30.0。

关于 @codecademy/brand 的常见问题

@codecademy/brand 是什么?

Brand component library for Codecademy

如何安装 @codecademy/brand?

在项目目录运行 npm install @codecademy/brand,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.3.0 || ^19.2.3)、@emotion/react(^11.4.0)、@emotion/styled(^11.3.0)、@codecademy/gamut(*)、@codecademy/tracking(1.6.4)、@codecademy/variance(*)、@codecademy/gamut-icons(*)、@codecademy/gamut-styles(*)、@codecademy/gamut-patterns(*)、@codecademy/gamut-illustrations(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@codecademy/brand 支持 TypeScript 吗?

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

@codecademy/brand 支持 ESM 还是 CommonJS?

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

@codecademy/brand 可以商用吗?

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

@codecademy/brand 的下载量有多少?

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

@codecademy/brand 还在维护吗?

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