Download

Feather Icons Plugin

Introduction

The Feather Icons Plugin is an elegant and versatile solution for integrating Feather icons into your website. This guide will help you understand how to effectively utilize the plugin to enhance your site's visual appeal with these beautifully designed icons. 

For a complete list of available icons and their respective names, please scroll through this documentation or visit the Feather Icons website.

Enabling the Plugin

  1. Launch the Publii application and navigate to the Tools & Plugins section.
  2. Locate the Feather Icons plugin from the list of available plugins.
  3. Enable it by clicking the switch button located at the bottom-left corner of the plugin's tile.

Plugin Configuration

After activating the plugin, you will find various configuration options that allow you to customize the appearance and behavior of the Feather icons on your website.

Basic options

This section provides settings for customizing the default properties of the icons.

  • Icon Size: Set the default size for the icons. The size is specified as a number that will be combined with the selected unit.
  • Icon Size Unit: Choose the unit of measurement for the icon size. Available options include 'px' (pixels), 'em', 'rem', 'vw' (viewport width), 'vh' (viewport height), 'vmin' (viewport minimum), and 'vmax' (viewport maximum).
  • Stroke Width: Adjust the stroke width of the icons. This setting determines the thickness of the icon lines and is defined in pixels.
  • Stroke Color Option: Select between using the current color or custom color for the icon stroke. The 'Use Current Color' option will inherit the color from the surrounding text or element.
  • Custom Stroke Color: Specify a custom color for the icon stroke when 'Custom Color' is selected. This setting uses a color picker to control the stroke color precisely.
  • Vertical Align: Choose the vertical alignment for the icons. Options include 'baseline', 'bottom', 'middle', 'sub', 'super', 'text-top', 'text-bottom', 'top', and a custom value for precise alignment.
  • Custom Vertical Align Value: Define a custom value for vertical alignment when the 'Custom values' option is selected. This allows for specific adjustments like '-5px', '0.5em', or '5%' to align the icon perfectly with adjacent elements.

Advanced options

These options provide additional settings for accessibility and advanced customization.

  • ARIA Hidden Attribute: Set the default value for the 'aria-hidden' attribute to improve accessibility. This option plays a crucial role in enhancing the accessibility of your website and allows you to define the default state of the 'aria-hidden' attribute for the icons.
    • True: When set to 'true', the 'aria-hidden' attribute will be applied to the icons by default. This means that assistive technologies, like screen readers, will ignore these icons. It's particularly useful when icons are used for decorative purposes and don't convey essential information.
    • False: If set to 'false', the 'aria-hidden' attribute will not be included in the icon's HTML markup, allowing screen readers to interpret the icons as part of the content. 
  • Icon Loading Method: Choose how the icons should be loaded on the production site:
    • Use SVG Map File: This method involves loading SVG maps from a separate file (the file size is approximately 60KB; when compressed using gzip, it reduces to about 10KB. ). It offers enhanced organization and cleaner HTML code. However, it may increase page load times due to an additional server request for the SVG file.
    • Use Inline SVG Code: This approach embeds SVG directly within the HTML. It results in faster page loading by eliminating the need for an additional server request. However, it can increase the overall code size of your site, which might affect readability and maintenance.

    Please note: For websites with a few icons, inline SVG code is generally the best choice for faster page loading and easier implementation. However, for websites with many icons, an SVG map file can be a better option to maintain cleaner and more organized HTML, even though it may slightly increase page load times.

Using the Plugin

Feather Icons can be used in various parts of your site, including posts, menus, footers, etc. You can either use the default settings configured in the plugin or override them with specific attributes in the shortcode. The plugin allows customization of each icon's appearance directly within the shortcode. You can modify the size, color, stroke width,  and aria-hidden attributes or add your own CSS to suit your design needs.

When using our custom shortcode for icons, please follow the specific order of attributes outlined below. This order is essential for the correct rendering of icons.

The shortcode should be structured as follows:

[fi=icon_name size=value_unit color=color_value class=class_names aria-hidden=true_or_false stroke-width=value]

Please make sure to include the elements in this exact sequence: icon name, size, color (in HEX format), class, aria-hidden, and stroke-width. The color should be specified using HEX format. This format is necessary for the plugin to correctly interpret and display the icons as intended.

