Control the tab bar color in Safari 15
With Safari 15 now released, we can now incorporate our website’s theme color in the tab bar on iPadOS and macOS.
meta-tag, the site can specify what color the tab bar should taken while users visit and we can even use media queries to specify different colors for light and dark mode.
<meta name="theme-color" content="#ecd96f" media="(prefers-color-scheme: light)"> <meta name="theme-color" content="#0b3e05" media="(prefers-color-scheme: dark)">
Although new designs of Safari always appear divisive, it’s welcome from Apple to give us some control on how our sites influence the new appearance. Before I’ve used a small dark bar to separate my site from the browser’s tab bar, but with Safari 15 that’s not needed anymore.
To learn more about whats new in Safari 15, view the Design for Safari 15 session from WWDC.