WeblixTools
Free • Favicons, dark mode SVG and iOS & Android app icons

Dark Mode Favicon Generator

Make a dark mode favicon that switches colours with the visitor's theme, so your icon stays visible on dark browser tabs.

Presets:

Icon Configuration

Corner Squircle Radius22%
Square (0%)Apple Squircle (22%)Pill / Circle (50%)
Glyph Padding / Margin4%
Dynamic SVG Dark Mode Overrides

When a user toggles their OS or browser into Dark Mode, this background color activates automatically via CSS:

#0f172a
Icon preview
Full size (512 × 512)

This is the 512 px icon from your download. The smaller sizes are drawn separately so they stay sharp.

Vector SVGMulti-Res .ICOiOS 18 Xcode

Browser tab preview

WeblixTools – My App
https://weblixtools.com

Home screen preview

iPhone & Android
Standard1024x1024
iOS 18 DarkDark Mode
iOS 18 TintedMonochrome
Android RoundAdaptive

Framework Implementation

Next.js 14 / 15 / 16 (App Router)
// Next.js 14 / 15 / 16 (App Router)
// Simply place these generated files in your 'app/' directory:
// 1. app/icon.svg           (Generated dynamic dark/light vector favicon)
// 2. app/apple-icon.png     (180x180 Apple Touch Icon)
// Next.js serves them automatically, no extra code needed
HTML5 / Astro / Vite
<!-- Modern HTML5 Head Tags -->
<link rel="icon" href="/icon.svg" type="image/svg+xml" sizes="any" />
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
From the blog

Guides on Favicons and App Icons

All articles
Reviews

What Our Users Say

Real feedback from people using WeblixTools, checked by our team before it appears.

Why favicons disappear in dark mode

A black or navy logo on a transparent background almost vanishes on a dark tab bar. This generator fixes it both ways: the PNG and ICO files get a solid background tile, and the SVG version switches to your dark palette automatically.

How to use it

  1. 1Choose your light-theme background and glyph colours.
  2. 2Pick a dark-theme background and text colour with strong contrast.
  3. 3Flip the tab preview between light and dark to compare.
  4. 4Download and reference icon.svg first, with favicon.ico as the fallback.

Does your current favicon have the problem?

Switch your computer to dark mode, open your site in Chrome and look at the tab. Then check Firefox's new tab page and your bookmarks bar, because those surfaces use different greys. If you have to look for the icon, visitors won't see it either.

These designs are the usual suspects:

  • A black, navy or dark grey logo on a transparent background. It almost disappears on a dark tab.
  • A white logo on a transparent background. It's fine in dark mode and vanishes in light mode instead.
  • Thin line icons and outlined letters. At 16 pixels the lines are one pixel wide and blend into any background.
  • Grey wordmarks, which have poor contrast against both light and dark tabs.

Four ways to fix a favicon for dark mode

This generator combines the first two: a solid tile in every PNG and ICO file, plus an SVG that switches colours on its own.

MethodHow it worksThe catch
Solid background tileYour logo sits on a coloured square, so it's visible on any tabThe icon reads as a small square rather than a free-floating logo
SVG with prefers-color-schemeA media query inside icon.svg changes the colours in dark modeFollows the system setting, and Safari 26 doesn't apply it yet
Two link tags with media="(prefers-color-scheme: dark)"The browser picks the icon that matches the themeFirefox uses the first icon and ignores the media attribute (Mozilla bug 1790109)
JavaScript swapA script changes the favicon's href when the theme changesNeeds JavaScript and two icon sets; crawlers only see the default

Picking colours that work on light and dark tabs

Tab bars range from white in light mode to a near-black grey (around #202124 in Chrome) in dark mode. A tile colour needs contrast against both, and the guideline for icons and other graphics (WCAG 1.4.11) is a ratio of at least 3:1.

As the table below shows, it's hard to find one tile colour that clears 3:1 on both. Dark tiles fade on dark tabs, and bright ones such as orange or sky blue are weak on white. That's why the studio lets you set separate dark-mode colours for the SVG: use a strong colour for light tabs and a lighter one for dark tabs.

Tile colourOn a white tabOn a dark tab (#202124)
Navy #0f172a17.9:11.1:1, nearly invisible
Indigo #4f46e56.3:12.6:1, borderline
Orange #f973162.8:15.7:1
Sky blue #0ea5e92.8:15.8:1
White #ffffff1:1, invisible16.1:1

If your site has its own dark mode switch

The SVG favicon follows the operating system, not the theme button on your site. To make the favicon follow your button, export a second set from the studio with your dark colours as the main colours, save it as icon-dark.svg, and swap it with a few lines of JavaScript when the theme changes.

const icon = document.querySelector('link[rel="icon"][type="image/svg+xml"]');
function setFaviconTheme(theme) {
  icon.href = theme === "dark" ? "/icon-dark.svg" : "/icon.svg";
}

Modern Icon Packages vs. ICO/PNG-Only Converters

Web standards have evolved. A single fixed-size PNG or ICO looks soft on high-density screens and can disappear on dark browser tabs.

FeatureWeblixToolsBasic ICO/PNG converter
Dynamic SVG Dark/Light Mode✓ Yes, with a CSS media queryFixed colours only
Apple iOS 18 Light/Dark/Tinted✓ Complete AppIcon CatalogSingle 180 px PNG
Where Your Image Is Processed✓ In your browser, nothing uploadedVaries; often uploaded to a server
Framework-Ready Snippets✓ HTML, Next.js App RouterGeneric HTML tags
PWA Web Manifest✓ site.webmanifest includedUsually not included

Frequently Asked Questions

How do browsers know which icon color to show?

Modern browsers evaluate embedded CSS media queries inside the SVG file to select the active fill color based on the user's OS preference.

Which browsers support dark mode favicons?

Browsers that render SVG favicons (Chrome, Edge, Firefox and recent Safari) evaluate the media query inside the file. Others fall back to your ICO or PNG, which uses a solid tile so it stays visible in both themes.

Can I use a transparent background?

Yes, but check the dark preview carefully. A transparent icon with dark artwork is exactly the case that disappears on dark tabs.

See all FAQs →