Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo!

There’s a 33-minute video (and resources) over on apple.com covering the upcoming Safari changes we saw in the WWDC keynote this year in much more detail. Look who’s got a little cameo in there:

Perhaps the most noticeable thing there …


The post Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo! appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier

There’s a 33-minute video (and resources) over on apple.com covering the upcoming Safari changes we saw in the WWDC keynote this year in much more detail. Look who’s got a little cameo in there:

Perhaps the most noticeable thing there in Safari 15 on iOS is URL bar at the bottom! Dave was speculating in our little Discord watch party that this probably fixes the weird issues with 100vh stuff on iOS. But I really just don’t know, we’ll have to see when it comes out and we can play with it. I’d guess the expectation is that, in order for us to do our own fixed-bottom-UI stuff, we’d be doing:

.bottom-nav { 
  position: fixed; /* maybe sticky is better if part of overall page layout? */
  bottom: 100vh; /* fallback? */
  bottom: calc(100vh - env(safe-area-inset-bottom)); /* new thing */
}

On desktop, the most noticeable visual feature is probably the theme-color meta tags.

This isn’t even a brand new Apple-only thing. This is the same <meta> tag that Chrome’s Android app has used since 2014, so you might already be sporting it on your own site. The addition is that it supports media queries.

<meta name="theme-color" 
      content="#ecd96f" 
      media="(prefers-color-scheme: light)">
<meta name="theme-color" 
      content="#0b3e05" 
      media="(prefers-color-scheme: dark)">

It’s great to see Safari get aspect-ratio and the new fancy color systems like lab() and lch() as well. Top-level await in JavaScript is great as it makes patterns like conditional imports easier.

I don’t think all this would satisfy Alex. We didn’t exactly get alternative browser engines on iOS or significant PWA enhancements (both of which would be really great to see). But I applaud it all—it’s good stuff. While I do think Google generally takes privacy more seriously than what general internet chatter would have to believe, it’s notable to compare each company’s newly-released features. If you’ll forgive a bit of cherry-picking, Google is working on FLoC, a technology very specifically designed to help targeted advertising. Apple is working on Private Relay, a technology very specifically to making web browsing untrackable.


The post Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo! appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier


Print Share Comment Cite Upload Translate Updates
APA

Chris Coyier | Sciencx (2021-06-11T21:38:48+00:00) Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo!. Retrieved from https://www.scien.cx/2021/06/11/safari-15-new-ui-theme-colors-and-a-css-tricks-cameo/

MLA
" » Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo!." Chris Coyier | Sciencx - Friday June 11, 2021, https://www.scien.cx/2021/06/11/safari-15-new-ui-theme-colors-and-a-css-tricks-cameo/
HARVARD
Chris Coyier | Sciencx Friday June 11, 2021 » Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo!., viewed ,<https://www.scien.cx/2021/06/11/safari-15-new-ui-theme-colors-and-a-css-tricks-cameo/>
VANCOUVER
Chris Coyier | Sciencx - » Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo!. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/11/safari-15-new-ui-theme-colors-and-a-css-tricks-cameo/
CHICAGO
" » Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo!." Chris Coyier | Sciencx - Accessed . https://www.scien.cx/2021/06/11/safari-15-new-ui-theme-colors-and-a-css-tricks-cameo/
IEEE
" » Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo!." Chris Coyier | Sciencx [Online]. Available: https://www.scien.cx/2021/06/11/safari-15-new-ui-theme-colors-and-a-css-tricks-cameo/. [Accessed: ]
rf:citation
» Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo! | Chris Coyier | Sciencx | https://www.scien.cx/2021/06/11/safari-15-new-ui-theme-colors-and-a-css-tricks-cameo/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.