Friday Frontend: The Power of Modern CSS
Tags: fridayfrontend, css, javascript, webdev
Published: 2019-01-18 16:24:49

---
title: Friday Frontend: The Power of Modern CSS
published: true
tags: friday-frontend, css, javascript, webdev
canonical_url: https://zendev.com/2019/01/18/power-of-modern-css.html
---

Hope you had a great week and are looking forward to a good weekend! This week’s articles fell into a couple of themes that I want to call out to you.

First, there’s a set of articles that highlight the power of modern CSS (and some of the SUPER EXCITING upcoming features).

Second, there’s a whole slew of interesting performance related articles down in the ‘other awesome’ section, both making cases about why you should care about web performance and giving you tools to have an impact.

Plus of course a smattering of other CSS, JavaScript, and web related topics including one of the most interesting articles I’ve seen yet on React Hooks. Enjoy!

Best,  
KBall from ZenDev

P.S. in case you didn’t see it and are interested, I published a post this week on my [top 5 frontend topics to learn in 2019](https://dev.to/kball/top-5-frontend-development-topics-to-learn-in-2019-4m0m).

#### CSS & SCSS

##### [In Defense of Utility-First CSS](https://frontstuff.io/in-defense-of-utility-first-css)

One of the most thorough and well-done explanations of the thinking behind “Utility-First” CSS (related to atomic CSS) that I’ve seen. Goes through many of the arguments against and addresses them one by one. Definitely opened my eyes a bit - I may now try this out on a project and see how it goes.

  

##### [Why we need CSS subgrid](https://dev.to/kenbellows/why-we-need-css-subgrid-53mh)

CSS Subgrid is the next part of CSS Grid that will be revolutionizing the way we do layouts. It’s currently [in the process of specification](https://www.w3.org/TR/css-grid-2/), and hopefully we’ll start seeing it in browsers in the next year or so. This post explains what it is, what the problems are that it’s solving, and how it will be used. Frankly, it got me EVEN MORE excited about CSS Grid than I already am. Front-end development is a wonderful place to be right now.

  

##### [When And How To Use CSS Multi-Column Layout](https://www.smashingmagazine.com/2019/01/css-multiple-column-layout-multicol/)

Often neglected in the amazingness that is today’s grid and flexbox layout mechanisms, CSS also has a multicolumn layout structure that is supported (at least mostly) across just about every browser. It’s relatively constrained - there’s a pretty small number of scenarios where it works well - but it’s another powerful tool in the toolchest.

  

##### [Stepping away from Sass](https://cathydutton.co.uk/posts/why-i-stopped-using-sass/)

A take on how some of the key value propositions from Sass have “transcended” into being available directly in CSS. Personally I use mixins enough that I’m still pretty excited about Sass, but I think the author has some really good points, and it’s another reminder of how powerful CSS has become.

  

##### [New horizons in CSS: Houdini and the Paint API](https://dev.to/bnevilleoneill/new-horizons-in-css-houdini-and-the-paint-api-5116-temp-slug-2173531)

On the topic of the power of CSS, this is a good look at upcoming CSS Houdini, one of the most exciting in-progress developments that will influence how powerful CSS will be.

  

#### JavaScript

##### [Using React Portals to Render Children Outside the DOM Hierarchy](https://css-tricks.com/using-react-portals-to-render-children-outside-the-dom-hierarchy/)

Portals aren’t something I’ve seen or thought about much before, but this is articles gives me a very clear idea of what they are and how they work. Lets you create conceptual children that are not necessarily DOM children of a component, keeping all the nice hierarchical benefits of child components while letting you break out of layout constraints. Modals are the canonical example, but there are many other scenarios I could think of for this.

  

##### [Getting Started with Web Accessibility in React](https://blog.usejournal.com/getting-started-with-web-accessibility-in-react-9e591fdb0d52)

Very nice look at how to implement an accessible web application using React. In-context information about the tools that React gives you that you can use to address a range of accessibility challenges. Love it!

  

##### [How I built an async form validation library in ~100 lines of code with React Hooks](https://medium.freecodecamp.org/how-i-built-an-async-form-validation-library-in-100-lines-of-code-with-react-hooks-81dbff6c4a04)

One of the value propositions of React’s new Hooks API is that hooks are composable. This is the first article I’ve seen that really starts to explore the power of that composition, building a very simple and powerful API for form validation. Very cool!

  

##### [TypeScript 2.8: Conditional Types](https://blog.mariusschulz.com/2019/01/09/typescript-2-8-conditional-types)

The latest version of TypeScript comes with a very powerful feature that lets you implement functions handling multiple types and give clues to the compiler about when you can infer one type over another. This is an incredibly powerful addition to the TypeScript toolchest.

  

##### [Real JavaScript, not too much, stage three and above](https://changelog.com/jsparty/58)

(Bias alert - I did this interview) A behind the scenes look at the way ECMA and the TC39 committee work to create the standards for the JavaScript language. If you’ve ever wondered how all that stuff works (or how to get involved), this is a great conversation to listen to, or if you prefer to read there is a transcript at the link above.

  

#### Other Awesome

##### [The Ethics of Web Performance](https://timkadlec.com/remembers/2019-01-09-the-ethics-of-performance/)

A discussion of the ethical implications of web performance, making the case that we have a moral obligation to tune the performance of our sites. Looks at exclusion, access, and also energy and waste. If we care about global warming, the energy costs of popular websites actually do start to matter, and tuning performance can make a real difference.

  

##### [Web Page Usability Matters](https://dev.to/addyosmani/web-page-usability-matters-3aok)

Another look at the implications of web performance, this one from the angle of how it impacts user behavior. Looks at the different dimensions of performance, how those correlate with user behaviors we might want to avoid (rage clicks) or encourage (conversions), and looks into some of the approaches you can use to optimize various performance dimensions.

  

##### [Front-End Performance Checklist 2019](https://www.smashingmagazine.com/2019/01/front-end-performance-checklist-2019-pdf-pages/)

Whether the above articles convinced you that paying close attention to performance is something you want to do, or front-end performance is already on your agenda, it can be helpful to have a checklist of points to consider and address. This is exactly that, helpfully downloadable as a PDF/Mobi/Etc, as well as online via HTML. For each point in the checklist there are links for context and guidance on how to do it. Excellent.

  

##### [Designing the Flexbox Inspector](https://hacks.mozilla.org/2019/01/designing-the-flexbox-inspector/)

Very interesting look behind the scenes at the thought process behind the new Flexbox inspector in Firefox. Neat to see how they thought about the unique properties of Flexbox and how to expose those and the decisions the browser is making around them to developers in dev tools.

  

##### [Why Does Everyone Love GraphQL?](https://blog.bitsrc.io/why-does-everyone-love-graphql-17de7f99f05a)

In my recent post about topics to learn in 2019, I put GraphQL on there, largely based on the rapid adoption growth and increasing number of projects & companies I hear about adopting it. This post takes a look at some of the ‘whys’ behind that rapid growth. What the benefits and features are that are leading GraphQL to become so popular so quickly.

  

#### Happy Friday!

That's it for this week's Friday Frontend newsletter. If you enjoyed this, you should probably [follow me on Twitter](https://twitter.com/kbal11) or join my mailing list. Sign up to get these newsletters straight to your inbox every Friday! Sign up here: [https://zendev.com/friday-frontend.html](https://zendev.com/friday-frontend.html)