CSS-only is still very powerful

It seems that these days, at times of React (and similar frameworks), CSS receives less attention. However, I remember a not-so-distant past, perhaps, five years ago, when using CSS for simple UI elements was the desired approach. True, it has its limitations. But I don’t think we can discard CSS completely and rely on JavaScript driving even the most trivial elements of UI. By applying (or at least trying to apply) the CSS-first approach, we can achieve some great results without necessarily relying on JavaScript. Such UI elements as tabs (one and two), carousels, navigation menus (one and two), and a lot more - can be built with CSS only. Check out CSSUI for some inspiration. Moreover, because this is all just CSS, responsiveness is “built-in”, and developers and designers can get creative and accommodate different scenarios. ...

March 1, 2024 · 1 min