daljo25/blade-pixelicon-icons 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

daljo25/blade-pixelicon-icons

最新稳定版本:v1.0.2

Composer 安装命令:

composer require daljo25/blade-pixelicon-icons

包简介

Blade Icons package for Pixel Icon Library.

README 文档

README

Latest Version on Packagist Total Downloads License

Blade UI Kit package for the Pixel Icon Library by HackerNoon.

This package provides 450+ SVG icons ready to use in Laravel Blade using the same developer experience as other Blade UI Kit icon sets.

Thumbnail

✨ Features

  • 450+ Pixel icons included
  • Supports regular, solid, brands & purcats
  • Multiple Blade UI Kit usage styles
  • Original SVGs are not modified
  • Color customization via fill / style
  • Zero runtime dependencies

📦 Installation

composer require daljo25/blade-pixelicon-icons

⚙️ Publishing

You may publish the config file and/or the SVG icons if you want to customize them.

Publish config

php artisan vendor:publish --tag=blade-pixelicon-icons-config

This will publish:

config/blade-pixelicon-icons.php

Publish SVG icons

php artisan vendor:publish --tag=blade-pixelicon-icons

This will publish all icons to:

resources/svg/vendor/blade-pixelicon-icons

This is useful if you want to:

  • Modify SVG files manually
  • Remove icons you don’t use
  • Optimize icons
  • Override specific icons

Search for icons in the official Pixel Icon Library

You can search for icons in the official Pixel Icon Library by HackerNoon

https://pixeliconlibrary.com/

🚀 Usage

This package follows the Blade UI Kit icon conventions.

You can use any of the 3 supported syntaxes.

1️⃣ Blade Component

<x-pixelicon-user />
<x-pixelicon-home />
<x-pixelicon-android />

2️⃣ @svg Directive

@svg('pixelicon-home')
@svg('pixelicon-user')

3️⃣ svg() Helper

{{ svg('pixelicon-android') }}

🎨 Changing Icon Color (IMPORTANT)

Pixelicon SVGs do not include fill or stroke attributes by design.

This package injects fill="currentColor" automatically via config so icons inherit color from CSS.

⚠️ Because of how these SVGs are built:

Color must be applied using:

  • fill=""
  • style=""
  • inline color via parent element

❌ Tailwind text- classes WILL NOT work reliably.*

✔️ Correct ways to change color

Using fill

<x-pixelicon-user fill="red" />
@svg('pixelicon-home', 'w-6 h-6', ['fill' => '#16a34a'])

Using inline style

<x-pixelicon-user style="color:#0ea5e9" />
{{ svg('pixelicon-android')->style('color:#f97316') }}

Using parent element color

<div style="color: purple">
    <x-pixelicon-user />
</div>

❌ Not supported

{{-- This will NOT work reliably --}}
<x-pixelicon-user class="text-red-500" />

This limitation comes from the original Pixelicon SVG structure and is intentional to keep the source files unmodified.

🧩 Icon Prefix

All icons use the prefix:

pixelicon-

Examples:

pixelicon-user
pixelicon-home
pixelicon-github
pixelicon-android
pixelicon-youtube

🗂 Icon Sets Included

Icons are generated from the official Pixel Icon Library:

  • Regular
  • Solid
  • Brands
  • Purcats

All icons are merged into a single set for convenience.

⚙️ Config

Config file: config/blade-pixelicon-icons.php

You normally don’t need to change anything, but it allows you to:

  • Change default attributes
  • Override global icon behavior

🧪 Testing

composer test

📄 License

MIT © Daljomar Morillo

Pixel Icon Library by HackerNoon is used under its respective license MIT for code and Creative Commons for the icons.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固