alexdbsas / fffeather
simple feather icons integration
Fund package maintenance!
Buymeacoffe
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:fatfree-extension
Requires
- bcosca/fatfree-core: 3.*
README
Extension for Fat-free-framework with feather-icons
Usage
Really easy:
index.php:
require 'vendor/autoload.php'; new \alexdbsas\FFfeather;
template.html:
<feather type="activity">
Where "type" is icon name. Don't forget setup css first (or icon would invisible):
.feather { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
as in doc
Why use sprites?
Because it's the most resource-efficient method. The browser caches just one single file and rarely makes subsequent requests. Less traffic, fewer requests, less time spent.