@atelier-ui/styles

中文文档
0.4.10发布于 2026/10/21MITES Module零依赖构建来源已验证近 30 天下载 2867

Atelier component CSS — class-rooted, token-driven, shared by the Angular, React and Vue libraries

原始使用文档

@atelier-ui/styles

The component CSS of Atelier UI, written once. One file per component, rooted at the component's own class (.atl-button, .atl-badge, .atl-dialog), driven by the --ui-* design tokens.

@import '@atelier-ui/styles/button/atl-button.css';

Who uses it

  • @atelier-ui/react depends on this package at runtime. Its components import '@atelier-ui/styles/<dir>/atl-<name>.css', and your bundler resolves that specifier.
  • @atelier-ui/angular and @atelier-ui/vue consume it at build time only: Angular inlines it into the component styles (ViewEncapsulation.None), Vue extracts it into index.css. They do not depend on this package at runtime.

The design tokens (--ui-*: colour, type, spacing, radius, shadow, light and dark) are published here too, and this is their source of truth:

@import '@atelier-ui/styles/tokens.css';

Most apps should import the framework package's own copy instead, which needs no extra install: @import '@atelier-ui/react/styles/tokens.css' (or the angular / vue equivalent). Use the import above for apps that mix frameworks or want this package directly; with Angular or Vue, install it yourself first.

Layout

Every file is served as @atelier-ui/styles/<dir>/atl-<name>.css. The CSS files are side-effectful ("sideEffects": ["**/*.css"]); keep them when tree-shaking.

版本与发布记录

@atelier-ui/styles 共发布 22 个版本,首次发布于 2026/10/03;过去 12 个月发布了 22 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.4.10latest2026/10/2117 天前
0.4.92026/10/2118 天前
0.4.82026/10/2018 天前
0.4.72026/10/2018 天前
0.4.62026/10/1622 天前
0.4.52026/10/1424 天前

关于 @atelier-ui/styles 的常见问题

@atelier-ui/styles 是什么?

Atelier component CSS — class-rooted, token-driven, shared by the Angular, React and Vue libraries

如何安装 @atelier-ui/styles?

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

@atelier-ui/styles 支持 TypeScript 吗?

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

@atelier-ui/styles 支持 ESM 还是 CommonJS?

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

@atelier-ui/styles 可以商用吗?

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

@atelier-ui/styles 的下载量有多少?

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

@atelier-ui/styles 还在维护吗?

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