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.
Page 12 of 45
Server side alert(), prompt() and confirm() are actually pretty handy.
alert()
prompt()
confirm()
Deno has them, along with coloured console.log();
console.log()
This is going to make fluid + responsive typography so much better!
CSS text-wrap: balance; will evenly distribute your text on available lines.
text-wrap: balance;
🔥 Use CSS clamp() to make any property have min + max values.
clamp()
Here I'm using it to stop a tooltip from running off the page.
🔥 Quick VSCode tip:
⌥ + click on css/js paths that don't exist to quickly create that file
⌥ + click
Move over Sass!
CSS Selector Nesting dropped in Chrome Stable today.
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
I’ve been waiting for this forever!
CSS Relative Color functions will let you darken, lighten, add opacity and even calculate complimentary colors.
🔥 Not into TypeScript Enums?
Generate types from an object with as const!
as const
🔥 CSS: Use gradients with mask-image to fade out parts of an element
🔥 JavaScript import maps are now in all the browsers! Here is how they work with ES modules.