Fontawesome Icon Library - Funky Icons
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Fontawesome Icon Library - Funky Icons
Do they look different to yours?
They are just Fontawesome...
They are just Fontawesome...
You do not have the required permissions to view the files attached to this post.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Icons in the Footer
A quick trick: solid background behind any brand icon
Font Awesome icons (a good example is `fa-square-facebook`) are just a background with a `cut-out`.
If you put them on a background, the cut-out takes the background colour, right?
On the usual "light grey" footer...
produces this:
So we make the background a nice `Facebook Blue` easily enough
which changes the icon like this:
The problem
I want that cut-out "f" to be white. It's taken some effort, and I think this is a novel approach. At least I have never seen anyone cosmetically layering FA icons in quite this way.
Cosmetically Stacking
ends up like this:
What's happening here?
Two icons on top of each other:
1. A white square (background) making that cut-out "f" white.
2. The blue(foreground)
`fa-stack` keeps them perfectly aligned.
Both use `fa-stack-2x` so they're the same size.
Result
A solid Facebook icon you can put anywhere - white background, blue logo.
Font Awesome icons (a good example is `fa-square-facebook`) are just a background with a `cut-out`.
If you put them on a background, the cut-out takes the background colour, right?
On the usual "light grey" footer...
Code: Select all
<i class="fab fa-square-facebook fa-2x"></i>So we make the background a nice `Facebook Blue` easily enough
Code: Select all
<i class="fab fa-square-facebook fa-2x" style="color: #1877F2;"></i>The problem
I want that cut-out "f" to be white. It's taken some effort, and I think this is a novel approach. At least I have never seen anyone cosmetically layering FA icons in quite this way.
Cosmetically Stacking
Code: Select all
<span class="fa-stack">
<i class="fas fa-square fa-stack-2x" style="color: #fff;"></i>
<i class="fab fa-square-facebook fa-stack-2x" style="color: #1877F2;"></i>
</span>
ends up like this:
What's happening here?
Two icons on top of each other:
1. A white square (background) making that cut-out "f" white.
2. The blue(foreground)
`fa-stack` keeps them perfectly aligned.
Both use `fa-stack-2x` so they're the same size.
Result
A solid Facebook icon you can put anywhere - white background, blue logo.
You do not have the required permissions to view the files attached to this post.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Icons in the Footer
Now you have the knowledge to inject a little bit of colour into your Fontawesome Icons. Get involved...
Let's make a library of funky FA icons.
If you come up with something awesome ...
PLEASE share your code and a (small!!) screenshot of the end result.
To make things as easy as possible, here is a Linter.
https://phoenixcart.org/linter.php
Just paste some code in the Left, and then press the >Render button.
Output of that code is on the right.
---
Easy to screenshot, like I have in the posts below.
Easy to paste code, inside the usual code tags, as in the posts below.
Now there really is no excuse to not get involved

Let's make a library of funky FA icons.
If you come up with something awesome ...
PLEASE share your code and a (small!!) screenshot of the end result.
To make things as easy as possible, here is a Linter.
https://phoenixcart.org/linter.php
Just paste some code in the Left, and then press the >Render button.
Output of that code is on the right.
---
Easy to screenshot, like I have in the posts below.
Easy to paste code, inside the usual code tags, as in the posts below.
Now there really is no excuse to not get involved
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Icons in the Footer
Facebook
Code: Select all
<span class="fa-stack">
<i class="fas fa-square fa-stack-2x" style="color: #fff;"></i>
<i class="fab fa-square-facebook fa-stack-2x" style="color: #1877F2;"></i>
</span>
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Fontawesome Icon Library - Let's Do It
Whatsapp
Note that if the bootstrap colours near enough match, you can use them (as above) rather than "style".
Code: Select all
<span class="fa-stack">
<i class="fas fa-square fa-stack-2x text-white"></i>
<i class="fab fa-square-whatsapp fa-stack-2x text-success"></i>
</span>
You do not have the required permissions to view the files attached to this post.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Fontawesome Icon Library - Let's Do It
Mastercard
Far more complicated, but shows possibilities.
Code: Select all
<span class="fa-stack">
<i class="fas fa-square fa-stack-2x" style="background: linear-gradient(90deg,#eb001b 0%,#eb001b 40%,#f79e1b 60%,#f79e1b 100%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent; color: transparent;clip-path: inset(0 0 25% 0);"></i>
<i class="fas fa-square fa-stack-2x" style="color:#fff; clip-path: inset(75% 0 0 0);"></i>
<i class="fab fa-cc-mastercard fa-stack-2x text-black"></i>
</span>
Far more complicated, but shows possibilities.
You do not have the required permissions to view the files attached to this post.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Fontawesome Icon Library - Funky Icons
Pinterest
Code: Select all
<span class="fa-stack">
<i class="fas fa-square text-white fa-stack-2x"></i>
<i class="fab fa-square-pinterest fa-stack-2x" style="color: #E60023;"></i>
</span>
You do not have the required permissions to view the files attached to this post.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Fontawesome Icon Library - Funky Icons
Reddit
Noting that some circular icons also work well.
Code: Select all
<span class="fa-stack">
<i class="fas fa-circle text-white fa-stack-2x"></i>
<i class="fab fa-reddit fa-stack-2x" style="color: #FF4500;"></i>
</span>
<span class="fa-stack">
<i class="fas fa-square text-white fa-stack-2x"></i>
<i class="fab fa-square-reddit fa-stack-2x" style="color: #FF4500;"></i>
</span>
You do not have the required permissions to view the files attached to this post.
- bonbec
- Contributor
- Posts: 190
- Joined: Mon Oct 26, 2020 12:23 pm
- Phoenix Version: V1.1.0.7
- Has thanked: 54 times
- Been thanked: 40 times
Re: Fontawesome Icon Library - Funky Icons
That's a great idea; it can add some color to the icon area.
I don't know if you're familiar with ColorZilla (I use it with Firefox), but it lets you retrieve the colors used on web pages, logos, etc. ... handy for setting the icons to their actual colors.
I don't know if you're familiar with ColorZilla (I use it with Firefox), but it lets you retrieve the colors used on web pages, logos, etc. ... handy for setting the icons to their actual colors.
You do not have the required permissions to view the files attached to this post.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Fontawesome Icon Library - Funky Icons
Agreed!
I had forgotten about colorzilla - thanks for the reminder.