function getFaviconThemeColor
getFaviconThemeColor(variant?: FaviconVariant): string

Get the theme color for a favicon variant

Useful for the <meta name="theme-color"> tag.

Examples

Example 1

const themeColor = getFaviconThemeColor('darkblue');
// '<meta name="theme-color" content="#2D2F63">'

Parameters

optional
variant: FaviconVariant = darkblue
  • The favicon variant

Return Type

string

Hex color string

Usage

import { getFaviconThemeColor } from ".";