blog.mayank.coMy CSS WishlistMaybe a few weeks late to the party, but better late than never. Today I will talk about the things I wish CSS had. CSS has been getting so many awesome features lately, and some of the items on this list are already being worked on, while others sho...Feb 19, 2023·4 min read
blog.mayank.coIs CSS-in-JS actually bad?I have a confession: I used to not like CSS very much in my first few years of being a developer. I would dread opening up CSS files. I would cuss at z-index for causing me so many headaches. I would wish for someone else to write the CSS for me. I w...Jan 22, 2023·9 min read
blog.mayank.coUsing text symbols in pseudo-elements accessiblyGenerated content (the ::before and ::after pseudo-elements) is quite handy for styling elements without disrupting markup. We can use it for creating things like custom checkboxes without any extra elements. https://codepen.io/MrRoboto/pen/OJxaGyb ...Jan 6, 2023·3 min read
blog.mayank.coIs <dialog> enough?The native <dialog> element is neat. It has the correct semantics, it appears in the top layer, it keeps track of focus, and it gives you mostly intuitive ways to open/close it. So if you want a modal dialog, you can just drop a wee dialog.showModal(...Jan 2, 2023·5 min read
blog.mayank.coAstro just makes senseWith Astro being days away from a stable 1.0 release, I thought I'd talk about why it's so exciting. I've been playing with Astro for a few months now, using it for every opportunity I get. If you've never heard of Astro, it's a new metaframework bui...Aug 5, 2022·5 min read