getFaviconPaths(variant?: FaviconVariant,baseUrl?: string,): FaviconPaths
Get the file paths for a favicon variant
Example 1
Example 1
// For local development const paths = getFaviconPaths('darkblue', '/assets/favicons'); // For CDN/GitHub raw URL const paths = getFaviconPaths('darkblue', 'https://raw.githubusercontent.com/eSolia/marquis/v0.1.0/assets/favicons' ); // Use in HTML const link = `<link rel="icon" href="${paths.favicon32}">`;
optional
variant: FaviconVariant = darkblue
- The color variant to use
Object containing paths to all favicon files