Skip to content

Ngx meta.standard.themecolor

Home > @davidlj95/ngx-meta > Standard > themeColor

Standard.themeColor property

Sets one or more <meta name='theme-color'> HTML elements

If set, colors must specify a valid CSS color.

A media attribute can be set to specify a different color depending on the context based on a CSS media query. For instance, to provide one color for dark mode and another for light mode.

You can use a string value to set one theme color as value. No media attribute will be used.

You can also specify one or more colors & media queries combinations by providing an array of objects specifying the color and (optionally) a media query

Signature:

readonly themeColor?: StandardThemeColorMetadata | null;