Jump to content
View in the app

A better way to browse. Learn more.

Learn more

SVG Footer Icons - Mobile Footer Menu Bar - Color Problem

Featured Replies

Hi all,

I managed to create a new icon for the mobile footer menu bar, but it does not work in dark mode.

I created my image and copied the colour from an existing footer image in light mode. Do I need another image or is there something I am missing and the colour somehow changes in a single image?

Either way, what's the correct approach?

  • Author

Hi @Moestuin

I just finished this. In the end, I actually just needed to add:

stroke="currentColor" fill="currentColor" to the path attribute.

I did not need two images. I can't pretend to fully understand it.

Good that you got it working. From the web;

Using stroke="currentColor" and fill="currentColor" in an SVG means that the stroke (outline) and fill (interior) of the SVG will inherit the current text color (usually defined by CSS).

Why use currentColor?

  • It allows SVGs to automatically match the surrounding text or element color without hardcoding a specific color.

  • This is especially useful for theming and dark mode support.

Recently Browsing 0

  • No registered users viewing this page.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.