Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.12 KB

customization.md

File metadata and controls

43 lines (27 loc) · 1.12 KB

Customisation

How-to guide. Colour and size for this pack's icons.

Colour

Each SVG has viewBox="0 0 512 512" and the ionicon class. Filled and sharp icons paint with the default fill; outline icons stroke with currentColor.

<x-ichava::icon name="ichava/icon-sets-ionicons::filled/home" class="w-6 h-6 fill-current text-red-500" />

With the fluent helper:

{{ ichava('ichava/icon-sets-ionicons::filled/home')->class('w-6 h-6 fill-current text-gray-700') }}

Size

The SVGs scale from their viewBox. Use any width and height utility:

<x-ichava::icon name="ichava/icon-sets-ionicons::filled/home" class="w-4 h-4" />
<x-ichava::icon name="ichava/icon-sets-ionicons::filled/home" class="w-12 h-12" />

Accessibility

Add aria-label for icons that carry meaning (no adjacent text label):

<x-ichava::icon name="ichava/icon-sets-ionicons::filled/home" aria-label="Home" class="w-5 h-5" />

See also


← Docs index