Generated package

Eleventy (11ty) favicon package. Ready to install.

Download the correct Eleventy (11ty) favicon package, place every file in the right location, and follow the exact installation steps for this stack.

Stack-specific filesExact snippet locationsCopy-ready guide
Static Site Generators9 files

Eleventy (11ty)

For Eleventy sites. Copy favicon files to the final site root using passthrough copy.

ZIP: favico-eleventy-modern-package.zip

Folder: favico-eleventy-modern-favicon/

  1. 1
    Download your favicon package.
    Download favico-eleventy-modern-package.zip for Eleventy (11ty).
  2. 2
    Extract this package in your project.
    Extract it in your project root. The package contains:
    Package structure
    favico-eleventy-modern-favicon/
    ├── public/favicon.ico
    ├── public/favicon.svg
    ├── public/favicon-dark.svg
    ├── public/favicon-96x96.png
    ├── public/favicon-dark-96x96.png
    ├── public/apple-touch-icon.png
    ├── public/site.webmanifest
    ├── public/web-app-manifest-192x192.png
    └── public/web-app-manifest-512x512.png
  3. 3
    Copy the favicon files to the correct location.
    Copy the generated files to public/.
    Generated fileCopy toStatusPurpose
    favicon.icopublic/favicon.icoOptionalOptional classic browser fallback file. Keep it when useful, but do not link it by default in modern light/dark favicon snippets.
    favicon.svgpublic/favicon.svgRequiredLight-mode SVG favicon for modern browsers.
    favicon-dark.svgpublic/favicon-dark.svgOptionalDark-mode SVG favicon used with prefers-color-scheme: dark.
    favicon-96x96.pngpublic/favicon-96x96.pngRequiredLight-mode PNG fallback favicon.
    favicon-dark-96x96.pngpublic/favicon-dark-96x96.pngOptionalDark-mode PNG fallback favicon.
    apple-touch-icon.pngpublic/apple-touch-icon.pngRequirediPhone/iPad home screen icon.
    site.webmanifestpublic/site.webmanifestRequiredWeb app manifest containing app metadata and PWA icon references.
    web-app-manifest-192x192.pngpublic/web-app-manifest-192x192.pngRequired192×192 Android/PWA icon referenced by the web app manifest.
    web-app-manifest-512x512.pngpublic/web-app-manifest-512x512.pngRequired512×512 Android/PWA icon referenced by the web app manifest.
  4. 4
    Add the config snippet in .eleventy.js.
    .eleventy.js
    module.exports = function (eleventyConfig) {
      eleventyConfig.addPassthroughCopy({
        public: ".",
      });
    
      return {
        dir: {
          input: "src",
          output: "_site",
        },
      };
    };
  5. 5
    Insert the favicon/head snippet in src/index.html before </head>.
    src/index.html before </head>
    <meta name="color-scheme" content="light dark">
    
    <link rel="icon" type="image/svg+xml" href="/favicon.svg?v=10" media="(prefers-color-scheme: light)">
    <link rel="icon" type="image/svg+xml" href="/favicon-dark.svg?v=10" media="(prefers-color-scheme: dark)">
    
    <link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png?v=10" media="(prefers-color-scheme: light)">
    <link rel="icon" type="image/png" sizes="96x96" href="/favicon-dark-96x96.png?v=10" media="(prefers-color-scheme: dark)">
    
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=10">
    <link rel="manifest" href="/site.webmanifest?v=10">
  6. 6
    Why this setup works.
    • The tested .eleventy.js config copies public/ directly into the _site root.
    • public/favicon.svg becomes _site/favicon.svg and is served as /favicon.svg.
    • The favicon link snippet belongs in src/index.html, not in .eleventy.js.
  7. Support Favico Studio

    Satisfied with the result?

    If Favico Studio helped you create your favicon faster, you can support the creator and help keep this tool free, fast, and available for everyone.

    Support the creator
  8. 7
    Start your app and verify the favicon URLs.
    Run command
    npx @11ty/eleventy --serve
    Verify URLs
    http://localhost:8080/favicon.svg
    http://localhost:8080/favicon-dark.svg
    http://localhost:8080/site.webmanifest
    http://localhost:8080/web-app-manifest-192x192.png
    http://localhost:8080/web-app-manifest-512x512.png
  9. 8
    Common mistakes to avoid.

    Using /public/ in the browser path

    Wrong: /public/favicon.svg

    Correct: /favicon.svg

    Eleventy copies public/ contents to the output root.

    Putting HTML links in .eleventy.js

    Wrong: Paste <link> tags in .eleventy.js

    Correct: Paste <link> tags in src/index.html before </head>

    .eleventy.js is configuration; src/index.html is the rendered HTML head.

  10. 9
    Final checklist.
    Correct stack selected.
    Correct package downloaded and extracted.
    Files copied to the exact folder shown in this guide.
    Config snippet added only when this stack requires it.
    Head/favicon snippet added to the exact head location shown in this guide.
    No /public/ or /static/ URL is used unless the framework explicitly requires it.
    favicon.ico is kept as fallback only, not actively linked as the main favicon.
    favicon.svg loads directly.
    favicon-dark.svg loads directly.
    site.webmanifest loads directly.
    Manifest icon PNG files load directly.
    Browser cache cleared and Favico Studio checker passes.