A set of 16x16 pixel icons for different online platforms, created for my personal website.
platform-icons
is a set of 16x16 pixel icons I created to use on my personal website. The size was chosen to make them fit well with the font I'm using on my personal website.
The icons are displayed in the text color of the HTML Element they're in.
The SVG icons as well as the CSS is generated from a spritesheet as well as a labels file, using a python script (generate.py
). The script uses the following libraries (the versions I'm using are notated not because the script requires specific versions, but just for your information):
- pixels2svg (0.2.2)
- Pillow (10.1.0)
- Include
platform-icons.css
and thesvg/
directory in the same parent directory within your project. - Link to
platform-icons.css
in your website. - Create icons manually ...
... or append them to links automatically
<span class="plicon" data-platform="twitter"></span>
<a href="https://github.com/Ovidios/" class="plicon-auto">GitHub</a>
Since I'm creating these icons as my need for them arises, not very many exist so far.
To add an icon, simply add it to the right of the existing icons, then add an entry in the labels file, which should look as follows:
[
...
{
"names": ["platform-name-1", "alias-1"],
"urls": ["platform-1.com", "platform-o.ne"]
}
]
After adding the icon, simply run the generate.py
python script to generate the updated PNG, SVG, and CSS files.
This is very much a personal thing, into the management of which I really don't want to put too much time and effort. As such, while you should feel free to clone this repository, add icons, and whatever you wish, I'm not certain I will be merging any contributions into this repo.