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.
The Async Context / AsyncLocalStorage API is pretty neat - you can create a store and acesss it anywhere down the callstack context without having to pass around data.
It's kind of like closure scope, but but for the async context of your function calls.
2733879489K
1373
69617K
429101910K
I had to show someone this.
I wanted to use background-clip: text; but with a canvas or video element - not just a background image.
So I came up with this monstrosity that actually works!
20916127535K
1316
44411K
200574.9K
Been hearing a lot about JavaScript Signals lately?
With just a few lines of code you can take your Vanilla JS variables and make them reactive.
Here is a little demo I whipped up using Preact Signals - can be used without a framework!
3674318149138
1757
169454.6K
40215K
Server side alert(), prompt() and confirm() are actually pretty handy.
Deno has them, along with coloured console.log();
3393362541K
1212
30610K
122183.1K
This is going to make fluid + responsive typography so much better!
CSS text-wrap: balance; will evenly distribute your text on available lines.
489721411092K
84720K
2276
54936813K
🔥 Use CSS clamp() to make any property have min + max values.
Here I'm using it to stop a tooltip from running off the page.
380371511662K
1755
42113K
692181115K
🔥 Quick VSCode tip:
⌥ + click on css/js paths that don't exist to quickly create that file
65615K
356696.4K
1569
4055283962K
Move over Sass!
CSS Selector Nesting dropped in Chrome Stable today.
36412
75214017114115K
2059124.8K
3149.4K
11 years ago I received a Firefox OS Phone (Boot to Geko) - the entire OS was based on HTML, CSS and JS.
Today I re-created the dialer using the WebAudio API - playing two tones at once. Super cool
876
118982259K
3354117.9K
I’ve been waiting for this forever!
CSS Relative Color functions will let you darken, lighten, add opacity and even calculate complimentary colors.