Update favicon for light/dark mode

This commit is contained in:
Mike Solomon
2025-02-07 09:06:20 -08:00
parent ebde197bdc
commit db02839149
3 changed files with 20 additions and 1 deletions

View File

@@ -5,7 +5,6 @@ import type * as Preset from '@docusaurus/preset-classic';
const config: Config = { const config: Config = {
title: 'Moderne Docs', title: 'Moderne Docs',
tagline: 'Large-scale automated source code refactoring', tagline: 'Large-scale automated source code refactoring',
favicon: 'img/favicon.svg',
url: 'https://docs.moderne.io', url: 'https://docs.moderne.io',
baseUrl: '/', baseUrl: '/',
@@ -46,6 +45,26 @@ const config: Config = {
href: 'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap', href: 'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap',
}, },
}, },
{
tagName: 'link',
attributes: {
rel: 'icon',
href: '/img/favicon.ico',
type: 'image/x-icon',
sizes: '32x32',
media: '(prefers-color-scheme: light)',
},
},
{
tagName: 'link',
attributes: {
rel: 'icon',
href: '/img/favicon_dark.ico',
type: 'image/x-icon',
sizes: '32x32',
media: '(prefers-color-scheme: dark)',
},
},
], ],
presets: [ presets: [

BIN
static/img/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

BIN
static/img/favicon_dark.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB