<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-an-adaptive-favicon-mfgyb5bbg" -->

---
title: Building an adaptive favicon | daily.dev
description: Learn how to build an adaptive favicon using SVG, which allows for scalability, small file size, and embedded styling for light and dark themes.
canonical: https://daily.dev/posts/building-an-adaptive-favicon-mfgyb5bbg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building an adaptive favicon | daily.dev
og:description: Learn how to build an adaptive favicon using SVG, which allows for scalability, small file size, and embedded styling for light and dark themes.
og:url: https://daily.dev/posts/building-an-adaptive-favicon-mfgyb5bbg
og:image: https://api.daily.dev/og/posts/MFgyb5bbG.png
og:image:alt: Building an adaptive favicon
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building an adaptive favicon

**[Community Picks](https://daily.dev/sources/community)** · 5 min read · 213 upvotes · 9 comments

## Summary

Learn how to build an adaptive favicon using SVG, which allows for scalability, small file size, and embedded styling for light and dark themes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://web.dev/articles/building/an-adaptive-favicon>

## Community discussion

Top comments from developers on daily.dev.

**@shivamkush27** · 2 upvotes

> Well curated post. Thanks for the info. I'll surely use this in next project.

**@ghost** · 1 upvotes

> I always wondered how this works

**@incognitadev** · 1 upvotes

> As always, safari makes we use a fallback once they dont supports it

**@rojohq** · 1 upvotes

> Excellent insights. i've always been curious to learn how others aproach this matter.

**@erennlleblebici** · 1 upvotes

> 👏👏👏

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#html](https://daily.dev/tags/html), [#svg](https://daily.dev/tags/svg)

[View this post on daily.dev](https://daily.dev/posts/building-an-adaptive-favicon-mfgyb5bbg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building an adaptive favicon","url":"https://daily.dev/posts/building-an-adaptive-favicon-mfgyb5bbg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-an-adaptive-favicon-mfgyb5bbg"},"datePublished":"2024-03-16T17:26:04.075Z","dateModified":"2024-05-09T08:39:06.345Z","description":"Learn how to build an adaptive favicon using SVG, which allows for scalability, small file size, and embedded styling for light and dark themes.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/56574ccda6bd53864d24740e89afad36?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/56574ccda6bd53864d24740e89afad36?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":9,"discussionUrl":"https://daily.dev/posts/building-an-adaptive-favicon-mfgyb5bbg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":213},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":9}],"keywords":"webdev,html,svg","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"Building an adaptive favicon"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/building-an-adaptive-favicon-mfgyb5bbg","comment":[{"@type":"Comment","text":"Well curated post. Thanks for the info. I’ll surely use this in next project.","datePublished":"2024-03-18T13:13:02.491Z","url":"https://daily.dev/posts/MFgyb5bbG#c-cI7LYSIO4","author":{"@type":"Person","name":"Shivam","url":"https://daily.dev/shivamkush27","image":"https://media.daily.dev/image/upload/s--8eMmxWJC--/f_auto/v1720605463/avatars/avatar_KAh7Uu3jWpkOAHVFDftdO"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"I always wondered how this works","datePublished":"2024-03-17T15:45:10.685Z","url":"https://daily.dev/posts/MFgyb5bbG#c-vlssPMoAW","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"As always, safari makes we use a fallback once they dont supports it","datePublished":"2024-03-18T17:45:38.687Z","url":"https://daily.dev/posts/MFgyb5bbG#c-KRZUBCaOc","author":{"@type":"Person","name":"Luis Sousa","url":"https://daily.dev/incognitadev","image":"https://avatars1.githubusercontent.com/u/48053804?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Excellent insights. i’ve always been curious to learn how others aproach this matter.","datePublished":"2024-03-18T13:59:05.165Z","url":"https://daily.dev/posts/MFgyb5bbG#c-GVCushci4","author":{"@type":"Person","name":"Roger Morales","url":"https://daily.dev/rojohq","image":"https://avatars.githubusercontent.com/u/74221578?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"👏👏👏","datePublished":"2024-03-19T06:14:10.887Z","url":"https://daily.dev/posts/MFgyb5bbG#c-BLVL6POmW","author":{"@type":"Person","name":"Eren Ünlüleblebici","url":"https://daily.dev/erennlleblebici","image":"https://lh3.googleusercontent.com/a/AAcHTtcFOaD94x4CyHzDkzXzLpyxytFf94kxCUYccUbmI6WyO_sC=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

