symfony/ux-icons
Symfony UX Icons provides a simple way to use SVG icon packs in Symfony apps. Install popular sets, render icons in Twig or PHP, and manage them consistently across your UI with the Symfony UX tooling and asset pipeline.
<svg> tags) and reduce frontend complexity. Enables faster iteration for features requiring icons (e.g., new UI components, interactive tooltips, or data visualizations)."This package lets us deliver scalable, consistent icons across all web apps without bloating frontend code or relying on third-party services. It’s a 10-minute setup that saves dev time on repetitive SVG work—ideal for rapid iteration on dashboards, marketing sites, or internal tools. Since it’s MIT-licensed and Symfony-backed, it’s a low-risk way to standardize our visual language while improving performance. For example, replacing Font Awesome with self-hosted SVGs could reduce bundle size by 30% and eliminate CDN dependencies."
Key Outcomes: ✅ Faster development (no manual SVG integration). ✅ Better performance (SVGs are lightweight and cacheable). ✅ Design consistency (enforce brand guidelines via Twig components). ✅ Future-proof (integrates with Symfony UX ecosystem).
*"Symfony UX Icons gives us Twig-native SVG rendering with zero JS overhead. Here’s why it’s a great fit for Laravel:
{% if user.is_admin %}{{ ux_icon('admin') }}{% endif %}) without frontend logic.fill-current for dynamic colors). Example:
{{ ux_icon('mdi:check', { class: 'text-green-500 w-5 h-5' }) }}
Cache facade.Tradeoffs:
@twig directives).Icon::render()) for Blade-only projects.Proposed Approach:
/resources/svg/ and Twig templates.*"This package lets us control icons at the design level while developers handle the heavy lifting. Here’s what you get:
/resources/svg/.fill-current for theming) or inline styles.Example Workflow:
/resources/svg/icons/ (e.g., home.svg, user.svg).{{ ux_icon('icons/home', { class: 'text-blue-600' }) }}
Tools to Pair With:
w-6 h-6).How can I help you explore Laravel packages today?