Friday Frontend: Svelte is Making Waves Edition
Some other super fun articles, I love the 25 days of CSS animations, and RxDB looks like a fascinating possibility. There’s also some great looks at accessibility, both calling out challenges in development and walking through how to make a good accessible color scheme.
Have a great weekend! Enjoy!
KBall from ZenDev
CSS & SCSS
Semantic HTML is great! Embracing semantics is wonderful! And what could be more semantic than using a
hidden attribute so you could do things like
<div hidden>Some hidden stuff!</div>... and yet. It’s extremely fragile, as outlined by this article, along with some suggestions for how to work around that fragility.
This article has the whole package. Compelling story, useful tips, lots of examples you can learn from, and last but not least EYE CANDY. Some very very neat animations!
Great, digestible article on how to create accessible drop caps. The solution they came to is similar to a longer-form article I linked to in June, so if you want to go deeper into the challenges of setting up drop caps check that one out, but if you want a simple good answer without much fluff, this one is great.
This is a delightfully whimsical and meandering look at CSS counters. I had no idea you could use them to generate different forms of counter styles (though in retrospect I shouldn’t be surprised, how else would you internationalize this?), and I love the entertainment value of using CSS to implement FizzBuzz.
Tables are a super useful tooling for displaying data, but they can have challenges on mobile. Those challenges can be overcome though, with the clever use of CSS! :) Take a look in this article.
A look at how Svelte approaches CSS, and how it provides a nice middle ground between CSS-in-JS and vanilla CSS. It reminds me a lot of how Vue handles styles, and I like it. :D
I’m minorly obsessed with JAMstack at the moment, so it’s useful to see articles like this one spelling out what a lot of the options are. Is it a complete survey of everything available? No, and it doesn’t set out to be. But is it a good starter? Absolutely.
Nice look at how to use the IntersectionObserver API within a React component to keep track of what is and is not visible.
I’ve been greatly enjoying using Svelte recently, and highly recommend it as a new framework to learn. Svelte is taking the trend towards pre-compilation and pre-rendering to the extreme, with a 0-runtime framework that lets you have the convenience of a Vue or React but without shipping a runtime, because it all compiles down to vanilla JS.
A rundown looking at basic ‘todo’ applications side by side, built with Svelte and React. Does a solid job of showing the tradeoffs involved.
Fascinating in-depth look at what it takes to design a color system that is accessible “by default” and still looks good. This is a HARD topic, and I love the way the authors go deep on multiple factors looking at visual weight and clear differentiation, and how those interact with accessibility.
A look behind the covers of what the Web Incubator Community Group is working on to improve the web. Super interesting to see the data of complaints for form controls… I think I’ve hit almost all of these issues over time. :P
Super interesting new database designed to let you subscribe to changes. If you’re creating reactive applications using a framework like Vue, React, Angular, or Svelte, this has the potential to let you hook into your database in a similar way to how you’d subscribe to changes in an in-client store like Redux or Vuex.
That's it for this week's Friday Frontend newsletter. If you enjoyed this, be sure to sign up to get these newsletters straight to your inbox every Friday!