The new responsive design

Chrome for Developers · Beginner ·📰 AI News & Updates ·4y ago

Key Takeaways

The video discusses the latest updates on UI styling, DevTools, and the evolution of responsive design, covering topics such as container queries, CSS features, and dark mode, with tools like Chromium, HTML, CSS, and DevTools.

Full Transcript

[Music] a few years ago a group of engineers set about rethinking chromium support for html css and graphics which led to an effort called rendering ng an ambitious refactoring of chromium's rendering engine this work has now largely landed and it's enabling a major evolution in web user experience design to tell us more i'll hand things over to youna thank you everything we've talked about today comes back to the user experience privacy measurement next gen web capabilities they all work together to create better experiences that align with our vision for the web while giving developers the tools and capabilities they need to build them so today i'm excited to share a ton of updates and changes coming down the pipeline for ui styling and devtools first let's talk about responsive design and how it's evolving responsive design is no longer just about making sure an interface looks good on both desktop mobile devices developers now have the tools to really create customized user experiences based on personalized user preferences in a component driven architecture model we're calling this the new responsive and it includes being responsive to the user with user preference queries and modalities like dark mode and prefers reduced motion being responsive to new form factors like foldable devices which allow for multi-display functionality and being responsive to other components on the page with container queries this is a feature that's been highly requested by developers we've been working with the css working group to spec this feature and have been able to unlock the implementation through recent changes in the chrome rendering engine the new container query spec lets you access a parent element's width to make styling decisions for its children you can even nest container queries and create named queries for easier access and organization let's take a look at an example here i have a responsive add to cart button that i can place anywhere in the container then when i put it inside of this product card which is also a container i can query the product card itself to restyle the already responsive button and shift it from being center aligned to left aligned this might look simple on the surface but it's something that wasn't previously possible without a lot of heavy scripting which would significantly slow down your page we're working with the open source community to provide a polyfill for container queries as we build the feature into the platform using container queries makes your interfaces much more flexible components own all of their individual responsive styles right where they are and don't rely on the global viewport to adjust styles this is a huge paradigm shift for component-based development and we're excited to see how you make the most of this new feature if you want to try it out container queries are now available for testing behind a flag in chrome canary and because of this big shift we've been working hard to support you by providing dev tools that allow you to debug and style with container queries as the feature launches here you can see that devtools is pointing out where the container for the child is and highlighting the styles that are being applied by it speaking of responsive dev tools we released several new tools this year for better layout debugging layout tooling for grid now allows you to add names to specific grid lines and also shows you the size of your grid areas i also love the dynamic new tools for flexbox and grid these let you actually see what different property values do on the page and give you the ability to easily change layout rules with the click of a button these new dev tools are designed to make css layout easier to visualize and understand which frees up more time to build new features for your users and less time looking up the differences between justify and align another way we're helping simplify the process is by launching web.dev patterns a collection of off-the-shelf ui patterns you can use in your web projects to help you quickly get started with building the base of your ui we've added layout patterns for everything from large full page spreads and card sets to smaller layouts that can live within those larger layouts such as the cards themselves all of these patterns use css grid flexbox or container queries to showcase how quickly you can pick up these tools and build interfaces from the ground up we're also partnering with jeremy keith of clear left to launch learn responsive design on web.dev this is a free online course with everything you need to know about designing for the new responsive web of today you'll learn about theming art direction logical properties for internationalization utilizing preference queries and so much more today we're launching the first few course modules at web.dev learn slash design with more to come in the following weeks we're also updating our learn css course with six new modules learn css is another free evergreen course and reference on web.dev where you can level up your css knowledge and test your skills we launched the first 24 modules at google i o this year and now we're introducing lists backgrounds transitions text and typography media queries and more be sure to check out those new modules and dive in whenever you're ready we're also working on rolling out some new features in css in addition to container queries our team has been thinking about how to introduce scope styles and cascade layers they're not ready just yet and we look forward to working with you and the web community over the next few months to push them forward we do have a particularly fun new api that's ready for exploration and that's scroll timeline previously you could create css animations that had a time basis and moved over a length of time scroll timeline lets you set scroll based offsets and timings for animations instead that means you can set an element to animate as you scroll down or across a page pretty neat you can explore scroll timeline using the experimental web platform features flag in canary we have another exciting addition that recently reached its first public working draft and that's css nesting nesting is a syntactic sugar that brings one of the most popular features of css preprocessors to the web stacking your styles for a cleaner developer experience while the nesting spec will let you keep your styles tidier and more encapsulated we recommend that you don't go more than three layers deep to ensure the best performance we've also launched the size adjust property for typography this is particularly useful for preventing cumulative layout shift for core web vitals as you can adjust the default font to better match your web font this causes less jank as the web font loads in and last but not least accent color just landed in chromium and firefox stable accent color is a one-line css superpower that gives your form controls like checkboxes and radios a theme color to match your brand we get a lot of feature requests from developers and users alike but one is a clear favorite especially for those of you who love to browse the web at night dark mode is a popular feature we're really excited to build on and not just because you asked for it but because its impact extends beyond the user interface dark themes have shown measurable battery life savings over their light themed counterparts on oled devices in our lab study with a single pixel 6 device we found an indication that at 60 brightness dark theme used 11 percent less power than light themes for led screens and it's a feature that users love too when twitter released the first preview version of their new twitter progressive web app everyone said wow it's new and fast but where's dark mode so they surveyed users on what they needed to add and user said three things dark mode an emoji picker and more dark mode so it's kind of a big deal to a lot of very vocal users to create a dark theme we recommend using css custom properties and the prefers color scheme media feature which is supported in all evergreen browsers this lets you swap theme colors in and out based on what your users prefer a core part of our new responsive framework and set of goals if you need help getting dark mode set up the way you like it there's some excellent new guidance from the material design team by their research on building beautiful dark themes this includes how to adjust depth by using lightness instead of shadows how to adjust color vibrancy to reduce visual vibration and more but to make it even easier for your team chrome is working on a machine learning aided auto dark algorithm feature this feature will include auto darkened websites along with a few affordances to opt out of the auto dark functionality on a more granular level we're still in the early stages of future developments and we need your help to get it right to try it out now you can open the devtools rendering panel in chrome canary and enable auto dark mode emulation check out the link to learn more and to give us your thoughts now i'll pass back to ben one last time thanks yuna you know we've seen a lot of change in the web over the past year and we're still more optimistic than ever about the future of the platform across the areas we just talked about and more in the years ahead you can expect to see us continue to push hard to make the web more private and powerful and to provide developers with better tools and guidance to create top quality experiences for people all over the world [Music] you

