如何设置网页在 Safari 15 浏览器顶部状态栏的颜色
Safari 15 顶部状态栏的颜色这个功能是通过使用的 theme-color 这个 meta 标签来实现的。只要你在你的网页的头部加入下面这行代码即可:
<meta name="theme-color" content="#0a1992">
如果你的网页支持暗黑模式,希望两种模式设置的顶部状态的颜色不同,可以加入一下两行代码:
<meta name="theme-color" content="#1972F8" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#1C4D98" media="(prefers-color-scheme: dark)">
其中的颜色值根据自己的需求修改。

来自:https://blog.wpjam.com/m/how-to-set-theme-color-meta/
