@astryx-vue/themes

中文文档
0.7.14发布于 2026/11/08MITTypeScriptES Module构建来源已验证近 30 天下载 3968

CSS themes for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.

原始使用文档
文档目录6 节
  1. Install
  2. Use
  3. Entries
  4. Related packages
  5. Resources
  6. License

@astryx-vue/themes

CSS themes for astryx-vue, an unofficial Vue 3 port of Astryx. Not affiliated with Meta.

One package ships every theme. Structural styles stay in @astryx-vue/core. A theme sets color, type, radius, shadow, and motion through CSS variables and cascade layers. There is no StyleX build step.

Install

pnpm add @astryx-vue/core @astryx-vue/themes

A theme does not render components by itself. Install @astryx-vue/core with it. Peer dependency of core: vue ^3.5.0.

Use

import '@astryx-vue/themes/neutral.css'
<html data-astryx-theme="neutral">

Put data-astryx-theme on the element that should take the theme. On html, that is the whole app. On a smaller element, only that subtree. Neutral also writes the same variables on :root, so a single-theme app can import neutral.css without the attribute. The other themes do not touch :root.

Every theme loads Figtree and JetBrains Mono (400, 500, 600, 700, and 400 italic; Figtree also includes 600 italic). Butter, Chocolate, Gothic, Matcha, Stone, and Y2K also load their own text faces.

Entries

EntryWhat it is
@astryx-vue/themes/neutral.cssDefault look. Also applies on :root.
@astryx-vue/themes/butter.cssGolden surfaces, blue accents.
@astryx-vue/themes/chocolate.cssWarm brown and beige.
@astryx-vue/themes/gothic.cssDark only. Deep blue-gray surfaces.
@astryx-vue/themes/matcha.cssEarthy greens.
@astryx-vue/themes/stone.cssWarm stone and slate.
@astryx-vue/themes/y2k.cssPeriwinkle, cream, and sharp corners.
PackageWhat it is
@astryx-vue/coreThe Vue components these variables style
@astryx-vue/cliastryx-vue search theme and the rest of the docs lookup

Resources

License

MIT. Astryx is copyright Meta Platforms, Inc. This package is an unofficial port and is not affiliated with or endorsed by Meta.

版本与发布记录

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

版本发布日期距今
0.7.14latest2026/11/08今天
0.7.132026/11/08今天
0.7.122026/11/08今天
0.7.112026/11/07今天
0.7.102026/11/07今天
0.7.92026/11/061 天前

关于 @astryx-vue/themes 的常见问题

@astryx-vue/themes 是什么?

CSS themes for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.

如何安装 @astryx-vue/themes?

在项目目录运行 npm install @astryx-vue/themes,或使用 pnpm add / yarn add / bun add。

@astryx-vue/themes 支持 TypeScript 吗?

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

@astryx-vue/themes 支持 ESM 还是 CommonJS?

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

@astryx-vue/themes 可以商用吗?

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

@astryx-vue/themes 的下载量有多少?

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

@astryx-vue/themes 还在维护吗?

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