Original Description

Join us as we discuss the latest updates on UI styling, DevTools, and the evolution of responsive design. Resources: The new responsive: Web design in a component-driven world → https://goo.gle/WebDevNewResponsive Learn responsive design → https://goo.gle/WebDevLearnDesign Learn CSS → https://goo.gle/WebDevLearnCSS CSS accent-color → https://goo.gle/WebDevAccentColor CSS size-adjust for @font-face → https://goo.gle/WebDevSizeAdjust Building a color scheme → https://goo.gle/WebDevColorScheme Watch more: Watch all Chrome Developer Summit videos → https://goo.gle/cds21-allsessions Subscribe to Google Chrome Developers → https://goo.gle/ChromeDevs #ChromeDevSummit
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Chrome for Developers · Chrome for Developers · 0 of 60

← Previous Next →
1 Polymer Performance Patterns (The Polymer Summit 2015)
Polymer Performance Patterns (The Polymer Summit 2015)
Chrome for Developers
2 Polymer Power Tools (The Polymer Summit 2015)
Polymer Power Tools (The Polymer Summit 2015)
Chrome for Developers
3 Chrome Dev Summit 2014 – Chrome Case Studies
Chrome Dev Summit 2014 – Chrome Case Studies
Chrome for Developers
4 Web Directions Code 2015 round up
Web Directions Code 2015 round up
Chrome for Developers
5 Maintainable Code - HTTP203
Maintainable Code - HTTP203
Chrome for Developers
6 iron-ajax… wat?! -- Polycasts #26
iron-ajax… wat?! -- Polycasts #26
Chrome for Developers
7 The Guardian - Supercharged
The Guardian - Supercharged
Chrome for Developers
8 ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
Chrome for Developers
9 #AskPolymer: Rob answers all the questions ever -- Polycasts #27
#AskPolymer: Rob answers all the questions ever -- Polycasts #27
Chrome for Developers
10 The Future of JavaScript - HTTP203
The Future of JavaScript - HTTP203
Chrome for Developers
11 Data Binding 101 -- Polycasts #28
Data Binding 101 -- Polycasts #28
Chrome for Developers
12 The Guardian part 2 - Supercharged
The Guardian part 2 - Supercharged
Chrome for Developers
13 The Future of Web Audio: with Chris Wilson and Chris Lowis
The Future of Web Audio: with Chris Wilson and Chris Lowis
Chrome for Developers
14 Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome for Developers
15 Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Chrome for Developers
16 #AskPolymer: How do you make the show? -- Polycasts #29
#AskPolymer: How do you make the show? -- Polycasts #29
Chrome for Developers
17 Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Chrome for Developers
18 Binding to Objects -- Polycasts #30
Binding to Objects -- Polycasts #30
Chrome for Developers
19 Player FM - Supercharged
Player FM - Supercharged
Chrome for Developers
20 Where’s the Designer? #AskPolymer -- Polycasts #31
Where’s the Designer? #AskPolymer -- Polycasts #31
Chrome for Developers
21 Jake Beats Wikipedia - HTTP203
Jake Beats Wikipedia - HTTP203
Chrome for Developers
22 Supercharged Observers! -- Polycasts #32
Supercharged Observers! -- Polycasts #32
Chrome for Developers
23 Jai's Web blog - Supercharged
Jai's Web blog - Supercharged
Chrome for Developers
24 Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Chrome for Developers
25 What about internationalization? #AskPolymer -- Polycasts #33
What about internationalization? #AskPolymer -- Polycasts #33
Chrome for Developers
26 Developing for Billions (Chrome Dev Summit 2015)
Developing for Billions (Chrome Dev Summit 2015)
Chrome for Developers
27 Google+ Performance Improvement Comparison
Google+ Performance Improvement Comparison
Chrome for Developers
28 Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Chrome for Developers
29 Progressive Web Apps (Chrome Dev Summit 2015)
Progressive Web Apps (Chrome Dev Summit 2015)
Chrome for Developers
30 Instant Loading with Service Workers (Chrome Dev Summit 2015)
Instant Loading with Service Workers (Chrome Dev Summit 2015)
Chrome for Developers
31 Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Chrome for Developers
32 Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Chrome for Developers
33 Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Chrome for Developers
34 Polymer - State of the Union (Chrome Dev Summit 2015)
Polymer - State of the Union (Chrome Dev Summit 2015)
Chrome for Developers
35 Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Chrome for Developers
36 Introduction to RAIL (Chrome Dev Summit 2015)
Introduction to RAIL (Chrome Dev Summit 2015)
Chrome for Developers
37 DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
Chrome for Developers
38 RAIL in the real world (Chrome Dev Summit 2015)
RAIL in the real world (Chrome Dev Summit 2015)
Chrome for Developers
39 #ChromeDevSummit talks are up - W00T! -- Polycast #34
#ChromeDevSummit talks are up - W00T! -- Polycast #34
Chrome for Developers
40 V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
Chrome for Developers
41 Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Chrome for Developers
42 Owning your performance: RAIL (Chrome Dev Summit 2015)
Owning your performance: RAIL (Chrome Dev Summit 2015)
Chrome for Developers
43 HTTP/2 101 (Chrome Dev Summit 2015)
HTTP/2 101 (Chrome Dev Summit 2015)
Chrome for Developers
44 Leadership Panel (Chrome Dev Summit 2015)
Leadership Panel (Chrome Dev Summit 2015)
Chrome for Developers
45 Build Processes, Totally Tooling Tips (S2, Ep 5)
Build Processes, Totally Tooling Tips (S2, Ep 5)
Chrome for Developers
46 Accessibility (Chrome Dev Summit 2015)
Accessibility (Chrome Dev Summit 2015)
Chrome for Developers
47 Binding to Arrays -- Polycasts #35
Binding to Arrays -- Polycasts #35
Chrome for Developers
48 HTTP2 - HTTP203
HTTP2 - HTTP203
Chrome for Developers
49 Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome for Developers
50 Call For Submissions - Supercharged
Call For Submissions - Supercharged
Chrome for Developers
51 Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Chrome for Developers
52 Testing AJAX with Web Component Tester -- Polycasts #37
Testing AJAX with Web Component Tester -- Polycasts #37
Chrome for Developers
53 Slack: Extended Xmas Special - Supercharged
Slack: Extended Xmas Special - Supercharged
Chrome for Developers
54 Browser testing with Travis & Sauce Labs -- Polycasts #38
Browser testing with Travis & Sauce Labs -- Polycasts #38
Chrome for Developers
55 Optimize for production with Vulcanize -- Polycasts #39
Optimize for production with Vulcanize -- Polycasts #39
Chrome for Developers
56 Highlights from Chrome Dev Summit 2015
Highlights from Chrome Dev Summit 2015
Chrome for Developers
57 Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome for Developers
58 Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Chrome for Developers
59 How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
Chrome for Developers
60 Colors – DevTools Tonight #0 (Pilot)
Colors – DevTools Tonight #0 (Pilot)
Chrome for Developers

