定制 mahocommerce/icons 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mahocommerce/icons

最新稳定版本:1.0.2

Composer 安装命令:

composer require mahocommerce/icons

包简介

A huge package of optimized SVG icons

README 文档

README

This repository contains a set of 5800+ icons, in SVG format, released under the MIT license.

We did not do the work of creating the icons, all of the credits and support goes to the awesome team at Tabler that created the Tabler Icons project.

Why we chose this icon pack

There are multiple factors why, after a lot of research, we chose this specific icon pack to be bundled with Maho:

  • MIT license
  • Image format in SVG
  • Available in outline and filled variants
  • Support for currentColor and strokeWidth for infinite customizability via CSS

Why we created this repository

  • Upstream repository wasn't available on Packagist
  • We wanted to have only the SVG icons in the repository and nothing else (upstream has a lot more stuff that's not needed for our use)
  • We wanted to use SVGO to optimize every icon, we have an automatic workflow in place that imports changes from the original repo and applies all the optimizations needed before committing it and making it available to everybody

How is this repository integrated into Maho

It's a simple composer dependency, all the icons live only in the vendor folder and are not accessible via web (eliminating the risk of hotlinking. Maho's core reads it from vendor and inlines them in the generated HTML.
This allows for the possibility of using CSS to change color and strokeWidth of the icons.

Is this project only Maho related?

Not really, there's no Maho related code in this repository, thus you can embed it in any project.

统计信息

  • 总下载量: 25.69k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-13