mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
fix: correct font name from 'Geist Sans' to 'Geist' and add SVG favicon
Google Fonts registers the font as 'Geist', not 'Geist Sans'. The CSS font-family mismatch caused the font to never load, falling back to system sans-serif. Also adds an SVG favicon with the triangle icon (SVG favicons take priority over PNG/ICO in modern browsers).
This commit is contained in:
+3
-3
@@ -24,9 +24,9 @@ NEXT_PUBLIC_NETWORK_ICON=/logos/lux-logo-white.png
|
||||
NEXT_PUBLIC_NETWORK_ICON_DARK=/logos/lux-logo-white.png
|
||||
NEXT_PUBLIC_OG_IMAGE_URL=/logos/lux-logo-white.png
|
||||
|
||||
# Font Configuration (Geist Sans)
|
||||
NEXT_PUBLIC_FONT_FAMILY_HEADING={"name":"Geist Sans","url":"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap"}
|
||||
NEXT_PUBLIC_FONT_FAMILY_BODY={"name":"Geist Sans","url":"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap"}
|
||||
# Font Configuration (Geist from Google Fonts, registered as 'Geist' not 'Geist Sans')
|
||||
NEXT_PUBLIC_FONT_FAMILY_HEADING={"name":"Geist","url":"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap"}
|
||||
NEXT_PUBLIC_FONT_FAMILY_BODY={"name":"Geist","url":"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap"}
|
||||
|
||||
# Theme
|
||||
NEXT_PUBLIC_COLOR_THEME_DEFAULT=dark
|
||||
|
||||
@@ -60,6 +60,7 @@ class MyDocument extends Document {
|
||||
) }
|
||||
|
||||
{ /* FAVICON */ }
|
||||
<link rel="icon" type="image/svg+xml" href="/assets/favicon/favicon.svg"/>
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"/>
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png"/>
|
||||
<link rel="icon" type="image/png" sizes="48x48" href="/assets/favicon/favicon-48x48.png"/>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
||||
<path fill="#fff" d="m25 46.65 25-43.3H0z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 115 B |
@@ -4,8 +4,8 @@ import type { ExcludeUndefined } from 'types/utils';
|
||||
|
||||
import config from 'configs/app';
|
||||
|
||||
export const BODY_TYPEFACE = config.UI.fonts.body?.name ?? 'Geist Sans';
|
||||
export const HEADING_TYPEFACE = config.UI.fonts.heading?.name ?? 'Geist Sans';
|
||||
export const BODY_TYPEFACE = config.UI.fonts.body?.name ?? 'Geist';
|
||||
export const HEADING_TYPEFACE = config.UI.fonts.heading?.name ?? 'Geist';
|
||||
|
||||
export const fonts: ExcludeUndefined<ThemingConfig['tokens']>['fonts'] = {
|
||||
heading: { value: `${ HEADING_TYPEFACE }, sans-serif` },
|
||||
|
||||
Reference in New Issue
Block a user