Examples:

<!-- Default Usage -->
[fi=bell]

<!-- Example with Size and Color -->
[fi=bell size=30px color=#ff0000]

<!-- Example with Size and Stroke Width -->
[fi=bell size=4rem stroke-width=3]

<!-- Example with Full Customization -->
[fi=bell size=4rem color=#00ff00 class=icon aria-hidden=false stroke-width=4]

Full List of Feather Icons

Below you can find a comprehensive list of all available Feather Icons. This list is designed to make finding and selecting the perfect icon for your needs easier. Browse through the list, and when you find an icon you wish to use, click on it. Upon clicking, the shortcode for that specific icon will be automatically copied to your clipboard in the format [fi=icon-name].

activity
airplay
alert-circle
alert-octagon
alert-triangle
align-center
align-justify
align-left
align-right
anchor
aperture
archive
arrow-down-circle
arrow-down-left
arrow-down-right
arrow-down
arrow-left-circle
arrow-left
arrow-right-circle
arrow-right
arrow-up-circle
arrow-up-left
arrow-up-right
arrow-up
at-sign
award
bar-chart-2
bar-chart
battery-charging
battery
bell-off
bell
bluetooth
bold
book-open
book
bookmark
box
briefcase
calendar
camera-off
camera
cast
check-circle
check-square
check
chevron-down
chevron-left
chevron-right
chevron-up
chevrons-down
chevrons-left
chevrons-right
chevrons-up
chrome
circle
clipboard
clock
cloud-drizzle
cloud-lightning
cloud-off
cloud-rain
cloud-snow
cloud
code
codepen
codesandbox
coffee
columns
command
compass
copy
corner-down-left
corner-down-right
corner-left-down
corner-left-up
corner-right-down
corner-right-up
corner-up-left
corner-up-right
cpu
credit-card
crop
crosshair
database
delete
disc
divide-circle
divide-square
divide
dollar-sign
download-cloud
download
dribbble
droplet
edit-2
edit-3
edit
external-link
eye-off
eye
facebook
fast-forward
feather
figma
file-minus
file-plus
file-text
file
film
filter
flag
folder-minus
folder-plus
folder
framer
frown
gift
git-branch
git-commit
git-merge
git-pull-request
github
gitlab
globe
grid
hard-drive
hash
headphones
heart
help-circle
hexagon
home
image
inbox
info
instagram
italic
key
layers
layout
life-buoy
link-2
link
linkedin
list
loader
lock
log-in
log-out
mail
map-pin
map
maximize-2
maximize
meh
menu
message-circle
message-square
mic-off
mic
minimize-2
minimize
minus-circle
minus-square
minus
monitor
moon
more-horizontal
more-vertical
mouse-pointer
move
music
navigation-2
navigation
octagon
package
paperclip
pause-circle
pause
pen-tool
percent
phone-call
phone-forwarded
phone-incoming
phone-missed
phone-off
phone-outgoing
phone
pie-chart
play-circle
play
plus-circle
plus-square
plus
pocket
power
printer
radio
refresh-ccw
refresh-cw
repeat
rewind
rotate-ccw
rotate-cw
rss
save
scissors
search
send
server
settings
share-2
share
shield-off
shield
shopping-bag
shopping-cart
shuffle
sidebar
skip-back
skip-forward
slack
slash
sliders
smartphone
smile
speaker
square
star
stop-circle
sun
sunrise
sunset
table
tablet
tag
target
terminal
thermometer
thumbs-down
thumbs-up
toggle-left
toggle-right
tool
trash-2
trash
trello
trending-down
trending-up
triangle
truck
tv
twitch
twitter
type
umbrella
underline
unlock
upload-cloud
upload
user-check
user-minus
user-plus
user-x
user
users
video-off
video
voicemail
volume-1
volume-2
volume-x
volume
watch
wifi-off
wifi
wind
x-circle
x-octagon
x-square
x
youtube
zap-off
zap
zoom-in
zoom-out

Conclusion

The Feather Icons Plugin is a powerful and easy-to-use tool for adding and customizing icons on your Publii site. With its wide range of settings and customization options, you can easily enhance the visual appeal of your website while maintaining accessibility standards.

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website