🔥 There are 433 Hot Tips!!

Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.

Amazing how easy it is to build menu bar apps with HTML, CSS and JS in electron!

Pommade: for checking your hair! My first app ever, and it took just over an hour.

Code here: https://github.com/wesbos/pommade

6815622196

🔥 Use .valueAsNumber and .valueAsDate to get + set numbers and dates on your inputs.

Super handy in TypeScript because input.value always is a string

422561086
206874.2K

🔥 Here is how I use Caddy Server to get local HTTPS and a custom domain without port numbers.

Super simple!

1.6K21041645
964
5.2K41311286K

🔥 Experimental JavaScript Eyedropper API is in Chrome! Pretty nice async API.

Hoping it will return more than just a hex string when finished.

510571260
552231111K

🔥 Here is how I use Cloudflare workers to intercept and modify SASS requests to add my own custom endpoints, links and CSS

1318234
1K112219K

🔥 CSS object-fit: cover; is super handy for aligning images.

Works really well with CSS Grid image galleries too!

9131118311
781
4.2K1674767K

🔥 Use JavaScript’s new array.at():

.at(0) → first item

.at(-1) → last item

It also floors the index, which is handy for random items!

dogs.at(Math.random() * dogs.length)
85413117160
959374120K

Three CSS tips for working with inconsistently sized logos

120K5.2K5591.5M
19K2.8K2676.6K

File this under CSS you probably shouldn't write, but can:

p[style="text-align: center"] {
  text-align: left !important;
}
636503795
981262918K

These AI based text-to-CLI commands are starting to pop up in lots of tools. Warp, Fig, Github Co-pilot + more

What do you think? Helpful? Or dumb idea to run commands from smart sand?

133101425