This video teaches the latest updates on UI styling, DevTools, and responsive design, and how to apply these concepts to create better user experiences. It covers topics such as container queries, CSS features, and dark mode, and provides resources for further learning. By watching this video, viewers can learn how to design responsive UI, use container queries, and create customized user experiences.

Key Takeaways
  1. Learn about container queries and how to use them
  2. Understand the new features in CSS, such as scope styles and cascade layers
  3. Use DevTools to support container queries and layout tooling
  4. Apply CSS custom properties and the prefers color scheme media feature to create a dark theme
  5. Explore Web.Dev patterns for web projects
💡 Container queries are a powerful tool for creating customized user experiences, and can be used in combination with other CSS features to create responsive and personalized interfaces.

Related Reads

📰
Microsoft is reportedly training salespeople to talk down OpenAI and Anthropic
Microsoft trains salespeople to promote its AI models over OpenAI and Anthropic, focusing on efficiency and cost-effectiveness
TechCrunch AI
📰
73% of tech job listings require AI skills now: 3 ways to show off yours
73% of tech job listings require AI skills, learn how to showcase yours to potential employers
ZDNet
📰
A Call For AI Clarity, From Leading Thinkers And Doers
Leading thinkers and doers call for AI clarity, emphasizing the need for a deeper understanding of AI's economic impact
Forbes Innovation
📰
Hack suggests AI music generator Suno scraped YouTube for training data
AI music generator Suno allegedly scraped YouTube for training data, highlighting AI data sourcing concerns
TechCrunch AI
Up next
OpenAI vs Anthropic
Matthew Berman
Watch →