Skip to content
Theme UI
GitHub

Theme Color Meta Tag

// example Head component
import React from 'react'
import { Helmet } from 'react-helmet'
import { useThemeUI } from 'theme-ui'
export default props => {
const { theme } = useThemeUI()
return (
<Helmet>
<meta name='theme-color' content={theme.colors.background} />
</Helmet>
)
}
Edit the page on GitHub
Previous:
Syntax Highlighting
Next:
Color Mode Toggles