@atlaskit/util-shared-styles

中文文档
3.1.2发布于 2019/01/21SEE LICENSE IN LICENSECommonJS近 30 天下载 7641

Shared styles for Atlaskit components

此软件包已被标记为弃用

Please use @atlaskit/theme instead. Migration guide is available at https://atlaskit.atlassian.com/packages/core/theme/docs/migration-guide

原始使用文档

Atlaskit component registry Commitizen friendly semantic-release Report an issue

[WARNING] This package is deprecated. We recommend using @atlaskit/theme package instead.

Please follow @atlaskit/theme migration guide for migration to @atlaskit/theme package in your project.


This package provides you with the ADG colors & typography in a programmatic way.

You can either use the less files by importing them via

@import "~@atlaskit/util-shared-styles/src/colors.less";
@import "~@atlaskit/util-shared-styles/src/fonts.less";

.myclass {
  color: @ak-color-R100;
  font-family: @ak-font-family;
}

or use them within JS via

import {
  akColorN500 as defaultColor,
  akColorR500 as highlightColor,
  akFontFamily as fontFamily
} from "@atlaskit/util-shared-styles";

* Please note that this module could have dependencies that are governed by the Atlassian Design Guidelines license which will be automatically included on install. Each dependency has a license file that indicates whether the Atlassian Design Guidelines license applies.

We're here to help!

Let us know what you think of our components and docs, your feedback is really important for us.

Are you in trouble? Read through our contribution guidelines and raise an issue to us.

版本与发布记录

@atlaskit/util-shared-styles 共发布 45 个版本,首次发布于 2017/01/30;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.1.2latest2019/01/217 年前
3.1.12019/01/077 年前
3.1.02019/01/077 年前
3.0.02018/09/128 年前
2.10.82018/05/038 年前
2.10.72018/03/128 年前

关于 @atlaskit/util-shared-styles 的常见问题

@atlaskit/util-shared-styles 是什么?

Shared styles for Atlaskit components注意:该包已被作者标记为弃用——Please use @atlaskit/theme instead. Migration guide is available at https://atlaskit.atlassian.com/packages/core/theme/docs/migration-guide

如何安装 @atlaskit/util-shared-styles?

在项目目录运行 npm install @atlaskit/util-shared-styles,或使用 pnpm add / yarn add / bun add。

@atlaskit/util-shared-styles 支持 TypeScript 吗?

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

@atlaskit/util-shared-styles 支持 ESM 还是 CommonJS?

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

@atlaskit/util-shared-styles 可以商用吗?

@atlaskit/util-shared-styles 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@atlaskit/util-shared-styles 的下载量有多少?

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

@atlaskit/util-shared-styles 还在维护吗?

最新版本 3.1.2 发布于 2019/01/21(7 年前);至今共发布 45 个版本,其中过去 12 个月发布了 0 个;首次发布于 2017/01/30。作者已将其标记为弃用,新项目建议寻找替代方案。