Brand Icons

Provides thousands of SVG icons from [simple-icons] for representing common logos

Technology

The brands module provides comprehensive brand icon support for Project Forge applications. It integrates thousands of high-quality SVG brand icons from simple-icons, making it easy to display logos and branding elements in your applications.

Overview

This module offers:

Key Features

Comprehensive Icon Library

Performance Optimized

Developer Experience

Package Structure

Core Components

Icon Data

Admin Interface

Usage

Basic Icon Rendering

Use the SVGRef component helper (and its friends, defined in SVG.html) to render brand icons in templates:

1
2
3
{%= components.SVGRef("brand-apple", 64, 64, "logo-class", ps) %}
{%= components.SVGRef("brand-github", 32, 32, "social-icon", ps) %}
{%= components.SVGRef("brand-react", 48, 48, "tech-badge", ps) %}

Icon Parameters

Available Icons

Icons are prefixed with brand- and use the simple-icons naming convention:

Admin Gallery

Access the brand icon gallery through the admin settings: 1. Navigate to Admin Settings 2. Select “Brand Icons” section 3. Browse, search, and preview available icons 4. Copy icon keys for use in templates

Configuration

No additional configuration is required. The module automatically: - Loads all brand icon definitions - Registers admin gallery routes - Provides template helpers for icon rendering using theme colors

Integration

Template Integration

 1
2
3
4
5
6
7
8
9
10
11
12
<!-- Header with company logo -->
<header class="header">
{%= components.SVGRef("brand-" + ps.Data.CompanyBrand, 40, 40, "company-logo", ps) %}
<h1>Company Name</h1>
</header>

<!-- Technology stack display -->
<div class="tech-stack">
{%- for _, tech := range technologies -%}
{%= components.SVGRef("brand-" + tech.Key, 32, 32, "tech-icon", ps) %}
{%- endfor -%}
</div>

Source Code

See Also