Topic: Adding colors to icons
Curtly free asked 4 years ago
what class should I use to add colors from the color palette to an Icon? I already know how to add colors to an icon using the color_name-text classes but the color options are limited. I can do
<i class="fab fa-fish blue-text"></i>
but I want to do something like this
<i class="fab fa-fish red lighten-5"></i>
to color the icon instead of coloring the icon background.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.8.11
- Device: Computer
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: Yes
Marta Wierzbicka staff commented 4 years ago
Hi,
for text color, we have only these classes: https://mdbootstrap.com/docs/jquery/css/colors/#text-colors. We haven't created more. You can create your own one's text color classes: .your-color { color: #ffebee }
Best, Marta