Aman Singh (@amn_sngh) profile picture

If programming is hard, you're doing it wrong.

Sydney, New South Wales
Joined April 2016
Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)Photo by Aman Singh (@amn_sngh)
Aman Singh retweeted
:has() + container queries = the component-based logical styling we've always dreamed of 😍 In this demo: 🖼 If the card has an image: make the font smaller & at < 400px wide, stack it ✨ If no image: bigger font, no stacking codepen.io/una/pen/oNpoqGp ⚠️ Need flags on in Canary
21
156
15
1,063
Do not use aria-hidden on content that can be focusable (including tabindex=-1) But tbh, think really hard about using aria-hidden in general. Why are you specifically trying to hide visible content from AT users? Sometimes it is necessary. Many times it is incorrectly used.
3
10
1
30
🧪 Use CSS numeric factory functions instead of string concatenation to set style unit values. developer.mozilla.org/en-US/…
8
107
9
585
Personal take: a lot of things would suck less if design systems and JS frameworks weren’t so tightly coupled.
15
60
17
382
Aman Singh retweeted
The new React docs are out! Well-written and practical, complete with interactive examples, diagrams, and more. Plus, they teach Hooks first. Give them a read and provide feedback: beta.reactjs.org
38
458
55
2,522
Safari now supports `enterkeyhint`. 👏 I always like it when the enter key gives me more context. 👇 🔗 Spec: html.spec.whatwg.org/multipa… #devsheets
14
848
45
2,903
Aman Singh retweeted
#1: Know the 8 ways to handle state, and when to consider each.
7
45
4
410
Aman Singh retweeted
Create image carousel using 2 lines of CSS. 🚀📷 🖇 codepen.io/prathkum/pen/bGBO…
47
339
19
1,921
Clever! Love this #CSS tip 👇🏻
CSS trick to dynamically reduce the line-height as the font-size grows, large texts need condensed line-height
3
39
296
Aman Singh retweeted
The Big Gotcha With Custom Properties css-tricks.com/the-big-gotch…
4
21
3
95
Vim is probably the only text editor with the :smile command! :) :: masteringvim.com ::
3
13
65
This is a classic #UI smell: Whoever designed this *knew* the user expects to find a submit button there (right after the form), so they added a note pointing them to where the actual submit button is. Just add another submit button there, don’t point me elsewhere!
1
8
43
Aman Singh retweeted
I'm about to start learning JustJavaScript.com by @dan_abramov and @mappletons
1
1
Aman Singh retweeted
Mid-year browser updates: Compat Edition! ⚡️ Safari shipped gap property for flexbox 💥 Chromium fixed position: sticky table headers & tables as flex items ✨ aspect-ratio property now supported in Chrome, Edge & Firefox stable, Safari 15 beta More here web.dev/compat2021-midyear/
In case you missed it, I wrote about implementing the cut-out effect in CSS and SVG. 🔗 ishadeed.com/article/thinkin…
✍️ New Article: Thinking About The Cut-Out Effect: CSS or SVG? This article provides a deep-dive into CSS and SVG methods for implementing a cut-out effect. Exploring different ways to solve such a problem was very interesting. Happy reading! 🔗 ishadeed.com/article/thinkin…
5
36
🧵 Hiring managers: there’s no reason to force people with 10+ years experience to take coding tests. You can’t last 10 years if you can’t ship code. Here are some better approaches.
67
353
79
2,037
🔥 The `isolate` utility is super handy when you need to do some quirky z-index manipulation inside a component. Gives you a *portable* isolated stacking context, instead of forcing the component into a particular z-index layer like adding `z-0` to the parent would.
12
39
3
459
🥱 Tired: 24px ⚡️ Wired: 3vw ✨ Inspired: clamp(1.5rem, 3vw, 2.5rem) codepen.io/5t3ph/pen/KKmdZOK
9
50
3
397
Aman Singh retweeted
This is long awaited!
You’re unable to view this Post because this account owner limits who can view their Posts. Learn more
1
1
"Using Next.js and Vercel to instantly load a data-heavy website" by @seif_ghezala goes into the performance problems his team faced when building a site that showcases thousands of posts daily, and how they leveraged Next.js and Vercel to solve them tinloof.com/blog/using-next.…
5
17