@shopware-ag/meteor-icon-kit

中文文档
5.12.0发布于 2026/11/02MITES Module零依赖构建来源已验证

An icon library and toolkit that follows a minimal, yet highly expressive style perfectly aligned with Shopware's product language

原始使用文档
文档目录9 节
  1. Prerequisites
  2. Table of contents
  3. Installation
  4. Usage
  5. Dynamic colors
  6. Example
  7. Built With
  8. Figma library
  9. License

npm version

meteor-icon-kit

An icon library and toolkit that follows a minimal, yet highly expressive style perfectly aligned with Shopware's product language

Prerequisites

This project requires npm or yarn. npm and yarn are really easy to install. To make sure you have one of them available on your machine, try running the following command. This project itself was created with npm.

$ npm -v
8.1.0

$ yarn -v
1.22.15

Table of contents

Installation

BEFORE YOU INSTALL: please read the prerequisites

To install the meteor-icon-kit, run:

$ npm install @shopware-ag/meteor-icon-kit

Or if you prefer using Yarn:

$ yarn add @shopware-ag/meteor-icon-kit

Usage

Start by importing the provided stylesheet:

@import "@shopware-ag/meteor-icon-kit/icons/meteor-icon-kit.css";

Or classic via a <link>:

<link
  rel="stylesheet"
  href="your-asset-folder/meteor-icon-kit.css"
/>

[!NOTE] The previous Sass import path @shopware-ag/meteor-icon-kit/icons/meteor-icon-kit.scss still works — it now ships the same plain CSS under the old file name — but it is deprecated. Please migrate to the .css import.

Then, you can use the icons:

import wallet from "@shopware-ag/meteor-icon-kit/icons/regular/wallet.svg";

Dynamic colors

Take this pseudo html:

<span class="icon-example">
  <wallet />
</span>

By defining the following class structure in CSS you can change the color of the svg dynamically:

.icon-example {
  display: block;
  color: green;

  svg {
    fill: currentColor;

    path,
    use {
      fill: currentColor;
    }
  }
}

Example

Following is an example for a Vue3 project using Vite as a bundler. We are using the vite-svg-loader to load the svg files.

In your vite.config.js add the following:

//...
import svgLoader from "vite-svg-loader";

export default {
  plugins: [
    //...
    svgLoader(),
  ],
};

This way you can import your svg files as components:

<template>
  <ActivityIcon />
</template>

<script setup>
import ActivityIcon from "@shopware-ag/meteor-icon-kit/icons/regular/activity.svg";
</script>

You can find this example as a CodeSandbox template here.

Built With

  • Typescript
  • Figma API
  • VS-Code
  • Love :blue_heart: :blue_heart: :blue_heart:

Figma library

Meteor Icon Kit is available as a Figma library through the Figma Community. To use the icons, log in to your Figma account and duplicate the file to your drafts.

License

See the LICENSE file for license rights and limitations (MIT).

2024 © shopware AG

版本与发布记录

@shopware-ag/meteor-icon-kit 共发布 27 个版本,首次发布于 2022/04/04;过去 12 个月发布了 7 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.12.0latest2026/11/021 天前
5.11.02026/10/011 个月前
5.10.02026/08/102 个月前
5.9.12026/07/293 个月前
5.9.02026/07/103 个月前
5.8.02026/06/054 个月前

关于 @shopware-ag/meteor-icon-kit 的常见问题

@shopware-ag/meteor-icon-kit 是什么?

一个图标库和工具包,遵循一个最小的,但高度表达风格完美地与Shopware的产品语言

如何安装 @shopware-ag/meteor-icon-kit?

在项目目录运行 npm install @shopware-ag/meteor-icon-kit,或使用 pnpm add / yarn add / bun add。

@shopware-ag/meteor-icon-kit 支持 TypeScript 吗?

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

@shopware-ag/meteor-icon-kit 支持 ESM 还是 CommonJS?

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

@shopware-ag/meteor-icon-kit 可以商用吗?

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

@shopware-ag/meteor-icon-kit 还在维护吗?

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